Box falling through Edge

It's my first time working with Box2D, and I'm trying to create a simple platformer. But I'm already stuck on getting the collision between the player and the ground to work. For some reason if I collide into the ground with a non-zero y velocity it works fine. But if the player rests on the ground for some time it will fall through...

Complete source can be found http://dl.dropbox.com/u/4910378/source.rar

The code is very simple so there must be something I'm overlooking....
I'm getting a 404 on that link.
There was a problem like this that was fixed a few months ago - doubt if the flash version has caught up though.
The problem was caused by the edge being on a body with non-zero angle, so if the body in question is either freely rotating, or it's static but with non-zero angle, you might see this.
Yeah, I took it offline since I just changed the player to a circle instead. However I'm sure the edge was perfectly horizontal. Oh well.
The edge may be horizontal, but it's the angle of the body it's on that I was meaning.
For example if you create a body with angle zero (the default) and stick a vertical edge on it, then rotate the body 90 degrees, the edge will now be horizontal but the body will have a non-zero angle.
Ah. But I created the body with b2PolygonShape.asBox and it had fixedRotation set to true.
Yeah polygons are fine. It's the body with the edge fixture that was the problem:
http://code.google.com/p/box2d/issues/d ... =221&can=1
I attached the edge to world.getGroundBody() so I expect that to have a fixed rotation... I had also tried replacing that edge with a really thin rectangle and the result was the same. But anyways I got around it by using a circle instead so it's fine.

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