I've been working on a game for quite some time, and I am having a hard time debugging this one. Very, very rarely, for reasons completely unbeknownst to me, box2d "freezes". If I print the box2d profiler after each physics step, the TOI timer looks something like this:
...
0.01
0.01
0.01
400.00
27000.00
So the physics ticks effectively freeze the game. I know for sure that I am not accidentally creating a crazy number of fixtures/bodies.
Due to the seemingly random times it happens, I cant really come up with a reason in my code that would cause this. And since its not a crash or anything, I dont really have a hint where to look. When I pause the process to debug it, the debugger will stop somewhere in the box2d solveTOI function and I do not possess enough understanding of the code to really know what I should trace back in order to get a hint regarding where the error is on my end. What I do notice though is that several values used in the TimeOfImpact function seem to be "-1.#IND0000" according to my debugger.
If someone has an Idea where I might start looking in order to find out why this is happening, I would be incredibly thankful.