jPCT-AE - a 3d engine for Android > Bugs

setScale doesn't seem to work for serialized objects.

<< < (3/3)

zammbi:
Basically the same, but different line numbers.


--- Quote ---03-07 09:36:10.628: I/jPCT-AE(8844): OpenGL vendor:     Qualcomm
03-07 09:36:10.628: I/jPCT-AE(8844): OpenGL renderer:   Adreno 200
03-07 09:36:10.628: I/jPCT-AE(8844): OpenGL version:    OpenGL ES-CM 1.1
03-07 09:36:10.628: I/jPCT-AE(8844): OpenGL renderer initialized (using 2 texture stages)
03-07 09:36:10.638: I/jPCT-AE(8844): Adding Lightsource: 0
03-07 09:36:10.648: I/jPCT-AE(8844): Loading Texture...
03-07 09:36:10.648: I/jPCT-AE(8844): Loading Texture...
03-07 09:36:11.088: I/jPCT-AE(8844): Loading Texture...
03-07 09:36:11.278: I/jPCT-AE(8844): Normal vectors calculated in 2ms!
03-07 09:36:11.378: I/jPCT-AE(8844): Memory usage before compacting: 7763 KB used out of 8135 KB. Max. memory available to the VM is 24576 KB.
03-07 09:36:11.658: I/jPCT-AE(8844): Memory usage after compacting: 7749 KB used out of 8135 KB. Max. memory available to the VM is 24576 KB.
03-07 09:36:11.658: I/jPCT-AE(8844): Saving master Activity!
03-07 09:36:11.668: I/jPCT-AE(8844): Subobject of object 0/object2 compiled to flat fixed point data using 48 vertices in 3ms!
03-07 09:36:11.668: I/jPCT-AE(8844): Object 0/object2 compiled to 1 subobjects in 9ms!
03-07 09:36:11.668: I/jPCT-AE(8844): Object 'object2' uses one texture set!
03-07 09:36:11.678: I/jPCT-AE(8844): [ 1331066171678 ] - WARNING: There's a problem with the object list not being consistent during rendering. This is often caused by concurrent modification of jPCT objects on a thread different from the rendering thread!
03-07 09:36:11.678: I/jPCT-AE(8844): [ 1331066171685 ] - ERROR: java.lang.NullPointerException
03-07 09:36:11.678: I/jPCT-AE(8844):    at com.threed.jpct.Object3D.transformVertices(Object3D.java:5783)
03-07 09:36:11.678: I/jPCT-AE(8844):    at com.threed.jpct.World.renderScene(World.java:1047)
03-07 09:36:11.678: I/jPCT-AE(8844):    at com.threed.jpct.example.HelloWorld$MyRenderer.onDrawFrame(HelloWorld.java:267)
03-07 09:36:11.678: I/jPCT-AE(8844):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1332)
03-07 09:36:11.678: I/jPCT-AE(8844):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
03-07 09:36:11.698: W/dalvikvm(8844): threadid=8: thread exiting with uncaught exception (group=0x40020ac0)
03-07 09:36:11.728: E/AndroidRuntime(8844): FATAL EXCEPTION: GLThread 9
03-07 09:36:11.728: E/AndroidRuntime(8844): java.lang.RuntimeException: [ 1331066171685 ] - ERROR: java.lang.NullPointerException
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.Object3D.transformVertices(Object3D.java:5783)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.World.renderScene(World.java:1047)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.example.HelloWorld$MyRenderer.onDrawFrame(HelloWorld.java:267)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1332)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.Logger.log(Logger.java:189)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.Logger.log(Logger.java:148)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.World.renderScene(World.java:1062)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at com.threed.jpct.example.HelloWorld$MyRenderer.onDrawFrame(HelloWorld.java:267)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1332)
03-07 09:36:11.728: E/AndroidRuntime(8844):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)

--- End quote ---

EgonOlsen:
I think that i've fixed this. Please re-download the beta jar and give it a try. I've obviously never tested this combination...it doesn't happen if you load the model from a file or call either build() or compile() on a deserialized one.

zammbi:
No longer crashes  :)

Navigation

[0] Message Index

[*] Previous page

Go to full version