Assert In b2TimeOfImpact.cpp

I'm porting my game from windows to linux. Everything seems to be working alright. But noticed that I am getting more Asserts now where in windows it would not assert. Most of these were due to bad data (too many vertices on a shape, or non-convex shapes) but after fixing all of them, I am now getting a new one that I am pretty clueless about.

This is the exact output:
Code:
Source/Box2d/Collision/b2TimeOfImpact.cpp:46: void b2SeparationFunction::Initialize(const b2SimplexCache*, const b2DistanceProxy*, const b2Transform&, const b2DistanceProxy*, const b2Transform&):
Assertion `0 < count && count < 3' failed.
Aborted


The same data runs fine in my windows build. Does anybody know what would cause the b2SimplexCache->cache to fall outside of the acceptable range? It's all greek to me at this point.

Thanks!
This one would require some debugging. See if you can capture all the data sent to b2Distance. Then try calling b2Distance directly in the testbed with that data. See if you get the same result.

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