crash on android 5.1 with ART
Opened this issue · 0 comments
its crashing on a smartwatch with android 5.1.
i think its because of an array is getting null, possible a bug in ART!
i tried to fix this, but no success!
logcat:
F/art (25584): art/runtime/check_jni.cc:70] JNI DETECTED ERROR IN APPLICATION: jarray was NULL
F/art (25584): art/runtime/check_jni.cc:70] in call to GetArrayLength
F/art (25584): art/runtime/check_jni.cc:70] from boolean com.unity3d.player.UnityPlayer.nativeRender()
F/art (25584): art/runtime/check_jni.cc:70] "UnityMain" prio=5 tid=14 Runnable
F/art (25584): art/runtime/check_jni.cc:70] | group="main" sCount=0 dsCount=0 obj=0x12d000b0 self=0xb747b4d0
F/art (25584): art/runtime/check_jni.cc:70] | sysTid=25604 nice=0 cgrp=default sched=0/0 handle=0xa3bf0000
F/art (25584): art/runtime/check_jni.cc:70] | state=R schedstat=( 4610029146 151181068 2225 ) utm=419 stm=42 core=2 HZ=100
F/art (25584): art/runtime/check_jni.cc:70] | stack=0xa3aee000-0xa3af0000 stackSize=1036KB
F/art (25584): art/runtime/check_jni.cc:70] | held mutexes= "mutator lock"(shared held)
F/art (25584): art/runtime/check_jni.cc:70] native: #00 pc 0000505c /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
F/art (25584): art/runtime/check_jni.cc:70] native: #1 pc 00003739 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
F/art (25584): art/runtime/check_jni.cc:70] native: #2 pc 0024a3a9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+68)
F/art (25584): art/runtime/check_jni.cc:70] native: #3 pc 0022e87b /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+146)
F/art (25584): art/runtime/check_jni.cc:70] native: #4 pc 000b0d67 /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
F/art (25584): art/runtime/check_jni.cc:70] native: #5 pc 000b14a7 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+58)
F/art (25584): art/runtime/check_jni.cc:70] native: #6 pc 000b3c4f /system/lib/libart.so (art::ScopedCheck::Check(bool, char const*, ...) (.constprop.135)+1814)
F/art (25584): art/runtime/check_jni.cc:70] native: #7 pc 000bc625 /system/lib/libart.so (art::CheckJNI::GetArrayLength(_JNIEnv*, _jarray*)+36)
F/art (25584): art/runtime/check_jni.cc:70] native: #8 pc 00c5ae74 /data/app/com.flyingcat.sensorstest-1/lib/arm/libunity.so (AndroidJNI_CUSTOM_FromFloatArray(void*)+124)
F/art (25584): art/runtime/check_jni.cc:70] native: #09 pc 0000e28c (???)
F/art (25584): art/runtime/check_jni.cc:70] at com.unity3d.player.UnityPlayer.nativeRender(Native method)
F/art (25584): art/runtime/check_jni.cc:70] at com.unity3d.player.UnityPlayer.a(unavailable:-1)
F/art (25584): art/runtime/check_jni.cc:70] at com.unity3d.player.UnityPlayer$b$1.handleMessage(unavailable:-1)
F/art (25584): art/runtime/check_jni.cc:70] at android.os.Handler.dispatchMessage(Handler.java:107)
F/art (25584): art/runtime/check_jni.cc:70] at android.os.Looper.loop(Looper.java:194)
F/art (25584): art/runtime/check_jni.cc:70] at com.unity3d.player.UnityPlayer$b.run(unavailable:-1)
F/art (25584): art/runtime/check_jni.cc:70]
F/libc (25584): Fatal signal 6 (SIGABRT), code -6 in tid 25604 (UnityMain)