Source code for jbullet.jar?


I am having a few problems reorganizing my project, and one of them is this exception that prevents me from further testing what I have implemented.

[patch]May 19, 2011 11:33:16 PM com.jme3.bullet.BulletAppState postRender

SEVERE: null

java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: -1

at java.util.concurrent.FutureTask$Sync.innerGet(

at java.util.concurrent.FutureTask.get(

at com.jme3.bullet.BulletAppState.postRender(



at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(



Caused by: java.lang.ArrayIndexOutOfBoundsException: -1

at com.bulletphysics.collision.shapes.TriangleShape.localGetSupportingVertexWithoutMargin(

at com.bulletphysics.collision.shapes.ConvexInternalShape.localGetSupportingVertex(

at com.bulletphysics.collision.shapes.ConvexInternalShape.getAabbSlow(

at com.bulletphysics.collision.shapes.TriangleShape.getAabb(

at com.bulletphysics.collision.dispatch.CollisionWorld.updateSingleAabb(

at com.bulletphysics.collision.dispatch.CollisionWorld.updateAabbs(

at com.bulletphysics.collision.dispatch.CollisionWorld.performDiscreteCollisionDetection(

at com.bulletphysics.dynamics.DiscreteDynamicsWorld.internalSingleStepSimulation(

at com.bulletphysics.dynamics.DiscreteDynamicsWorld.stepSimulation(

at com.jme3.bullet.PhysicsSpace.update(

at com.jme3.bullet.PhysicsSpace.update(

at com.jme3.bullet.BulletAppState$

at com.jme3.bullet.BulletAppState$

at java.util.concurrent.FutureTask$Sync.innerRun(


at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(

at java.util.concurrent.ScheduledThreadPoolExecutor$

at java.util.concurrent.ThreadPoolExecutor.runWorker(

at java.util.concurrent.ThreadPoolExecutor$

… 1 more[/patch]

It seems to happen when I try to scale the tree model, but I am not that sure.

It happens on another thread also, and breaks the bullet physics (everything stops moving).

I need to know if I did something wrong or that is a bug.

but when I try to go to where the exception happened, there is no sync source available, that I could evaluate variables.

I am running the latest SVN. :roll:

good thx!

btw, it took me some time to see that I had to click the search box and type jbullet source… :cry:

EDIT: btw, I found the bug… it was a by zero division, leading to infinity float value… when passed to node.scale(f) lead to the crash… the point is, shouldnt it say/inform that there is a by zero division happening??? :open_mouth:

EDIT: there is absolutely no way to workaround division by zero on float values in the whole internet… :cry: