What steps will reproduce the problem?
1. Compile library
2. Compile Hello World Example
3. Run with mono --debug (to enable assertions)
4. Fails on Collision.TimeOfImpact:53
Here is a stack trace:
at Box2DX.Collision.Collision.TimeOfImpact
(Box2DX.Collision.Shape,Box2DX.Common.Sweep,Box2DX.Collision.Shape,Box2DX.Common
.Sweep)
[0x0000e] in
/home/touchtech/cth/box2dx-read-only/src/Collision/Collision.TimeOfImpact.cs:53
at Box2DX.Dynamics.World.SolveTOI (Box2DX.Dynamics.TimeStep) [0x001de] in
/home/touchtech/cth/box2dx-read-only/src/Dynamics/World.cs:946
at Box2DX.Dynamics.World.Step (single,int,int) [0x000ac] in
/home/touchtech/cth/box2dx-read-only/src/Dynamics/World.cs:592
at HelloWorld.Program.Main (string[]) [0x00116] in
/home/touchtech/cth/box2dx-read-only/Examples/HelloWorld/Program.cs:105
at (wrapper runtime-invoke)
HelloWorld.Program.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Using latest svn (r56)
---
When not using debug mode it works in the hello world example. In our
program however it only works for a while until it after some random short
time stops working and crashes in World.cs around line 900+ in this loop:
for (Contact c = _contactList; c != null; c = c._next)
It crashes with a null pointer exception on c in different places in this
loop, which is kind of odd.
Our program works fine on both 32 bit linux and windows.
Original issue reported on code.google.com by
tig...@gmail.comon 13 Mar 2009 at 12:18