Crash in function b2Contact::Create

My program crash in functioin b2Contact::Create. (Box2D version 2.2.1)

Code:
b2Contact* b2Contact::Create(b2Fixture* fixtureA, int32 indexA, b2Fixture* fixtureB, int32 indexB, b2BlockAllocator* allocator)
{
   if (s_initialized == false)
   {
      InitializeRegisters();
      s_initialized = true;
   }

   b2Shape::Type type1 = fixtureA->GetType();
   b2Shape::Type type2 = fixtureB->GetType();  // crash happened here!

   b2Assert(0 <= type1 && type1 < b2Shape::e_typeCount);
   b2Assert(0 <= type2 && type2 < b2Shape::e_typeCount);
   ...
}


Call stack:
Quote:
b2Contact::Create
b2ContactManager::AddPair
b2BroadPhase::UpdatePairs
b2ContactManager::FindNewContacts
b2World::Step


And my program is not complex one, just using circle shape, polygon shape, fix rotation body, sensor and distance joint.

Is there anyone have an idea about it or some useful information which could help me trace the issue?
Seems like the shape on fixtureB might not be initialized. However, this issue can't happen unless you are doing something with the shape after the fixture has created a contact.

I would suggest that you use the dump() to make a dump of your world and attach it here. Or create a Testbed test that replicate the error you have.

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