skapunch/box2d

JBox2D AssertionError while setting a body inactive.

Closed this issue · 2 comments

What steps will reproduce the problem?
1. Run attached code with enabled assertions!

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

Expecting no errors. Getting:

Exception in thread "main" java.lang.AssertionError
    at org.jbox2d.collision.broadphase.DynamicTree.destroyProxy(DynamicTree.java:115)
    at org.jbox2d.collision.broadphase.BroadPhase.destroyProxy(BroadPhase.java:104)
    at org.jbox2d.dynamics.Fixture.destroyProxy(Fixture.java:314)
    at org.jbox2d.dynamics.Body.setActive(Body.java:993)
    at matt.jbox2D.AssertionErrorReproductionForSetActive.main(AssertionErrorReproductionForSetActive.java:26)

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

jbox2d-library-2.1.2.2.jar
On Windows 7 x64
With JDK 1.7.0_02

If seems that this problem occurs randomly when massively 
activating/deactivating bodies. I have not found a pattern yet.



Original issue reported on code.google.com by matthias...@st.ovgu.de on 8 Apr 2012 at 12:34

Attachments:

Wrong bugtracker, sorry. Can be deleted.

New:
http://code.google.com/p/jbox2d/issues/detail?id=32

Original comment by matthias...@st.ovgu.de on 8 Apr 2012 at 12:39

Original comment by erinca...@gmail.com on 23 Oct 2013 at 12:18

  • Changed state: Invalid