[2.1.0] - ERROR - Body::IsBad

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

[2.1.0] - ERROR - Body::IsBad

Postby mori-d » Tue Jun 18, 2013 4:40 pm

Removing a part or whole of the body causes "Body::IsBad" error.
This error is not caused usually.
I don't know what type of body causes this.

Scene data for reproducing this error:
http://www.algodoo.com/algobox/details.php?id=70392
Attachments
Logfile.txt
Log file when the error was caused.
(11.64 KiB) Downloaded 19 times
User avatar
mori-d
 
Posts: 28
Joined: Sun May 02, 2010 1:56 am

Re: [2.1.0] - ERROR - Body::IsBad

Postby s_noonan » Tue Oct 08, 2013 12:50 am

This error is caused by setting density = 0 in script.

Use
Scene.RemoveEntity(entity)
instead.
s_noonan
 
Posts: 61
Joined: Tue Mar 30, 2010 2:25 am

Re: [2.1.0] - ERROR - Body::IsBad

Postby electronicboy » Tue Oct 08, 2013 1:47 am

Never use "density = 0", Algodoo doesn't remove the geometry properly, just puts it into an invalid state essentially just hiding it and performing no calculations on it, and as a result, algodoo doesn't remember to clear the RAM associated to that object, and on a scene where you're spawning and deleting objects a lot, you can get into a real bother.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: [2.1.0] - ERROR - Body::IsBad

Postby mori-d » Fri Feb 07, 2014 6:38 pm

s_noonan wrote:This error is caused by setting density = 0 in script.

Use
Scene.RemoveEntity(entity)
instead.


No such script is in the scene data.
Download the above scene I'd uploaded,
select the object in the scene and delete it by pressing DEL key.
Then open console by F10 and you can see the error.
User avatar
mori-d
 
Posts: 28
Joined: Sun May 02, 2010 1:56 am

Re: [2.1.0] - ERROR - Body::IsBad

Postby jon_joy_1999 » Fri Feb 07, 2014 8:57 pm

deleting a body makes it bad.
I can verify this with my own scene.
I fail to see how this is an error.

perhaps the error is that it should not be reported as an error, thus it mori-d is reporting it as an error. however there may be times when it is an error, and Algodoo simply doesn't brain enough to know the difference.
Image
BSrac = BoincStats recent average credit
I'd rather be network computing.
jon_joy_1999
 
Posts: 233
Joined: Fri Dec 09, 2011 12:51 am


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 4 guests