yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #08797
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
Ok, one more fix is in f22afe466ee5 commit.
Thanks. Chiara for pointing this out and providing a fix.
Anton
--
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/803774
Title:
Saving, loading simulation with erased bodies crash.
Status in Yet Another Dynamic Engine:
Fix Released
Bug description:
Here is the bug :
- launch yade (for example without any script)
- add a sphere : O.bodies.append(utils.sphere((0.2,0.2,0.2),0.006))
- delete it : O.bodies.erase(0)
- save yade's universe : O.save("./test")
- quit yade
- launch yade
- load the file : O.load("./test")
->segmentation fault
I think it's because when you erase something the size of O.bodies (etc...) doesn't change and now contains an empty value. (the c++ array may not be dynamic ?)
So when the O.load() function is called, yade try to load a non-existant body ?
Maybe this can be fixed by changing the load() method ?
I joined the debug output.
To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/803774/+subscriptions
References
-
[Bug 803774] [NEW] Saving, loading simulation with erased bodies crash.
From: Kneib François, 2011-06-30
-
[Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Anton Gladky, 2011-07-02
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chiara Modenese, 2012-06-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Anton Gladky, 2012-06-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chiara Modenese, 2012-07-14
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chareyre, 2012-07-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chiara Modenese, 2012-07-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chareyre, 2012-07-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chiara Modenese, 2012-07-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Anton Gladky, 2012-07-15
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chareyre, 2012-07-16
-
Re: [Bug 803774] Re: Saving, loading simulation with erased bodies crash.
From: Chiara Modenese, 2012-07-16