Crash when too much force applied? (2.08)

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Crash when too much force applied? (2.08)

Postby Yezide » Tue May 04, 2010 8:58 am

I have come across a situation when my code stops working properly (my fault) and adds large forces on a body.

The problem is now that Newton crashes when these forces get too large. It crashes during the Newton Update call (after the callback when the forces are set)

The force I add are (in subsequent update callbacks):
(1455.380615 : -1615.633911 : -536.539795)
(-11022.806641 : 62661.414063 : 17055.111328)
(37176.648438 : -312015.500000 : -83982.679688)
(-12786.827148 : 93310.968750 : 25082.488281)
(116959.843750 : -614237.750000 : -168379.406250)

after NewtonBodyAddForce call (and the force callback has been exited) the application crashes.

Note that this is in 2.08! So if it has been fixed since please ignore!
User avatar
Yezide
 
Posts: 173
Joined: Tue Oct 18, 2005 4:31 am

Re: Crash when too much force applied? (2.08)

Postby Julio Jerez » Tue May 04, 2010 9:31 am

It should not crash because of that but what is using such large forces.

You are appling forces hundred of tousands of newtons in an arternate way. huge force in one deirection and then a even bigger forces in the oposite direction in an increasing pattern
that will certainly lead to some bad physics behavior, that is certainlly not be right.
whith those numbers the solver will have problem finding corrent equilibrium forces.

what are you doing? maybe there is a different way.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Crash when too much force applied? (2.08)

Postby Yezide » Tue May 04, 2010 11:01 am

Oh, perhaps I was not clear enough. This is when the program malfunctions! :)

So it is not something that should happen during a normal run of the game and it is not a problem as such.

Still it seems weird that newton needs to crash because of it, because these kinda stuff might for example if someone messes about in an editor or similar.
User avatar
Yezide
 
Posts: 173
Joined: Tue Oct 18, 2005 4:31 am

Re: Crash when too much force applied? (2.08)

Postby Julio Jerez » Tue May 04, 2010 11:57 am

yes it is strange the engine crashes because of that, those are the thing I am always in the look for.

when you try the lastet 2.20 wit the news collison tree build,
maybe you can check if the force problem again and see if it is still there, if it is still there,
I can check out what is making it do that.

if you can reproduce the crash, maybe you can send my a demo of the editor (runtime only and confidentially) with instrutions how to make it happens and maybe I can fix it.
or a least explain why it happens so that it can be avoid it at a higher level.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Crash when too much force applied? (2.08)

Postby Yezide » Tue May 04, 2010 3:20 pm

Will check this when I try 2.20 too!
User avatar
Yezide
 
Posts: 173
Joined: Tue Oct 18, 2005 4:31 am


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 10 guests

cron