EXC_BAD_ACCESS on b2ContactManager

Hi,

I'm using Box2D 2.1.2 and I am facing a strange trouble. From one day to another this error appeared : I have an "EXC_BAD_ACCESS" on the line 189 of b2ContactManager.cpp.

Code:
if (edge->other == bodyA) <-------------------------- This is the line pointed by XCode
      {
         b2Fixture* fA = edge->contact->GetFixtureA();
         b2Fixture* fB = edge->contact->GetFixtureB();
         if (fA == fixtureA && fB == fixtureB)
         {
            // A contact already exists.
            return;
         }

         if (fA == fixtureB && fB == fixtureA)
         {
            // A contact already exists.
            return;
         }
      }


It happens at the moment there is a contact between two bodies.
I'm using XCode and a static library I built with CMake. Evrything worked fine until now.
Does anyone of you has an idea ?

Thanks in advance.

Ben
Little by little I'm trying to understand... I'm a real noob in Box2D and... well...
The event appears when a second object is about to hit my groundbody. One box is ok, but two...

Now the debugger fix on b2World::SolveTOI...

Sorry for my bad English and for that trouble that may be an error in my code.
This is usually the result of a general programming error and not a Box2D issue. Most likely the variable 'edge' in your code above is either null, or has not been set yet (random data), or it was previously set but then deleted. Check for any of those cases.
Thanks a lot for your answer ! I'll try to check this.

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