In our game we often get a fatal out of bounds memory error related to ammo.js. I don’t yet know how to reproduce it, but it happens quite often.
I have tracked it down to the step simulation function on btDiscreteDynamicsWorld.
It happens on this line:
xf(e,a,c,d)
Unminified:
return _emscripten_bind_btDiscreteDynamicsWorld_stepSimulation_3(self, timeStep, maxSubSteps, fixedTimeStep);
Posting this to see if anyone has any ideas on how to tackle this.