This project has moved. For the latest updates, please go here.


Apr 28, 2011 at 12:07 AM

I've recently released my game and I'm getting some exception reports back. I've tracked them all down except for one.

System.InvalidOperationException: InvalidOperationException
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Stack`1.Pop()
   at FarseerPhysics.Collision.DynamicTree`1.Query(Func`2 callback, AABB& aabb)
   at FarseerPhysics.Collision.BroadPhase.UpdatePairs(BroadphaseDelegate callback)
   at FarseerPhysics.Dynamics.ContactManager.FindNewContacts()
   at FarseerPhysics.Dynamics.World.Solve(TimeStep& step)
   at FarseerPhysics.Dynamics.World.Step(Single dt)
   at SnowSpill.GamePlayer.GameLoop_Tick(Object sender, TickEventArgs e)
   at SnowSpill.GameLoop.TickLoop()

Unfortunately I don't have line numbers. All I really know is that this has happened around 9 times in around 22,000 words.

My best guess would be that a body or shape is added or removed while the world is stepping, but I just don't see how that's possible with my code.

Does anybody have any suggestions or ideas about what could be the cause of this?