Cyclinders and async crash?
Posted: Mon Jun 07, 2010 9:20 am
Hi,
Just workin' on my level editor placing various physics objects and have encounters a rather nasty bug. When I attempt to place cylinders in my BaseCyclinder class, I get one of these occasionally:
An unhandled exception of type 'System.ArithmeticException' occurred in BEPUphysics.dll
Additional information: Some internal multithreaded arithmetic has encountered an invalid state. Check for invalid entity momentums, velocities, and positions; propagating NaN's will generally trigger this exception in the getExtremePoint function.
It's a freshly created object with no velocity, and the mass and scale do not seem to effect the chances of getting this crash, as it's currently about 1 in 30 of these will crash. It will only crash if the objects are being added to the space, (space is being updated currently with a tiny timestep to get things very close to frozen for editing)
I have tried converting my Ball class to use cyclinders of various sizes, and that won't crash. I have tried making this BaseCyclinder class use spheres and it won't crash.
What could I be doing to cause this?
Just workin' on my level editor placing various physics objects and have encounters a rather nasty bug. When I attempt to place cylinders in my BaseCyclinder class, I get one of these occasionally:
An unhandled exception of type 'System.ArithmeticException' occurred in BEPUphysics.dll
Additional information: Some internal multithreaded arithmetic has encountered an invalid state. Check for invalid entity momentums, velocities, and positions; propagating NaN's will generally trigger this exception in the getExtremePoint function.
It's a freshly created object with no velocity, and the mass and scale do not seem to effect the chances of getting this crash, as it's currently about 1 in 30 of these will crash. It will only crash if the objects are being added to the space, (space is being updated currently with a tiny timestep to get things very close to frozen for editing)
I have tried converting my Ball class to use cyclinders of various sizes, and that won't crash. I have tried making this BaseCyclinder class use spheres and it won't crash.
What could I be doing to cause this?