ArrayIndexOutOfBoundsException: 56

the following code produces error:



[java] Node node_rotating1 = (Node) assetManager.loadModel(“Models/rotating_panel/rotating_panel.j3o”);

node_rotating1.setShadowMode(ShadowMode.CastAndReceive);

node_rotating1.setLocalTranslation(-150,0,0);

CollisionShape cs_basicRotating = CollisionShapeFactory.createDynamicMeshShape(node_rotating1);

node_rotating1_control= new PhysicsRigidBodyControl(cs_basicRotating,1);

node_rotating1.addControl(node_rotating1_control);

bulletAppState.getPhysicsSpace().add(node_rotating1_control);

node_rotating1_control.setKinematic(true);

mainNode.attachChild(node_rotating1);[/java]



error

java.lang.ArrayIndexOutOfBoundsException: 56

at com.jme3.bullet.collision.shapes.HullCollisionShape.getPoints(HullCollisionShape.java:72)

at com.jme3.bullet.collision.shapes.HullCollisionShape.(HullCollisionShape.java:26)

at com.jme3.bullet.util.CollisionShapeFactory.createSingleDynamicMeshShape(CollisionShapeFactory.java:200)

at com.jme3.bullet.util.CollisionShapeFactory.createCompoundShape(CollisionShapeFactory.java:65)

at com.jme3.bullet.util.CollisionShapeFactory.createDynamicMeshShape(CollisionShapeFactory.java:149)

at mygame.Main.initPlatform(Main.java:190)

at mygame.Main.simpleInitApp(Main.java:124)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:134)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

at java.lang.Thread.run(Thread.java:662)



Asset : http://dl.dropbox.com/u/6638610/rotating.7z



This happened after updating to latest revision.

I’d say your model doesnt consist of triangles only.

But, then why this error would show up after the update? Besides, the the mesh formal only holds triangle.

I’ll check it

Okay its fixed, was a small error on my part

great, thanks :slight_smile:



one more thing, is it that, always we need to wait for 24 hour cycle to get the fix.



Is it possible to reduce the cycle a little bit.It would have been very very helpful.

Well that the idea of the nightly build…

If you need real time updates use JME3 directly from the svn repository

There is a doc on how to do it here https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:jmonkeyplatform:use_own_jme