Unity-Android-Sensor-Plugin
Unity-Android-Sensor-Plugin copied to clipboard
crash on android 5.1 with ART
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: #01 pc 00003739 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
F/art (25584): art/runtime/check_jni.cc:70] native: #02 pc 0024a3a9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits