ArrayIndexOutOfBoundsException on Object3D.copy()

Started by grog, September 09, 2013, 04:31:17 AM

Previous topic - Next topic

grog

I am trying to port my Android project to PC and getting an exception during Object3D.copy() when invoking the Object3d(Object3D) constructor and Object3D.cloneObject().  Everything is working fine on the Android version.  Seems to happen on all of my objects (which are serialized MD2s), although with a different array index of course.  Using the latest version from the Download page.

java.lang.ArrayIndexOutOfBoundsException: 1790
at com.threed.jpct.Object3D.copy(Object3D.java:914)
at com.threed.jpct.Object3D.<init>(Object3D.java:786)
at com.threed.jpct.Object3D.<init>(Object3D.java:763)

I uploaded the mesh that resulted in the above error here.

EgonOlsen

Make sure that you are not using the version serialized for Android (i.e. in reduced mode) on the deskop, because that won't work.