TesselationWrapper example script crashing
Bug #693505 reported by
Bruno Chareyre
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Fix Released
|
Undecided
|
Bruno Chareyre |
Bug Description
This sequence segfault in r2626 :
Yade [1]: tt=TriaxialTest()
Yade [2]: O.run(100)
Yade [3]: TW=TesselationW
Yade [4]: TW.triangulate()
Yade [5]: TW.computeVolumes()
Yade [6]: TW.volume(10)
Segmentation fault
Sergei, did you use it again recently, so I could figure out when it started to crash?
Note : MicroMacro is crashing as well.
Changed in yade: | |
assignee: | nobody → Chareyre (bruno-chareyre) |
To post a comment you must log in.
The sequence above crashes because it is nonsense... It creates a preprocessor "tt" but no scene is loaded. Hence, getting volume of body 10 when there are no bodies accesses an array out of bounds...
I added a test on id, so that TW is nonsense-proof. If body id doesn't exists it returns 0.