Help me: b2Assert(manifold->pointCount > 0) fails

Hi,
I'm sorry to bother again, but I've got sometimes an assertion failing in b2ContactSolver.cpp
after I turn some fixtures to sensors and back (between simulation steps).

I assume this assertion occurs on the next simulation step
after I call SetSensor(false) for a fixture which has contacted other fixtures on previous step.

Sorry I haven't yet come with testbed case,
but I will definitely come with one if there are no well-known hacks or workarounds.

Thanks!
OK , I discovered that if bodies are not going to sleep (corresponding parameter in b2World constructor is false), then this assertion does not fail in the same situation.
Looks like a bug?
I filed an issue: http://code.google.com/p/box2d/issues/detail?id=195
I'm also seeing this in a similar situation, after turning some fixtures to sensors and back. Has this bug been fixed? I'm not sure if it's a problem with my code or Box2D.
I never reproduced this crash. Make sure you aren't modify things inside a callback.
Erin Catto wrote:
I never reproduced this crash. Make sure you aren't modify things inside a callback.


In my contact listener I am going through the fixture list and calling SetSensor() on every fixture. It sounds like you are saying this is a bad idea.

To be clear, I am calling SetSensor() on fixtures not involved in the collision. That is, my guy hits my powerup and then I go through my wall fixture list calling SetSensor() on each, even though the wall wasn't involved in the collision.

It looked like it was working fine but if it's not recommended I should probably change that.
Yeah, that will break things.

Original thread: https://box2d.org/forum/viewtopic.php?t=6900