I've been using box2d with AE for some time now - I understand the flow control of the update thread, but it seems that if I delete bodies it will often hang on the next collision. I'm using GLES2.
I'm pretty sure I'm doing the deletion in a safe manner (though the evidence would suggest not )...
This is how I'm doing my deletion:
On the next collision this will sometimes cause the game to hang hard (back button doesn't even respond). I've ruled out it being caused by a collision handler by removing having none registered.
So I've resorted to just setting my bodies to inactive instead of deleting them and hope they get cleaned up when I dispose the physical world.