The thing is my game runs perfectly well on my phone (HTC desire 300, android 4.1.2) but gets random crashes on my brother’s Samsung Galaxy Note 3. Naturally, I plugged his phone in and ran the game through the debugger and the only thing I could find of significance was this:
F/art (10282): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: the return type of CallVoidMethodV does not match boolean java.util.List.add(java.lang.Object)
F/art (10282): art/runtime/check_jni.cc:65] in call to CallVoidMethodV
F/art (10282): art/runtime/check_jni.cc:65] from void com.jme3.bullet.PhysicsSpace.rayTest_native(com.jme3.math.Vector3f, com.jme3.math.Vector3f, long, java.util.List)
F/art (10282): art/runtime/check_jni.cc:65] “GLThread 229602” prio=5 tid=4 Runnable
F/art (10282): art/runtime/check_jni.cc:65] | group=“main” sCount=0 dsCount=0 obj=0x12c062a0 self=0xaedf1000
F/art (10282): art/runtime/check_jni.cc:65] | sysTid=10303 nice=0 cgrp=apps sched=0/0 handle=0xaedb8700
F/art (10282): art/runtime/check_jni.cc:65] | state=R schedstat=( 2672616711 1113587564 2723 ) utm=221 stm=46 core=3 HZ=100
F/art (10282): art/runtime/check_jni.cc:65] | stack=0xb39fe000-0xb3a00000 stackSize=1036KB
F/art (10282): art/runtime/check_jni.cc:65] | held mutexes= “mutator lock”(shared held)
F/art (10282): art/runtime/check_jni.cc:65] native: #00 pc 00004640 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
F/art (10282): art/runtime/check_jni.cc:65] native: #01 pc 00002e8d /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
F/art (10282): art/runtime/check_jni.cc:65] native: #02 pc 002475d9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+68)
F/art (10282): art/runtime/check_jni.cc:65] native: #03 pc 0022c3d3 /system/lib/libart.so (art::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+146)
F/art (10282): art/runtime/check_jni.cc:65] native: #04 pc 000b11e3 /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
F/art (10282): art/runtime/check_jni.cc:65] native: #05 pc 000b191d /system/lib/libart.so (art::JniAbortF(char const*, char const*, …)+60)
F/art (10282): art/runtime/check_jni.cc:65] native: #06 pc 000b22d3 /system/lib/libart.so (art::ScopedCheck::CheckSig(_jmethodID*, char const*, bool) (.constprop.130)+266)
F/art (10282): art/runtime/check_jni.cc:65] native: #07 pc 000bbf05 /system/lib/libart.so (art::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+60)
F/art (10282): art/runtime/check_jni.cc:65] native: #08 pc 00050789 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, …)+20)
F/art (10282): art/runtime/check_jni.cc:65] native: #09 pc 00052a25 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (jmeBulletUtil::addResult(_JNIEnv*, _jobject*, btVector3, btVector3, float, btCollisionObject const*)+140)
F/art (10282): art/runtime/check_jni.cc:65] native: #10 pc 00051e15 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (???)
F/art (10282): art/runtime/check_jni.cc:65] native: #11 pc 00062b27 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (???)
F/art (10282): art/runtime/check_jni.cc:65] native: #12 pc 00065611 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btCollisionWorld::rayTestSingleInternal(btTransform const&, btTransform const&, btCollisionObjectWrapper const*, btCollisionWorld::RayResultCallback&)+1260)
F/art (10282): art/runtime/check_jni.cc:65] native: #13 pc 0006575d /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (???)
F/art (10282): art/runtime/check_jni.cc:65] native: #14 pc 0006577d /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (???)
F/art (10282): art/runtime/check_jni.cc:65] native: #15 pc 000648d1 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btDbvt::rayTest(btDbvtNode const*, btVector3 const&, btVector3 const&, btDbvt::ICollide&)+752)
F/art (10282): art/runtime/check_jni.cc:65] native: #16 pc 000654e1 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btCollisionWorld::rayTestSingleInternal(btTransform const&, btTransform const&, btCollisionObjectWrapper const*, btCollisionWorld::RayResultCallback&)+956)
F/art (10282): art/runtime/check_jni.cc:65] native: #17 pc 00065799 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btCollisionWorld::rayTestSingle(btTransform const&, btTransform const&, btCollisionObject*, btCollisionShape const*, btTransform const&, btCollisionWorld::RayResultCallback&)+20)
F/art (10282): art/runtime/check_jni.cc:65] native: #18 pc 000657e9 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btSingleRayCallback::process(btBroadphaseProxy const*)+72)
F/art (10282): art/runtime/check_jni.cc:65] native: #19 pc 0005861b /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (BroadphaseRayTester::Process(btDbvtNode const*)+10)
F/art (10282): art/runtime/check_jni.cc:65] native: #20 pc 0005973b /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btDbvt::rayTestInternal(btDbvtNode const*, btVector3 const&, btVector3 const&, btVector3 const&, unsigned int*, float, btVector3 const&, btVector3 const&, btDbvt::ICollide&) const+670)
F/art (10282): art/runtime/check_jni.cc:65] native: #21 pc 00059843 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btDbvtBroadphase::rayTest(btVector3 const&, btVector3 const&, btBroadphaseRayCallback&, btVector3 const&, btVector3 const&)+74)
F/art (10282): art/runtime/check_jni.cc:65] native: #22 pc 000645d7 /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (btCollisionWorld::rayTest(btVector3 const&, btVector3 const&, btCollisionWorld::RayResultCallback&) const+78)
F/art (10282): art/runtime/check_jni.cc:65] native: #23 pc 000523eb /data/app/com.renewablegames.duckyinspace-2/lib/arm/libbulletjme.so (Java_com_jme3_bullet_PhysicsSpace_rayTest_1native+126)
F/art (10282): art/runtime/check_jni.cc:65] native: #24 pc 001c76f9 /data/dalvik-cache/arm/data@app@com.renewablegames.duckyinspace-2@base.apk@classes.dex (Java_com_jme3_bullet_PhysicsSpace_rayTest_1native__Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2JLjava_util_List_2+168)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.rayTest_native(Native method)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.rayTest(PhysicsSpace.java:796)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.rayTest(PhysicsSpace.java:786)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.control.BetterCharacterControl.checkOnGround(BetterCharacterControl.java:468)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.control.BetterCharacterControl.prePhysicsTick(BetterCharacterControl.java:166)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.preTick_native(PhysicsSpace.java:207)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.stepSimulation(Native method)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.update(PhysicsSpace.java:357)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.PhysicsSpace.update(PhysicsSpace.java:343)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.bullet.BulletAppState.render(BulletAppState.java:257)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.app.state.AppStateManager.render(AppStateManager.java:300)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.app.SimpleApplication.update(SimpleApplication.java:251)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.app.AndroidHarness.update(AndroidHarness.java:467)
F/art (10282): art/runtime/check_jni.cc:65] at com.jme3.system.android.OGLESContext.onDrawFrame(OGLESContext.java:349)
F/art (10282): art/runtime/check_jni.cc:65] at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531)
F/art (10282): art/runtime/check_jni.cc:65] at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
F/art (10282): art/runtime/check_jni.cc:65]
which does not happen on my HTC desire. Im running jme 3.0 stable. The full log is on pastebin here: http://pastebin.com/xAXaSZ85
Thanks for your time.