Interpenetration during contact between circle and edge

First, thanks for Box 2d, it's an amazing library.

I've been using box2d for about a year now, and I decided to update the version I was using to fix a little annoying bug.
So I updated the version to r57 from the SVN repository, and noticed one major issue.

What steps will reproduce the problem?
1. Run, the Testbed, take any test with a ball and an edge, like the
OneSidedPlatform for example.
2. Zoom in closely to the ball, and reduce the Hz to 20 to see it better.
It also happens at 60Hz, but it's just less visible.
3. Take the ball, move it up, let it fall, and watch the collision.

What is the expected output? What do you see instead?
I should not see interpenetration between the 2 elements, but most of the
time there is interpenetration.

What version of the product are you using? On what operating system?
I'm using code from current SVN r57, on Windows Vista.

Please provide any additional information below.
It was working perfectly in an old version of Box2d (from the older
repository r229).
It could be due to the fact that edges are not one-sided anymore.
I've added a video where it happens on the first collision and does not
happen in the second one. But I happens a lot.
I used a testbed sample to show the issue and it's minimal in this case,
but in my game where objects are moving faster, it is really visually
disturbing, objets are going through wall and then pop out.

Here is the video link:
http://www.youtube.com/watch?v=j-CxPK2ORjw

I added an issue, sorry if it was too early :
http://code.google.com/p/box2d/issues/detail?id=88

Additional notes:
Setting bd.bullet to true, does not change anything.

Another consequence from this issue, it that dynamic objects pass through each other, when before they didn't.

Thank you,

Laurent.
Ok, I got it, the issue appeared when the TOISolver was introduced in r33.
This revision contains a lot of changes in the way TOI is resolved, so I can't really tell what's wrong at first sight. But it narrows the search.
Yes, the current TOI solver only tries to prevent the center of the circle from penetrating. I was waiting to see if anyone noticed. Since you did, please file an issue with a link to this post:
http://code.google.com/p/box2d/issues/list
Done 🙂
I've been toying with the new features of distance and time of impact, and this is incredible.
It's a brilliant idea to let people use these algorithms outside the solver.

Thank you,

Laurent,

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