I tried to run it again and again I get a bunch of assert sayin that newton checksum has changed.
I click continue and after few dozen of those, the game start
I do not get any assert on the newton.dll in debug but them moment I start to move the player either die, or seem to fall trough a hole and is game over after that.
you have some kind pf protection that make is hard to debug.
but You said that you got a crash here newton.dll!dgBroadPhase::SanityCheck()
I think this explain what is going on, and I thin is this.
when a body is deleted,
the body set it call back to NULL, and detach all his link.
if flag all is contact joint as killed
is placed of a dead list for remove at the end o fthe update.
whoever is possible that the make a new contact, tha will not be tagged as dead.
them what happen is that the body will be deleted and that way ther will be a contact that link at least one dead body.
this is one logical error that does nee to be fix.
edit: yes thsi is the bug, I added a test to check for that in the buoyancy demo and is happen right away.
I am fixing it now.
I will do that and let of try again