Hi,
BorisTheBrave rightfully suggested we created new threads for issues, so here's a thread for the bug Don Pipo and I have been hitting.
From the main thread:
Quote:
Using trace debugs I've narrowed the problem to be around the b2World:SolveTOI() function. The for(;;) loop (// Find TOI events and solve them.) never ends, and the next for loop right after it (for (c = m_contactList; c; c = c.m_next)) loops 4-5 times, about 1 second per cycle.
I just tried the TestBed, and if you play the "Breakable" demo a few times, by throwing the attached blocks in the walls, you'll end up with a hang. I'm not quite sure if it's the same hang, but I thought I would add it anyways. If I find a better repro I'll post it here, for now that's all I've got.
Here's the error message I get when the testbed hangs
Quote:
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at Box2D.Dynamics.Contacts::b2Contact/IsSensor()
at Box2D.Dynamics::b2World/http://www.box2d.org/ns/b2internal::Solve()[C:\Users\Swah\flash\Box2dTest\box2dflash\Source\Box2D\Dynamics\b2World.as:1031]
at Box2D.Dynamics::b2World/Step()[C:\Users\Swah\flash\Box2dTest\box2dflash\Source\Box2D\Dynamics\b2World.as:602]
at TestBed::Test/Update()[C:\Users\Swah\flash\Box2dTest\box2dflash\Examples\TestBed\Test.as:104]
at TestBed::TestBreakable/Update()[C:\Users\Swah\flash\Box2dTest\box2dflash\Examples\TestBed\TestBreakable.as:78]
at Main/update()[C:\Users\Swah\flash\Box2dTest\box2dflash\Examples\Main.as:129]
Thanks for your help!