When I have some objects in the physics space (native bullet on android), it appears that native bullet is staying alive and maintaining the objects in the native physics space after the app is closed. When I start the app a second time, I get a native crash after there are a bunch of “finalizing” log entries from the native side. When I remove the controls and physics objects by calling physicsSpace.remove it seems to be fine.
Obviously, it is better to remove objects you create on exit, which is what I’m now doing, but I was wondering if there was a way to force the bullet library to unload itself and clear all it’s entries? It appears that the finalize methods are not being called when the app closes. I assume this is because the library is static so the system does not run gc on it which does not allow the finalize methods to be called?
It looks like, from the log below, that after I start adding the physics objects on the second load of the app, the engine start running the finalize routines and then the app crashes when the finalize for the physicsSpace runs.
[java]
06-07 12:45:22.697 23083 23131 I AssetManager: DesktopAssetManager created.
06-07 12:45:22.697 23083 23131 I AndroidAssetManager: AndroidAssetManager created.
06-07 12:45:22.751 23083 23085 D dalvikvm: GC_CONCURRENT freed 1482K, 56% free 4236K/9543K, external 3927K/3975K, paused 2ms+5ms
06-07 12:45:22.751 23083 23131 I Camera : INFO Camera 12:45:22 PM Camera created (W: 960, H: 540)
06-07 12:45:22.751 23083 23131 I Camera : INFO Camera 12:45:22 PM Camera created (W: 960, H: 540)
06-07 12:45:22.915 23083 23131 I MaterialDef: INFO MaterialDef 12:45:22 PM Loaded material definition: Unshaded
06-07 12:45:22.978 23083 23085 D dalvikvm: GC_CONCURRENT freed 923K, 48% free 5035K/9543K, external 3208K/3975K, paused 2ms+5ms
06-07 12:45:23.111 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:23 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:23.118 23083 23131 I mygame.Main: INFO Main 12:45:23 PM cam Near Frustum: 1
06-07 12:45:23.118 23083 23131 I mygame.Main: INFO Main 12:45:23 PM cam Near Frustum: 2
06-07 12:45:23.204 23083 23085 D dalvikvm: GC_CONCURRENT freed 980K, 40% free 5805K/9543K, external 3464K/3975K, paused 2ms+11ms
06-07 12:45:23.392 23083 23131 I MaterialDef: INFO MaterialDef 12:45:23 PM Loaded material definition: Phong Lighting
06-07 12:45:23.462 23083 23085 D dalvikvm: GC_CONCURRENT freed 2510K, 48% free 5292K/9991K, external 3465K/3975K, paused 2ms+3ms
06-07 12:45:23.579 4854 4854 D RadioSignalLevel: Cqi = 11RSRP = -84Lte RSRPlevel: 4, LTE CQi level: 4
06-07 12:45:23.868 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:23 PM Child (Models/v1/vscene1-scene_node) attached to this node (Root Node)
06-07 12:45:23.868 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle2.004-geom-1
06-07 12:45:23.868 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 351868
06-07 12:45:23.876 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 371c40
06-07 12:45:23.876 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 351a20
06-07 12:45:23.876 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 3eeb50
06-07 12:45:23.876 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 3eeb50
06-07 12:45:23.876 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 4,123,472 to physics space.
06-07 12:45:23.884 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle2.003-geom-1
06-07 12:45:23.884 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 2c4978
06-07 12:45:23.884 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 3885c0
06-07 12:45:23.884 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 3e1f30
06-07 12:45:23.884 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 3efa20
06-07 12:45:23.884 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 3efa20
06-07 12:45:23.892 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 4,127,264 to physics space.
06-07 12:45:23.892 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle2.002-geom-1
06-07 12:45:23.892 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 2ba500
06-07 12:45:23.947 23083 23085 D dalvikvm: GC_CONCURRENT freed 1552K, 44% free 5660K/9991K, external 3512K/3975K, paused 3ms+9ms
06-07 12:45:23.947 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 360f20
06-07 12:45:23.947 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 3e7460
06-07 12:45:23.947 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 2d2760
06-07 12:45:23.947 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 2d2760
06-07 12:45:23.947 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 2,959,200 to physics space.
06-07 12:45:23.954 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle2.001-geom-1
06-07 12:45:23.954 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 2c5290
06-07 12:45:23.954 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 2f3890
06-07 12:45:23.954 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 2ee2f0
06-07 12:45:23.954 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 3efca0
06-07 12:45:23.954 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 3efca0
06-07 12:45:23.962 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 4,127,904 to physics space.
06-07 12:45:23.962 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle1.003-geom-1
06-07 12:45:23.962 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 39aec8
06-07 12:45:23.962 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 3e3bb0
06-07 12:45:23.962 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 3e3d00
06-07 12:45:23.962 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 3dd970
06-07 12:45:23.970 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 3dd970
06-07 12:45:23.970 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 4,053,360 to physics space.
06-07 12:45:23.970 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle1.002-geom-1
06-07 12:45:23.970 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 33cfd8
06-07 12:45:23.970 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 2c5130
06-07 12:45:23.970 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 318870
06-07 12:45:23.970 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 3e2c30
06-07 12:45:23.978 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 3e2c30
06-07 12:45:23.978 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 4,074,544 to physics space.
06-07 12:45:23.978 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle1.001-geom-1
06-07 12:45:23.978 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 3e3a98
06-07 12:45:23.978 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 3188d0
06-07 12:45:23.978 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 2ec8f0
06-07 12:45:23.978 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 31abe0
06-07 12:45:23.978 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 31abe0
06-07 12:45:23.986 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:23 PM Adding RigidBody 3,255,264 to physics space.
06-07 12:45:23.986 23083 23131 I mygame.GeometryUtils: INFO 12:45:23 PM addPhysics: Found Static Object: stat-obsticle1-geom-1
06-07 12:45:23.986 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:23 PM Created MotionState 2ec950
06-07 12:45:23.986 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Mesh 350f90
06-07 12:45:23.986 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:23 PM Created Shape 336530
06-07 12:45:23.986 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:23 PM Created RigidBody 2ba240
06-07 12:45:23.986 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:23 PM initUserPointer() objectId = 2ba240
06-07 12:45:23.993 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 2,859,584 to physics space.
06-07 12:45:23.993 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Dynamic Object: dyn-100-Icoshere.003-geom-1
06-07 12:45:23.993 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 364360
06-07 12:45:24.001 23083 23131 I HullCollisionShape: INFO HullCollisionShape 12:45:24 PM Created Shape 364a90
06-07 12:45:24.001 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 3a3450
06-07 12:45:24.001 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 3a3450
06-07 12:45:24.009 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,814,480 to physics space.
06-07 12:45:24.009 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Dynamic Object: dyn-100-Icoshere.002-geom-1
06-07 12:45:24.009 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 3a36b8
06-07 12:45:24.017 23083 23131 I HullCollisionShape: INFO HullCollisionShape 12:45:24 PM Created Shape 343d00
06-07 12:45:24.017 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 352a70
06-07 12:45:24.017 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 352a70
06-07 12:45:24.017 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,484,272 to physics space.
06-07 12:45:24.017 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Dynamic Object: dyn-100-Icoshere.001-geom-1
06-07 12:45:24.025 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 352d08
06-07 12:45:24.033 23083 23131 I HullCollisionShape: INFO HullCollisionShape 12:45:24 PM Created Shape 2ed260
06-07 12:45:24.033 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 34acb0
06-07 12:45:24.033 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 34acb0
06-07 12:45:24.033 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,452,080 to physics space.
06-07 12:45:24.033 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Dynamic Object: dyn-100-Icoshere-geom-1
06-07 12:45:24.033 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 2d26b8
06-07 12:45:24.040 23083 23131 I HullCollisionShape: INFO HullCollisionShape 12:45:24 PM Created Shape 2f2bb0
06-07 12:45:24.048 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 2d2000
06-07 12:45:24.048 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 2d2000
06-07 12:45:24.048 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 2,957,312 to physics space.
06-07 12:45:24.048 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-jump1.003-geom-1
06-07 12:45:24.048 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 38c5a0
06-07 12:45:24.048 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 2f3780
06-07 12:45:24.048 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 2ddf00
06-07 12:45:24.056 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 38be20
06-07 12:45:24.056 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 38be20
06-07 12:45:24.056 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,718,688 to physics space.
06-07 12:45:24.056 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-jump1.002-geom-1
06-07 12:45:24.056 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 38b230
06-07 12:45:24.056 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 38c0a0
06-07 12:45:24.056 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 2f2f50
06-07 12:45:24.064 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 3c7ca0
06-07 12:45:24.064 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 3c7ca0
06-07 12:45:24.064 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,964,064 to physics space.
06-07 12:45:24.064 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-jump1.001-geom-1
06-07 12:45:24.064 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 319e58
06-07 12:45:24.064 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 360470
06-07 12:45:24.064 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 2c6b60
06-07 12:45:24.064 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 3c7790
06-07 12:45:24.072 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 3c7790
06-07 12:45:24.072 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,962,768 to physics space.
06-07 12:45:24.072 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-jump1-geom-1
06-07 12:45:24.072 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 2f0e40
06-07 12:45:24.072 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 2c6bc0
06-07 12:45:24.072 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 362c60
06-07 12:45:24.079 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 3a6dc0
06-07 12:45:24.079 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 3a6dc0
06-07 12:45:24.079 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,829,184 to physics space.
06-07 12:45:24.079 23083 23131 I HullCollisionShape: INFO HullCollisionShape 12:45:24 PM Created Shape 362dc0
06-07 12:45:24.079 23083 23131 I GhostControl: INFO PhysicsGhostObject 12:45:24 PM Created Ghost Object 2e3a70
06-07 12:45:24.079 23083 23131 I GhostControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 2e3a70
06-07 12:45:24.079 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding ghost object 2e3a70 to physics space.
06-07 12:45:24.087 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-wall4-geom-1
06-07 12:45:24.087 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 3699f8
06-07 12:45:24.087 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 2b9fd0
06-07 12:45:24.087 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 2e3c10
06-07 12:45:24.087 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 3a68b0
06-07 12:45:24.087 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 3a68b0
06-07 12:45:24.087 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,827,888 to physics space.
06-07 12:45:24.095 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-wall2-geom-1
06-07 12:45:24.095 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 2ba0f8
06-07 12:45:24.095 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 2c1260
06-07 12:45:24.095 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 39ad10
06-07 12:45:24.095 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 382920
06-07 12:45:24.095 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 382920
06-07 12:45:24.095 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,680,544 to physics space.
06-07 12:45:24.103 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-wall3-geom-1
06-07 12:45:24.103 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 382b90
06-07 12:45:24.103 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 3e8ca0
06-07 12:45:24.103 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 36ea10
06-07 12:45:24.103 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 360c10
06-07 12:45:24.103 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 360c10
06-07 12:45:24.103 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,542,032 to physics space.
06-07 12:45:24.111 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-bulletinboard-geom-1
06-07 12:45:24.111 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 333088
06-07 12:45:24.111 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 333130
06-07 12:45:24.111 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 36b340
06-07 12:45:24.111 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 44c950
06-07 12:45:24.111 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 44c950
06-07 12:45:24.111 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 4,507,984 to physics space.
06-07 12:45:24.118 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-wall1-geom-1
06-07 12:45:24.118 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 32db88
06-07 12:45:24.118 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 32dc30
06-07 12:45:24.118 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 338420
06-07 12:45:24.118 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 328ae0
06-07 12:45:24.118 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 328ae0
06-07 12:45:24.118 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,312,352 to physics space.
06-07 12:45:24.118 23083 23131 I mygame.GeometryUtils: INFO 12:45:24 PM addPhysics: Found Static Object: stat-floor-geom-1
06-07 12:45:24.126 23083 23131 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Created MotionState 311e38
06-07 12:45:24.126 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Mesh 2e92d0
06-07 12:45:24.126 23083 23131 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Created Shape 2e9340
06-07 12:45:24.126 23083 23131 I RigidBodyControl: INFO PhysicsRigidBody 12:45:24 PM Created RigidBody 33a240
06-07 12:45:24.134 23083 23131 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 33a240
06-07 12:45:24.134 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding RigidBody 3,383,872 to physics space.
06-07 12:45:24.134 23083 23131 I HullCollisionShape: INFO HullCollisionShape 12:45:24 PM Created Shape 2c5fd0
06-07 12:45:24.134 23083 23131 I GhostControl: INFO PhysicsGhostObject 12:45:24 PM Created Ghost Object 398830
06-07 12:45:24.134 23083 23131 I GhostControl: INFO PhysicsCollisionObject 12:45:24 PM initUserPointer() objectId = 398830
06-07 12:45:24.134 23083 23131 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Adding ghost object 398830 to physics space.
06-07 12:45:24.228 23083 23085 D dalvikvm: GC_CONCURRENT freed 2448K, 48% free 5260K/9991K, external 3536K/3975K, paused 2ms+3ms
06-07 12:45:24.290 23083 23131 D dalvikvm: GC_FOR_MALLOC freed 322K, 49% free 5166K/9991K, external 3536K/3975K, paused 40ms
06-07 12:45:24.290 23083 23131 I dalvikvm-heap: Grow heap (frag case) to 10.696MB for 122896-byte allocation
06-07 12:45:24.337 23083 23084 D dalvikvm: GC_FOR_MALLOC freed 12K, 48% free 5274K/10119K, external 3536K/3975K, paused 36ms
06-07 12:45:24.384 23083 23131 D dalvikvm: GC_FOR_MALLOC freed 64K, 49% free 5210K/10119K, external 3536K/3975K, paused 36ms
06-07 12:45:24.384 23083 23131 I dalvikvm-heap: Grow heap (frag case) to 10.706MB for 88744-byte allocation
06-07 12:45:24.431 23083 23084 D dalvikvm: GC_FOR_MALLOC freed 0K, 49% free 5296K/10247K, external 3536K/3975K, paused 35ms
06-07 12:45:24.595 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (Models/vehicle2/vehicle2-scene_node) attached to this node (Root Node)
06-07 12:45:24.595 23083 23131 I OGLESContext: GL Surface changed, width: 960 height: 540
06-07 12:45:24.603 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Gui Node)
06-07 12:45:24.658 23083 23131 D dalvikvm: GC_FOR_MALLOC freed 1208K, 45% free 5700K/10247K, external 3778K/3975K, paused 46ms
06-07 12:45:24.658 23083 23084 I GhostControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3199b0
06-07 12:45:24.658 23083 23084 I HullCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 2e3cf0
06-07 12:45:24.658 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 326a10
06-07 12:45:24.658 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 311610
06-07 12:45:24.658 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 326938
06-07 12:45:24.658 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3a3950
06-07 12:45:24.658 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 326630
06-07 12:45:24.658 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 322260
06-07 12:45:24.658 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 326528
06-07 12:45:24.673 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 396850
06-07 12:45:24.673 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 2f1dc0
06-07 12:45:24.673 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 33eb50
06-07 12:45:24.673 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 3261d8
06-07 12:45:24.673 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 330e00
06-07 12:45:24.673 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 325eb0
06-07 12:45:24.673 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 30ce40
06-07 12:45:24.673 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 325dd0
06-07 12:45:24.673 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 2c4370
06-07 12:45:24.681 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 325b40
06-07 12:45:24.689 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 2ed5f0
06-07 12:45:24.689 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 325aa0
06-07 12:45:24.689 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 31e3c0
06-07 12:45:24.689 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 325890
06-07 12:45:24.689 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 31e0d0
06-07 12:45:24.689 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 325710
06-07 12:45:24.689 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 2e3e10
06-07 12:45:24.689 23083 23084 I GhostControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 33e680
06-07 12:45:24.689 23083 23084 I HullCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 307410
06-07 12:45:24.697 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 325320
06-07 12:45:24.697 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 31a0d0
06-07 12:45:24.697 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 2e4180
06-07 12:45:24.697 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 341320
06-07 12:45:24.704 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 324bc0
06-07 12:45:24.704 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 324b00
06-07 12:45:24.704 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 324990
06-07 12:45:24.712 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 324ec0
06-07 12:45:24.712 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 323780
06-07 12:45:24.712 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 3236d0
06-07 12:45:24.712 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 3222c8
06-07 12:45:24.712 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 323ce0
06-07 12:45:24.712 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 322130
06-07 12:45:24.712 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 322080
06-07 12:45:24.720 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 349340
06-07 12:45:24.720 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3225e0
06-07 12:45:24.720 23083 23084 I HullCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 349140
06-07 12:45:24.720 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 348548
06-07 12:45:24.720 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 320310
06-07 12:45:24.720 23083 23084 I HullCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 343fc0
06-07 12:45:24.720 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 33d790
06-07 12:45:24.728 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 344050
06-07 12:45:24.728 23083 23084 I HullCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 33d570
06-07 12:45:24.728 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 33d4c8
06-07 12:45:24.728 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 343450
06-07 12:45:24.736 23083 23084 I HullCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 33c790
06-07 12:45:24.736 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 33ae80
06-07 12:45:24.736 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 33c820
06-07 12:45:24.743 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 2c4f90
06-07 12:45:24.743 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 3e6d10
06-07 12:45:24.743 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 2c4ef0
06-07 12:45:24.743 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 33b110
06-07 12:45:24.743 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 2e4120
06-07 12:45:24.743 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 3c1700
06-07 12:45:24.751 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 30d440
06-07 12:45:24.751 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3e6460
06-07 12:45:24.751 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 33ebd0
06-07 12:45:24.751 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 311690
06-07 12:45:24.751 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 2e38d8
06-07 12:45:24.751 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3e5660
06-07 12:45:24.759 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 345dc0
06-07 12:45:24.759 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 33a710
06-07 12:45:24.759 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 2edd50
06-07 12:45:24.759 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3e4870
06-07 12:45:24.767 23083 23084 I MeshCollisionShape: INFO CollisionShape 12:45:24 PM Finalizing CollisionShape 351dd0
06-07 12:45:24.767 23083 23084 I MeshCollisionShape: INFO MeshCollisionShape 12:45:24 PM Finalizing Mesh 2ed660
06-07 12:45:24.767 23083 23084 I RigidBodyMotionState: INFO RigidBodyMotionState 12:45:24 PM Finalizing MotionState 2f4248
06-07 12:45:24.783 23083 23084 I RigidBodyControl: INFO PhysicsCollisionObject 12:45:24 PM Finalizing CollisionObject 3410a0
06-07 12:45:24.783 23083 23084 I PhysicsSpace: INFO PhysicsSpace 12:45:24 PM Finalizing PhysicsSpace 3090a8
06-07 12:45:24.790 23145 23145 I DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-07 12:45:24.790 23145 23145 I DEBUG : Build fingerprint: ‘verizon/targa_vzw/cdma_targa:2.3.4/5.5.1_84_DBN-71/120106:user/release-keys’
06-07 12:45:24.790 23145 23145 I DEBUG : pid: 23083, tid: 23084 >>> com.mycompany.mygame <<<
06-07 12:45:24.790 23145 23145 I DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0a946fed
06-07 12:45:24.790 23145 23145 I DEBUG : r0 00309508 r1 0a946fb1 r2 0030ff60 r3 82058b8d
06-07 12:45:24.790 23145 23145 I DEBUG : r4 00309650 r5 0000000e r6 0a946fb1 r7 00324ec0
06-07 12:45:24.790 23145 23145 I DEBUG : r8 00000000 r9 44a14f8c 10 44a14f74 fp acaa0368
06-07 12:45:24.790 23145 23145 I DEBUG : ip afd474d0 sp 100ffa58 lr 82063d83 pc 82058b8e cpsr 60000030
06-07 12:45:24.790 23145 23145 I DEBUG : d0 657a696c616e694e d1 7968502f74656c61
06-07 12:45:24.790 23145 23145 I DEBUG : d2 0079006800500074 d3 0073006300690069
06-07 12:45:24.790 23145 23145 I DEBUG : d4 3f8e690d411df8bf d5 c1104c894112df61
06-07 12:45:24.790 23145 23145 I DEBUG : d6 c1135e11bf838277 d7 411df8bf411df8bf
06-07 12:45:24.790 23145 23145 I DEBUG : d8 0000000000000000 d9 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d10 0000000000000000 d11 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d12 0000000000000000 d13 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d14 0000000000000000 d15 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d16 4038000000000000 d17 3ff0000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d18 42eccefa43de3400 d19 3fbc71c71c71c71c
06-07 12:45:24.790 23145 23145 I DEBUG : d20 4008000000000000 d21 3fd99a27ad32ddf5
06-07 12:45:24.790 23145 23145 I DEBUG : d22 3fd24998d6307188 d23 3fcc7288e957b53b
06-07 12:45:24.790 23145 23145 I DEBUG : d24 3fc74721cad6b0ed d25 3fc39a09d078c69f
06-07 12:45:24.790 23145 23145 I DEBUG : d26 0000000000000000 d27 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d28 0000000000000000 d29 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : d30 0000000000000000 d31 0000000000000000
06-07 12:45:24.790 23145 23145 I DEBUG : scr 60000012
06-07 12:45:24.790 23145 23145 I DEBUG :
06-07 12:45:24.837 23145 23145 I DEBUG : #00 pc 00058b8e /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.837 23145 23145 I DEBUG : #01 pc 00063d80 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.837 23145 23145 I DEBUG : #02 pc 000a56b0 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.837 23145 23145 I DEBUG : #03 pc 000a56f0 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.837 23145 23145 I DEBUG : #04 pc 00054264 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.837 23145 23145 I DEBUG : #05 pc 00052224 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.837 23145 23145 I DEBUG : #06 pc 00011eb4 /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #07 pc 00043a5c /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #08 pc 0004928a /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #09 pc 000170c8 /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #10 pc 0001c298 /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #11 pc 0001b188 /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #12 pc 0005a1cc /system/lib/libdvm.so
06-07 12:45:24.837 23145 23145 I DEBUG : #13 pc 0005a3e4 /system/lib/libdvm.so
06-07 12:45:24.845 23145 23145 I DEBUG : #14 pc 000504ec /system/lib/libdvm.so
06-07 12:45:24.845 23145 23145 I DEBUG : #15 pc 00050568 /system/lib/libdvm.so
06-07 12:45:24.845 23145 23145 I DEBUG : #16 pc 000506fa /system/lib/libdvm.so
06-07 12:45:24.845 23145 23145 I DEBUG : #17 pc 0004e5ba /system/lib/libdvm.so
06-07 12:45:24.845 23145 23145 I DEBUG : #18 pc 00011990 /system/lib/libc.so
06-07 12:45:24.845 23145 23145 I DEBUG : #19 pc 0001155c /system/lib/libc.so
06-07 12:45:24.845 23145 23145 I DEBUG :
06-07 12:45:24.845 23145 23145 I DEBUG : code around pc:
06-07 12:45:24.845 23145 23145 I DEBUG : 82058b6c f8c5742b e8bd8008 ea4f81f0 211000c1
06-07 12:45:24.845 23145 23145 I DEBUG : 82058b7c fe3ef078 e7dc4607 fe4af078 bf00e7ec
06-07 12:45:24.845 23145 23145 I DEBUG : 82058b8c 6bcbb570 460c4605 6b092b02 302cbf0c
06-07 12:45:24.845 23145 23145 I DEBUG : 82058b9c 46161d28 fafaf7fe 6be26b63 6ba2b193
06-07 12:45:24.845 23145 23145 I DEBUG : 82058bac 6ba3639a 6b62b10b 6e28635a 46324621
06-07 12:45:24.845 23145 23145 I DEBUG :
06-07 12:45:24.845 23145 23145 I DEBUG : code around lr:
06-07 12:45:24.845 23145 23145 I DEBUG : 82063d60 b19660bc 68036ce0 47986a5b 463169a2
06-07 12:45:24.845 23145 23145 I DEBUG : 82063d70 6a9b6803 6ce04798 463169a2 68db6803
06-07 12:45:24.845 23145 23145 I DEBUG : 82063d80 f8c74798 692080bc 350168a3 dbe4429d
06-07 12:45:24.845 23145 23145 I DEBUG : 82063d90 7d23b118 2300b953 23016123 75234620
06-07 12:45:24.845 23145 23145 I DEBUG : 82063da0 61232300 60e360a3 81f0e8bd fd36f06d
06-07 12:45:24.845 23145 23145 I DEBUG :
06-07 12:45:24.845 23145 23145 I DEBUG : stack:
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa18 00000002
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa1c 8205ab89 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa20 00323f60
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa24 000001dc
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa28 0030ff60
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa2c 820ec6c8
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa30 0000000e
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa34 0a946fb1
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa38 00324ec0
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa3c 00000000
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa40 44a14f8c
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa44 44a14f74
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa48 acaa0368
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa4c 8205aaff /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa50 df002777
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa54 e3a070ad
06-07 12:45:24.845 23145 23145 I DEBUG : #00 100ffa58 00309650
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa5c 0000000e
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa60 0a946fb1
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa64 82063d83 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.845 23145 23145 I DEBUG : #01 100ffa68 00309650
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa6c 820ef3f8
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa70 100ffb70
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa74 44a14f94
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa78 100ffaa8
06-07 12:45:24.845 23145 23145 I DEBUG : 100ffa7c 820a56b5 /data/data/com.mycompany.mygame/lib/libbulletjme.so
06-07 12:45:24.853 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.853 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.853 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.853 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.853 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.853 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.861 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.861 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.861 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.861 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.868 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.892 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.892 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.892 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.900 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.900 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.900 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.900 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.915 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.915 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.915 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:24.915 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:24.931 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:25.033 23083 23085 D dalvikvm: GC_CONCURRENT freed 1389K, 38% free 6358K/10247K, external 3650K/3975K, paused 3ms+70ms
06-07 12:45:25.033 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:24 PM Child (null) attached to this node (Statistics View)
06-07 12:45:25.033 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:25 PM Child (BitmapFont) attached to this node (null)
06-07 12:45:25.033 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:25 PM Child (null) attached to this node (Statistics View)
06-07 12:45:25.040 23083 23131 I com.jme3.scene.Node: INFO Node 12:45:25 PM Child (Statistics View) attached to this node (Gui Node)
06-07 12:45:25.462 23083 23131 I AndroidHarness: INFO AndroidHarness 12:45:25 PM Splash Screen Picture Resource ID: 0
06-07 12:45:25.806 4727 4764 I BootReceiver: Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
06-07 12:45:25.845 4727 4937 I ActivityManager: Process com.mycompany.mygame (pid 23083) has died.
06-07 12:45:25.845 4727 4998 I WindowManager: WIN DEATH: Window{40d9f058 SurfaceView paused=false}
06-07 12:45:25.845 4727 4980 I WindowManager: WIN DEATH: Window{40d5b070 com.mycompany.mygame/com.mycompany.mygame.MainActivity paused=false}
[/java]
You handle it like normal java, so you just let go of the objects. Finalizing the physics space in native bullet is broken though, I know that. The issue is that all physics objects have to be removed to properly finalize the class as you found out. This means in native bullet one would have to track gc for all objects etc to make it seamless…
@normen: When an Android app shuts down, it kills the app which means BulletAppState.cleanup() will be called.
Does native bullet properly get cleaned up in that call? If not, then native bullet will not work well on Android.
@Momoko_Fan said:
@normen: When an Android app shuts down, it kills the app which means BulletAppState.cleanup() will be called.
Does native bullet properly get cleaned up in that call? If not, then native bullet will not work well on Android.
Normally the finalizer will probably not be called at all, it will just all be removed from memory at once so you only get this if you have a "full" (as in objects in it) physics space where you lose all references to its objects and the space itself.
Is it possible to reset all physics objects in BulletAppState.cleanup()? So when BulletAppState.initialize() is called again, those objects are uploaded to bullet.
This is how the OpenGL/OpenAL NativeObject class works right now and so far it never failed.
@Momoko_Fan said:
Is it possible to reset all physics objects in BulletAppState.cleanup()?
well that could be a workaround I guess.. it doesn't guarantee it won't crash for people using the jme's direct bullet api (w/o the AppState and Controls) though.
@normen said:
well that could be a workaround I guess.. it doesn't guarantee it won't crash for people using the jme's direct bullet api (w/o the AppState and Controls) though.
I don't think this is an issue. You have a pointer to a native bullet object, when the native object is "finalized" or "reset" by the system, you set the pointer to null. When you start using that object again, you check if the pointer is set to null, if it is, then you create the object again.
This way, the "native peer" of the native bullet object representation in Java is always valid while it is used.
Wouldn’t that mean that the java object must store all data relevant for recreation? As far as I know many informations are currently only on the native layer present, eg getRestitution calls the antive object, the java one doen’t know anything about the values needed for crecreation if the native object suddenly ceases to exist.
Lol you guys are otally off the topic. The issue is simply finalizng a native physics space that has objects in it.
Just as an FYI, when I am clearing the scene with native bullet (ie. preparing to load a new level), I had to disable the physics control before removing the physics object from the physicsSpace in order to avoid some native crashes when using Android. I don’t seem to have to add this line when playing on the PC, just on Android.
The control.setEnabled(false) routine removes the collision shape from physics while just calling remove(obj) in PhysicsSpace just seems to set the physicsSpace to null for the control (doesn’t remove the collisionshape).
[java]
for (int i=0; i<geometry.getNumControls(); i++) {
Control control = geometry.getControl(i);
if (control instanceof PhysicsControl) {
((PhysicsControl)control).setEnabled(false);
if (((PhysicsControl)control).getPhysicsSpace() != null) {
((PhysicsControl)control).getPhysicsSpace().remove(control);
}
}
geometry.removeControl(control);
control = null;
}
[/java]
Should the removeCollisionObject call included in the setEnabled function also be included when removing objects in PhysicsSpace?
from RigidBodyControl (common bullet):
[java]
public void setEnabled(boolean enabled) {
this.enabled = enabled;
if (space != null) {
if (enabled && !added) {
if (spatial != null) {
setPhysicsLocation(getSpatialTranslation());
setPhysicsRotation(getSpatialRotation());
}
space.addCollisionObject(this);
added = true;
} else if (!enabled && added) {
space.removeCollisionObject(this);
added = false;
}
}
}
[/java]
from PhysicsSpace (native bullet):
[java]
/**
- removes an object from the physics space
-
@param obj the PhysicsControl or Spatial with PhysicsControl to remove
*/
public void remove(Object obj) {
if (obj instanceof PhysicsControl) {
((PhysicsControl) obj).setPhysicsSpace(null);
} else if (obj instanceof Spatial) {
Spatial node = (Spatial) obj;
PhysicsControl control = node.getControl(PhysicsControl.class);
control.setPhysicsSpace(null);
} else if (obj instanceof PhysicsCollisionObject) {
removeCollisionObject((PhysicsCollisionObject) obj);
} else if (obj instanceof PhysicsJoint) {
removeJoint((PhysicsJoint) obj);
} else {
throw (new UnsupportedOperationException("Cannot remove this kind of object from the physics space."));
}
}
public void removeCollisionObject(PhysicsCollisionObject obj) {
if (obj instanceof PhysicsGhostObject) {
removeGhostObject((PhysicsGhostObject) obj);
} else if (obj instanceof PhysicsRigidBody) {
removeRigidBody((PhysicsRigidBody) obj);
} else if (obj instanceof PhysicsCharacter) {
removeCharacter((PhysicsCharacter) obj);
}
}
/**
- Removes all physics controls and joints in the given spatial from the physics space
- (e.g. before saving to disk) - recursive if node
-
@param spatial the rootnode containing the physics objects
*/
public void removeAll(Spatial spatial) {
if (spatial.getControl(RigidBodyControl.class) != null) {
RigidBodyControl physicsNode = spatial.getControl(RigidBodyControl.class);
if (physicsNodes.containsValue(physicsNode)) {
physicsNode.setPhysicsSpace(null);
}
//remove joints
List<PhysicsJoint> joints = physicsNode.getJoints();
for (Iterator<PhysicsJoint> it1 = joints.iterator(); it1.hasNext(){
PhysicsJoint physicsJoint = it1.next();
//add connected physicsnodes if they are not already added
if (physicsNodes.containsValue(physicsJoint.getBodyA())) {
if (physicsJoint.getBodyA() instanceof PhysicsControl) {
remove(physicsJoint.getBodyA());
} else {
removeRigidBody(physicsJoint.getBodyA());
}
}
if (physicsNodes.containsValue(physicsJoint.getBodyB())) {
if (physicsJoint.getBodyA() instanceof PhysicsControl) {
remove(physicsJoint.getBodyB());
} else {
removeRigidBody(physicsJoint.getBodyB());
}
}
if (physicsJoints.contains(physicsJoint)) {
removeJoint(physicsJoint);
}
}
} else if (spatial.getControl(PhysicsControl.class) != null) {
spatial.getControl(PhysicsControl.class).setPhysicsSpace(null);
}
//recursion
if (spatial instanceof Node) {
List<Spatial> children = ((Node) spatial).getChildren();
for (Iterator<Spatial> it = children.iterator(); it.hasNext(){
Spatial spat = it.next();
removeAll(spat);
}
}
}
[/java]
Yes you have to do this on PC too. The physics space removes the objects from memory and the single java objects too hence the “NPE” crashes.
@normen said:
Yes you have to do this on PC too. The physics space removes the objects from memory and the single java objects too hence the "NPE" crashes.
A native crash during runtime is a very serious bug. I strongly recommend finding some sort of fix for this issue.
@Momoko_Fan said:
A native crash during runtime is a very serious bug. I strongly recommend finding some sort of fix for this issue.
Orly? Nobody ever said native bullet is done so if people wanna bang their heads, fine.