devkula8 / box2d-editor

Automatically exported from code.google.com/p/box2d-editor
0 stars 0 forks source link

FixtureAtlas demo produces runtime error due to assertion m_world->isLocked == false #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Simply run the demo
2. If first time is OK, click the screen one more time to run demo again
3. It will give you the runtime error with assertion m_world->isLocked == false

What is the expected output? What do you see instead?

The app should not produce the error but it will give you the runtime error 
with assertion m_world->isLocked == false.

What version of the product are you using? On what operating system?

Lastest version as of today 1/13/2012 on Windows 2008

Please provide any additional information below.

Original issue reported on code.google.com by prayer...@gmail.com on 13 Jan 2012 at 9:52

GoogleCodeExporter commented 8 years ago
I can't reproduce your issue, since I'm able to click multiple times on the 
screen without error. However, clicking 5 times in less than a few milliseconds 
raised a different assertion failure, so there's indeed an issue somewhere.

It should be related to the way I implemented the demo and not to the fixture 
atlas itself, will check it. Thanks.

Original comment by aurelien.ribon on 13 Jan 2012 at 9:58

GoogleCodeExporter commented 8 years ago
I kind of resolved issue by inserting

while(world.isLocked()) {}

before calling ballModels[i].setActive. there are two places in restart method.

Original comment by prayer...@gmail.com on 13 Jan 2012 at 6:51

GoogleCodeExporter commented 8 years ago
Issue fixed in new 2.9.1 release. It was a problem with a timer. I removed it. 
Thanks for reporting.

Original comment by aurelien.ribon on 27 Apr 2012 at 7:48