← Back to team overview

yade-dev team mailing list archive

[Bug 693505] Re: TesselationWrapper example script crashing

 

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

** Changed in: yade
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/693505

Title:
  TesselationWrapper example script crashing

Status in Yet Another Dynamic Engine:
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/693505/+subscriptions


References