@nehon , @normen , @pspeed . Hello guys.
I found a strange issue when I close the application i get an Exception:
WARNING: RigidBody [email protected] does not exist in PhysicsSpace, cannot remove.
июн 02, 2014 1:35:53 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at com.jme3.bullet.PhysicsSpace.removeGhostObject(PhysicsSpace.java:524)
at com.jme3.bullet.PhysicsSpace.removeCollisionObject(PhysicsSpace.java:421)
at com.jme3.bullet.control.GhostControl.setPhysicsSpace(GhostControl.java:153)
at com.jme3.bullet.PhysicsSpace.remove(PhysicsSpace.java:409)
at org.aitest.character.AICharacterControl.destroyCtrl(AICharacterControl.java:224)
at org.aitest.character.AIMainCharacterController.destroy(AIMainCharacterController.java:135)
at org.aitest.character.AIMainCharacterController.cleanup(AIMainCharacterController.java:151)
at com.jme3.app.state.AppStateManager.cleanup(AppStateManager.java:323)
at com.jme3.app.Application.destroy(Application.java:635)
at org.aitest.AIMain.destroy(AIMain.java:90)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.deinitInThread(LwjglAbstractDisplay.java:196)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:233)
at java.lang.Thread.run(Thread.java:744)
Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread “LWJGL Renderer Thread”
AL lib: (EE) alc_cleanup: 1 device not closed
The bug says i get Null in line 224 here:
https://github.com/QuietOne/MonkeyBrainsDemoGames/blob/master/MonkeyBrainsDemo_Mifth/src/org/aitest/character/AICharacterControl.java#L224
But “physics” and “swordModel” are not Nulls. I guess this issue is in PhysicsSpace when it tries to remove GhostObject.
Also, if I uncomment these 3 lines - i get no Exception: https://github.com/QuietOne/MonkeyBrainsDemoGames/blob/master/MonkeyBrainsDemo_Mifth/src/org/aitest/AIMain.java#L87-L89
Guys, could you test the issue? Possibly this is a bug.
I run jMonkeyEngine 3.0.5.
PS. “swordModel” is attached to a boneNode.
Thanks.