1 Reply Latest reply on Nov 8, 2011 2:56 AM by [Jongware]

    Infinite loop

    sameerkariwal

      Hi friends,

       

      I am resizing the text frame using this code.

       

       

       

      InterfacePtr<ICommand> iSetBBoxCmd ( CmdUtils::CreateCommand ( kSetBoundingBoxCmdBoss ) );

      if{

      ( iSetBBoxCmd != nil )

       

       

       

      InterfacePtr<IGeometry> itemGeometry ( thisElement, UseDefaultIID() );

      InterfacePtr<ISetBoundingBoxCmdData> iSetBBoxCmdData ( iSetBBoxCmd, UseDefaultIID() );

       

      PMRectCollection rectList;

       

      PMRect newBounds ( itemGeometry->GetPathBoundingBox() );

      newBounds.SetHeight ( newDimensions.Height() );

      newBounds.SetWidth ( newDimensions.Width() );

       

      rectList.push_back ( newBounds );

       

      iSetBBoxCmdData->SetBoundingBoxData ( rectList, Transform::InnerCoordinates(), Geometry::PathBounds() );

      iSetBBoxCmd->SetItemList ( thisElement );

      }

       

      Bot on giving very large newDimension value my code is going into infinite loop and i am getting following error message on my console.

       

      \PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      Cached Inner Bounds out of sync.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      Cached Inner Bounds out of sync.

      Cached Inner Bounds out of sync.

      ASSERT 'splinePathBBox.Width() >= minInnerWidthHeight' in ..\..\..\source\compon

      ents\pageitems\spline\SplineUtils.cpp at line 358 failed.

      ASSERT 'splinePathBBox.Height() >= minInnerWidthHeight' in ..\..\..\source\compo

      nents\pageitems\spline\SplineUtils.cpp at line 359 failed.

      ASSERT '(*pInnerPathRight - *pInnerPathLeft) >= minInnerWidthHeight' in ..\..\..

      \source\components\pageitems\spline\SplineUtils.cpp at line 415 failed.

      ASSERT '(*pInnerPathBottom - *pInnerPathTop) >= minInnerWidthHeight' in ..\..\..

      \source\components\pageitems\spline\SplineUtils.cpp at line 416 failed.

      ASSERT '(rightInner - leftInner) >= 0.0' in ..\..\..\source\components\pageitems

      \spline\SplineUtils.cpp at line 240 failed.

      ASSERT '(bottomInner - topInner) >= 0.0' in ..\..\..\source\components\pageitems

      \spline\SplineUtils.cpp at line 241 failed.

      ASSERT '(splineInnerContentBBox.Width() >= 0.0) && (splineInnerContentBBox.Heigh

      t() >= 0.0)' in ..\..\..\source\components\text\multicolumnpageitem\MultiColText

      Frame.cpp at line 4285 failed.

      Cached Inner Bounds out of sync.

      ASSERT 'splinePathBBox.Width() >= minInnerWidthHeight' in ..\..\..\source\compon

      ents\pageitems\spline\SplineUtils.cpp at line 358 failed.

      ASSERT 'splinePathBBox.Height() >= minInnerWidthHeight' in ..\..\..\source\compo

      nents\pageitems\spline\SplineUtils.cpp at line 359 failed.

      ASSERT '(*pInnerPathRight - *pInnerPathLeft) >= minInnerWidthHeight' in ..\..\..

      \source\components\pageitems\spline\SplineUtils.cpp at line 415 failed.

      ASSERT '(*pInnerPathBottom - *pInnerPathTop) >= minInnerWidthHeight' in ..\..\..

      \source\components\pageitems\spline\SplineUtils.cpp at line 416 failed.

      ASSERT '(rightInner - leftInner) >= 0.0' in ..\..\..\source\components\pageitems

      \spline\SplineUtils.cpp at line 240 failed.

      ASSERT '(bottomInner - topInner) >= 0.0' in ..\..\..\source\components\pageitems

      \spline\SplineUtils.cpp at line 241 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      Setting InnerToParentMatrix with huge translation values, is this what you want?

      (See bug #2539167, please note what you did to get trigger this assert.)

      ASSERT 'det == 0.0 || det < 0.0 || det > 0.0' in ..\..\..\source\private\graphic

      s\PMMatrix.cpp at line 1983 failed.

      Cached Inner Bounds out of sync.

       

       

      Could u explain this error message and why this error message is coming.

       

      Thanks

      Sameer