Box2d freezes on collision [Testbed example]

I decided to use Box2d in a project. I started with a little code to create a representation of a quadratic Bezier curve with 2 vertex polygons. Circles collide with the curve as expected but boxes do not.

The behavior varies a little bit between the versions. I've used this on box2d version 2.0, 2.1, 2.1.2, and the latest from SVN.

On all but the latest from SVN the box freezes the moment it collides. From that point on collisions with the box with other dynamic bodies are strange. They can pass through the box partially but are then shot out of the box at high speed. On the SVN version the entire engine freezes the moment the box collides with the bezier curve.

I suspect that because this behavior is present in all versions that it's likely a bug in my code. Regardless I reproduced the problem in the testbed so that someone might be able to help me.

Press 'c' to drop a circle. Observe that it collides correctly. Press 'b' to drop a box. Observe that it freezes.

Thanks
I have modified the testbed example to use the new b2LoopShape. I also modified b2BlockAllocator to allow for 32 vertices. It now works flawlessly.

I'd still like to know what was going on. Was it a bug in Box2d causing the box to freeze on collision or was I doing something wrong?

I'll be back in a few days but I'd appreciate it if you could find time to have a look at the testbed example I previously posted above.
Thanks for the example code. There is a bug in the continuous collision solver. I filed an issue.
The problem is that you set the polygon radius to zero on the edge shapes. This breaks continuous collision.
Thanks for having a look at it.
Hello:

I'm running through this same problem and I don't know what you are talking about.

I went to look at my code and set the m_radius of the polygons I have colliding but the problem got worst. I will post some code of what I am doing tomorrow morning (in my country is about 6 PM Thursday and I am going out right now).

Any previous explanation would come very handy!

Thanks! 🙂

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