yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04602
Re: [Question #163165]: O.save(), O.load() with an erased body ?
Hi François,
Thank you for accurate bug description. Sorry to be high-demanding but
could submit that to the bugtracker here: https://bugs.launchpad.net/yade
It will be easier for us to remember.
By the way, you can come and say hello in the Yade-school session
tomorrow afternoon. Room D313, building D of ENSE3 school (site
"Bergès", near my lab.).
Cheers.
Bruno
On 29/06/11 17:21, Kneib François wrote:
> New question #163165 on Yade:
> https://answers.launchpad.net/yade/+question/163165
>
> Hi !
>
> I think I found a bug, and there are the steps to get it :
> - 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 ?
>
--
_______________
Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
Lab. 3SR
BP 53 - 38041, Grenoble cedex 9 - France
Tél : +33 4 56 52 86 21
Fax : +33 4 76 82 70 43
________________
References