[r112] Assert failure in b2DynamicTree.h:147

I got an assert failure in the following code:

Code:
inline const b2AABB& b2DynamicTree::GetFatAABB(int32 proxyId) const
{
   b2Assert(0 <= proxyId && proxyId < m_nodeCapacity);
   return m_nodes[proxyId].aabb;
}


Not sure what it could be but thought I'd report it.
Thanks. I can't tell much just from that. If you are able to reproduce it, please try to find the cause of the problem or create a testbed example the reproduces the problem.
It happened again but seems to be hard to re-produce but it's always in the same area of the game. It might be related to two large circles that are set inactive (Body->SetActive(false)) upon collision with the player's circle in BeginContact. Hopefully I can get more info.

It traces back to the following in b2World::Step

Code:
// Update contacts. This is where some contacts are destroyed.
m_contactManager.Collide();
Oh yeah, calling SetActive inside the contact listener would be very bad. I'll add an assert in that function.

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