My program crash in functioin b2Contact::Create. (Box2D version 2.2.1)
Call stack:
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?
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);
...
}
{
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
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?