this exception newer happens on my Nexus 7, my phone or desktop. two Ouya console owners reported this. and it does not always happen. but once happened, level loading fails until application is restarted, possibly because of same exception.
this code runs during level loading in a background thread.
java.lang.ArrayIndexOutOfBoundsException: length=11; index=11
at com.threed.jpct.Vectors.addVertex(Vectors.java:85)
at com.threed.jpct.Object3D.setBoundingBox(Object3D.java:2507)
at com.threed.jpct.Object3D.calcBoundingBox(Object3D.java:1197)
at com.threed.jpct.Object3D.rotateMesh(Object3D.java:2411)
at raft.jumpy.view.Particle.<init>(Particle.java:66)
at raft.jumpy.view.ParticleManager.<init>(ParticleManager.java:43)
at raft.jumpy.view.GameView.<init>(GameView.java:111)
at raft.jumpy.android.ouya.JumpyActivity$5.run(JumpyActivity.java:522)
and this is the relavant particle class. taken from Robombs code I suppose:
public Particle() {
super(PLANE, true);
rotateZ((float)Math.random()*6f);
rotateMesh();
clearRotation();
setBillboarding(Object3D.BILLBOARDING_ENABLED);
setVisibility(Object3D.OBJ_VISIBLE);
setCulling(Object3D.CULLING_DISABLED);
setAdditionalColor(RGBColor.WHITE);
setLighting(Object3D.LIGHTING_NO_LIGHTS);
enableLazyTransformations();
reset();
shareCompiledData(PLANE);
build();
texture="particle_blast";
}
kind of urgent, OUYA will be launched for backers on 28 march