Comment 11 for bug 585898

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Yade-dev] [Bug 585898] Re: bzr2255 crash on examples/rotatingCylinder.py

Hi, Bruno

1) please, install libgts-dev
2) add 'gts' to features
3) check with r2260

Thanks
______________________________

Anton Gladkyy

2010/5/28 Chareyre <email address hidden>

> It should be workarounded in r2259. Can you confirm?
> No time for more investigations now.
> I didn't get any problems with this code, even after 200k iterations in
> periodic tests, and I can't find a way to run the crashing example, see
> below. So, I cannot "see" the bug.
>
> Bruno
>
> 1st try :
>
> File "examples/rotatingCylinder.py", line 32
> SyntaxError: Non-ASCII character '\xc2' in file
> examples/rotatingCylinder.py on line 32, but no encoding declared; see
> http://www.python.org/peps/pep-0263.html for details
> (rotatingCylinder.py, line 32)
>
> --> Fixed
>
> 2nd try :
>
> SyntaxError: Non-ASCII character '\xe2' in file
> examples/rotatingCylinder.py on line 36, but no encoding declared; see
> http://www.python.org/peps/pep-0263.html for details
> (rotatingCylinder.py, line 36)
>
> --> Fixed
>
> 3rd try :
>
> File "examples/rotatingCylinder.py", line 31, in <module>
> cyl=unitCylinder(); sq=unitSquare(); sq.translate(0,0,-1); cyl.copy(sq)
> File "examples/rotatingCylinder.py", line 28, in unitCylinder
> return pack.sweptPolylines2gtsSurface([ptsBase,ptsTop])
> File "/home/bruno/YADE/lib/yade-true-true/py/yade/pack.py", line 125,
> in sweptPolylines2gtsSurface
> vtxs=[[gts.Vertex(x,y,z) for x,y,z in pts1] for pts1 in pts]
> NameError: global name 'gts' is not defined
>
> --> Huh?!
>
> --
> bzr2255 crash on examples/rotatingCylinder.py
> https://bugs.launchpad.net/bugs/585898
> You received this bug notification because you are subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: Confirmed
>
> Bug description:
> When I run examples/rotatingCylinder.py with bzr2255 (default profile) I
> got a crash after several iterations. Seems it related with velocityBins
> mechanism:
>
> Yade [1]: INFO yade.VelocityBins
> /home/sega/work/yade/trunk/pkg/common/DataClass/VelocityBins.cpp:33 setBins:
> New number of bins: 5
> FATAL yade.VelocityBins
> /home/sega/work/yade/trunk/pkg/common/DataClass/VelocityBins.cpp:77 setBins:
> Body #4483, velSq=nan not put in any bin!?
> Crash!
>
>
>