Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OculusGO: JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception java.lang.RuntimeException: android.os.DeadSystemException #2042

Open
felislynx-silae opened this issue Oct 21, 2019 · 0 comments

Comments

@felislynx-silae
Copy link

If we run application and leave headset on table and it will go to sleep mode, framework crashes:

2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception java.lang.RuntimeException: android.os.DeadSystemException
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.app.ContextImpl.unregisterReceiver(android.content.BroadcastReceiver) (ContextImpl.java:1335)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.content.ContextWrapper.unregisterReceiver(android.content.BroadcastReceiver) (ContextWrapper.java:608)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void com.oculus.vrapi.HeadsetReceiver.stopReceiver(android.content.Context) (HeadsetReceiver.java:42)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void org.gearvrf.OvrVrapiActivityHandler.nativeLeaveVrMode(long) (OvrVrapiActivityHandler.java:-2)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void org.gearvrf.OvrVrapiActivityHandler.access$100(long) (OvrVrapiActivityHandler.java:46)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void org.gearvrf.OvrVrapiActivityHandler$1.run() (OvrVrapiActivityHandler.java:93)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1477)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1259)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470] Caused by: android.os.DeadSystemException: 
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.app.ContextImpl.unregisterReceiver(android.content.BroadcastReceiver) (ContextImpl.java:1335)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.content.ContextWrapper.unregisterReceiver(android.content.BroadcastReceiver) (ContextWrapper.java:608)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void com.oculus.vrapi.HeadsetReceiver.stopReceiver(android.content.Context) (HeadsetReceiver.java:42)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void org.gearvrf.OvrVrapiActivityHandler.nativeLeaveVrMode(long) (OvrVrapiActivityHandler.java:-2)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void org.gearvrf.OvrVrapiActivityHandler.access$100(long) (OvrVrapiActivityHandler.java:46)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void org.gearvrf.OvrVrapiActivityHandler$1.run() (OvrVrapiActivityHandler.java:93)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1477)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1259)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470] 
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]     in call to GetStaticMethodID
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]     from void org.gearvrf.OvrVrapiActivityHandler.nativeLeaveVrMode(long)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470] "GLThread 179" prio=10 tid=13 Runnable
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   | group="main" sCount=0 dsCount=0 obj=0x12cc0660 self=0xdd04a200
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   | sysTid=11797 nice=0 cgrp=default sched=1073741824/0 handle=0xca6e9920
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   | state=R schedstat=( 15639623182 614220326 4666 ) utm=1453 stm=109 core=1 HZ=100
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   | stack=0xca5e7000-0xca5e9000 stackSize=1038KB
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   | held mutexes= "mutator lock"(shared held)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #00 pc 0037b4f5  /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #01 pc 0035b24b  /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+302)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #02 pc 00253d21  /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+812)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #03 pc 00253f65  /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+64)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #04 pc 000cd70b  /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #05 pc 000cd2f7  /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+362)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #06 pc 000cc31b  /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+26)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #07 pc 000cb6bb  /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+810)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #08 pc 000ce815  /system/lib/libart.so (_ZN3art8CheckJNI19GetMethodIDInternalEPKcP7_JNIEnvP7_jclassS2_S2_b+460)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #09 pc 000c5f9d  /system/lib/libart.so (_ZN3art8CheckJNI17GetStaticMethodIDEP7_JNIEnvP7_jclassPKcS6_+24)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #10 pc 00065ab8  /system/priv-app/VrDriver/VrDriver.apk (???)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #11 pc 000b3554  /system/priv-app/VrDriver/VrDriver.apk (???)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #12 pc 000073ec  /data/app/pl.fream.evryplacevr.gearvr.evr.debug-2/lib/arm/libgvrf-oculus.so (_ZN3gvr11GVRActivity11leaveVrModeEv+216)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #13 pc 00007fd4  /data/app/pl.fream.evryplacevr.gearvr.evr.debug-2/lib/arm/libgvrf-oculus.so (Java_org_gearvrf_OvrVrapiActivityHandler_nativeLeaveVrMode+40)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   native: #14 pc 0015684d  /data/app/pl.fream.evryplacevr.gearvr.evr.debug-2/oat/arm/base.odex (Java_org_gearvrf_OvrVrapiActivityHandler_nativeLeaveVrMode__J+80)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at org.gearvrf.OvrVrapiActivityHandler.nativeLeaveVrMode(Native method)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at org.gearvrf.OvrVrapiActivityHandler.access$100(OvrVrapiActivityHandler.java:46)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at org.gearvrf.OvrVrapiActivityHandler$1.run(OvrVrapiActivityHandler.java:93)
2019-10-21 15:23:48.648 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1477)
2019-10-21 15:23:48.649 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470]   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1259)
2019-10-21 15:23:48.649 11761-11797/pl.fream.evryplacevr.gearvr.evr.debug A/art: art/runtime/java_vm_ext.cc:470] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant