I have heavily modified a GlutDemoApplication class for my own purposes, starting from code distributed with the Bullet SDK. The relevant demo source that I modified is found in this directory ....\bullet3-master\Demos\RagdollDemoOverflow in AABB, object removed from simulation
If you can reproduce this, please email bugs@continuousphysics.com
Please include above information, your Platform, version of OS.
Thanks.
I call a function which creates a local instance of a RagdollDemo class.
Within that function, I call ::clientMoveAndDisplay() several thousand times, which in turn, invokes m_dynamicsWorld->stepSimulation() several thousand times.
The function then returns, causing the RagdollDemo class to ::exitPhysics() as per its destructor.
The interesting thing is that the crash and error shown above only happens on the second creation of the RagdollDemo class. It does not happen on the first call to the function. Further, it does not happen in all subsequent calls to the function (which creates a local class each time). It is as if it "gets something out of its system" and then works fine for the rest of them.
To give you an idea of what I mean by the "second creation", if I skip calling the function the second time, it bumps up the error to the third one. In any case, the second creation and run of the class causes the error.
For example:
Code: Select all
calling TaskThreadDebug( 0
weights on class 0 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 1
weights on class 1 OK.
Overflow in AABB, object removed from simulation
If you can reproduce this, please email bugs@continuousphysics.com
Please include above information, your Platform, version of OS.
Thanks.
returned from TaskThreadDebug() with timeStep = 987123124
calling TaskThreadDebug( 2
weights on class 2 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 3
weights on class 3 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 4
weights on class 4 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 5
weights on class 5 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 6
weights on class 6 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 7
weights on class 7 OK.
returned from TaskThreadDebug() with timeStep = 3001
Code: Select all
calling TaskThreadDebug( 0
weights on class 0 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 2
weights on class 2 OK.
Overflow in AABB, object removed from simulation
If you can reproduce this, please email bugs@continuousphysics.com
Please include above information, your Platform, version of OS.
Thanks.
returned from TaskThreadDebug() with timeStep = 987123124
calling TaskThreadDebug( 3
weights on class 3 OK.
returned from TaskThreadDebug() with timeStep = 987123124
calling TaskThreadDebug( 4
weights on class 4 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 5
weights on class 5 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 6
weights on class 6 OK.
returned from TaskThreadDebug() with timeStep = 3001
calling TaskThreadDebug( 7
weights on class 7 OK.
returned from TaskThreadDebug() with timeStep = 3001
(I will link my own code, below, in a response. I don't know how this forum handles outside links to pastebin)