TesselationWrapper example script crashing

Bug #693505 reported by Bruno Chareyre
6
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=TesselationWrapper()
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)
Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

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.

Changed in yade:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.