cancel
Showing results for 
Search instead for 
Did you mean: 

Java_com_oculus_vrappframework_VrApp_nativeOnCreate crashes

zproxy
Expert Protege
while testing the latest SDK, Java_com_oculus_vrappframework_VrApp_nativeOnCreate crashes without logging whats wrong.

what class is SystemActivities_StartSystemActivity trying to load?
where is the source to look up or debug?


"X:\opensource\ovr_sdk_mobile_1.0.0.0\VrAppSupport\SystemUtils\Libs\Android\armeabi-v7a\libsystemutils.a"


I/DEBUG ( 2964): Abort message: 'sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: GetStaticMethodID received null jclass'
I/DEBUG ( 2964): r0 00000000 r1 00006959 r2 00000006 r3 00000000
I/DEBUG ( 2964): r4 f7051e38 r5 00000006 r6 00000002 r7 0000010c
I/DEBUG ( 2964): r8 00000000 r9 f486f550 sl f4828000 fp 00000001
I/DEBUG ( 2964): ip 00006959 sp ffa84b38 lr f6ea4cf9 pc f6ec8c24 cpsr 60070010
I/DEBUG ( 2964):
I/DEBUG ( 2964): backtrace:
I/DEBUG ( 2964): #00 pc 0003bc24 /system/lib/libc.so (tgkill+12)
I/DEBUG ( 2964): #01 pc 00017cf5 /system/lib/libc.so (pthread_kill+52)
I/DEBUG ( 2964): #02 pc 00018907 /system/lib/libc.so (raise+10)
I/DEBUG ( 2964): #03 pc 000151a5 /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG ( 2964): #04 pc 00012fec /system/lib/libc.so (abort+4)
I/DEBUG ( 2964): #05 pc 002315a7 /system/lib/libart.so (art::Runtime::Abort()+170)
I/DEBUG ( 2964): #06 pc 000a9281 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
I/DEBUG ( 2964): #07 pc 000b3aef /system/lib/libart.so (art::JniAbort(char const*, char const*)+1102)
I/DEBUG ( 2964): #08 pc 000b4029 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
I/DEBUG ( 2964): #09 pc 000b5a73 /system/lib/libart.so (art::ScopedCheck::CheckInstance(art::ScopedCheck::InstanceKind, _jobject*)+374)
I/DEBUG ( 2964): #10 pc 000b644b /system/lib/libart.so (_ZN3art11ScopedCheck5CheckEbPKcz.constprop.129+514)
I/DEBUG ( 2964): #11 pc 000b9807 /system/lib/libart.so (art::CheckJNI::GetStaticMethodID(_JNIEnv*, _jclass*, char const*, char const*)+58)
I/DEBUG ( 2964): #12 pc 0006111c /data/app/x360video.Activities-1/lib/arm/libmain.so (ovr_GetStaticMethodID(_JNIEnv*, _jclass*, char const*, char const*)+24)
I/DEBUG ( 2964): #13 pc 0015d440 /data/app/x360video.Activities-1/lib/arm/libmain.so (SystemActivities_StartSystemActivity+300)
I/DEBUG ( 2964): #14 pc 0015d928 /data/app/x360video.Activities-1/lib/arm/libmain.so (SystemActivities_DisplayError+680)
I/DEBUG ( 2964): #15 pc 00081058 /data/app/x360video.Activities-1/lib/arm/libmain.so (Java_com_oculus_vrappframework_VrApp_nativeOnCreate+140)
8 REPLIES 8

zproxy
Expert Protege
"com.oculus.systemactivities" ?

zproxy
Expert Protege
dump

ADD R2, PC, R2 ; "packageIsInstalled"
.text.SystemActivities_StartSystemActivity:0000250C LDR R0, [R7,#4]
.text.SystemActivities_StartSystemActivity:00002510 ADD R3, PC, R3 ; "(Landroid/app/Activity;Ljava/lang/Strin"...
.text.SystemActivities_StartSystemActivity:00002514 LDR R1, [R5]
.text.SystemActivities_StartSystemActivity:00002518 BL _Z21ovr_GetStaticMethodIDP7_JNIEnvP7_jclassPKcS4_ ; ovr_GetStaticMethodID(_JNIEnv *,_jclass *,char const*,char const*)
.text.SystemActivities_StartSystemActivity:0000251C LDR R1, [R5]
.text.SystemActivities_StartSystemActivity:00002520 MOV R2, R0
.text.SystemActivities_StartSystemActivity:00002524 LDMIB R7, {R0,R3}
.text.SystemActivities_StartSystemActivity:00002528 STR R8, [SP,#0x40+var_40]
.text.SystemActivities_StartSystemActivity:0000252C BL _ZN7_JNIEnv23CallStaticBooleanMethodEP7_jclassP10_jmethodIDz ; _JNIEnv::CallStaticBooleanMethod(_jclass *,_jmethodID *,...)

zproxy
Expert Protege
this must be related to

D/VrApi (31222): Thread priority security exception!
I/VrApi (31222): Thread priority security exception. Make sure the APK is signed.


why does oculus still need this special sig?

zproxy
Expert Protege
and down the road now this happens:

Abort message: 'sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception 'java.lang.NoSuchMethodError' thrown in unknown throw location'
r0 00000000 r1 00003305 r2 00000006 r3 00000000
r4 eeda9db8 r5 00000006 r6 00000002 r7 0000010c
r8 00000000 r9 f486f550 sl f4834800 fp 00000001
ip 00003305 sp eeda8450 lr f6ea4cf9 pc f6ec8c24 cpsr 60070010

backtrace:
#00 pc 0003bc24 /system/lib/libc.so (tgkill+12)
#01 pc 00017cf5 /system/lib/libc.so (pthread_kill+52)
#02 pc 00018907 /system/lib/libc.so (raise+10)
#03 pc 000151a5 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 00012fec /system/lib/libc.so (abort+4)
#05 pc 002315a7 /system/lib/libart.so (art::Runtime::Abort()+170)
#06 pc 000a9281 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
#07 pc 000b3aef /system/lib/libart.so (art::JniAbort(char const*, char const*)+1102)
#08 pc 000b4029 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
#09 pc 000b72df /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1342)
#10 pc 000b97f1 /system/lib/libart.so (art::CheckJNI::GetStaticMethodID(_JNIEnv*, _jclass*, char const*, char const*)+36)
#11 pc 0006f6f8 /data/app/com.oculus.systemactivities-1/lib/arm/libvrapiimpl.so
#12 pc 0000dd54 /data/app/com.oculus.systemactivities-1/lib/arm/libvrapiimpl.so (vrapi_SubmitFrame+156)
#13 pc 000049e8 /data/app/x360video.Activities-1/lib/arm/libvrapi.so (vrapi_SubmitFrame+16)
#14 pc 0007efe4 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::AppLocal::VrThreadFunction()+3340)
#15 pc 0007f6c0 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::AppLocal::ThreadStarter(OVR::Thread*, void*)+8)
#16 pc 0005ef94 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::Thread::Run()+20)

cybereality
Grand Champion
SystemActivities is sort of like what the Runtime is on the PC.

If you get APK is not signed error, it means you forgot to create a signature file, created it wrong, or put it in an incorrect folder. Nothing will work without the sig file. Please follow the instructions on this page exactly. Do NOT use Google Play Android Apps to find the device ID. They don't work. Just use the command line as directed.

https://developer.oculus.com/osig/

Thanks.
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

zproxy
Expert Protege
oculus app decided now to update and nag about "install apps" bundle. after agreeing to install that bundle the crash went away.

had fun looking at /libvrapiimpl.so bytecode 🙂


>> You cannot make another post so soon after your last.
But i want to.

zproxy
Expert Protege
while undocing the S6 the app did crash.

whats the method its looking for at (vrapi_SubmitFrame+156)?

Noticed a likely misspelled symbol "getHmtMounted"
Other possible symbols found were "getDeviceDocked", "releaseSystemPerformanceStatic"



Abort message: 'sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception 'java.lang.NoSuchMethodError' thrown in unknown throw location'
r0 00000000 r1 00005055 r2 00000006 r3 00000000
r4 f3e82db8 r5 00000006 r6 00000002 r7 0000010c
r8 00000000 r9 f486f550 sl f482ac00 fp 00000001
ip 00005055 sp f3e81450 lr f6ea4cf9 pc f6ec8c24 cpsr 60070010

backtrace:
#00 pc 0003bc24 /system/lib/libc.so (tgkill+12)
#01 pc 00017cf5 /system/lib/libc.so (pthread_kill+52)
#02 pc 00018907 /system/lib/libc.so (raise+10)
#03 pc 000151a5 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 00012fec /system/lib/libc.so (abort+4)
#05 pc 002315a7 /system/lib/libart.so (art::Runtime::Abort()+170)
#06 pc 000a9281 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
#07 pc 000b3aef /system/lib/libart.so (art::JniAbort(char const*, char const*)+1102)
#08 pc 000b4029 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
#09 pc 000b72df /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1342)
#10 pc 000b97f1 /system/lib/libart.so (art::CheckJNI::GetStaticMethodID(_JNIEnv*, _jclass*, char const*, char const*)+36)
#11 pc 0006f6f8 /data/app/com.oculus.systemactivities-1/lib/arm/libvrapiimpl.so
#12 pc 0000dd54 /data/app/com.oculus.systemactivities-1/lib/arm/libvrapiimpl.so (vrapi_SubmitFrame+156)
#13 pc 000049e8 /data/app/x360video.Activities-1/lib/arm/libvrapi.so (vrapi_SubmitFrame+16)
#14 pc 0007efe4 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::AppLocal::VrThreadFunction()+3340)
#15 pc 0007f6c0 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::AppLocal::ThreadStarter(OVR::Thread*, void*)+8)
#16 pc 0005ef94 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::Thread::Run()+20)
#17 pc 0005f894 /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::Thread::PRun()+32)
#18 pc 0005f91c /data/app/x360video.Activities-1/lib/arm/libmain.so (OVR::Thread_PthreadStartFn(void*)+8)


DEVICE MODEL NUMBER = SM-G925F
DEVICE HARDWARE = samsungexynos7420
DEVICE BUILD NAME = LMY47X.G925FXXU2BOGB
DEVICE BUILD TYPE = user
DEVICE OS VERSION = 5.1.1
VRAPI VERSION = 1.0.1.1-146727-19063708 Dec 16 2015 08:21:12 Development RELEASE

zproxy
Expert Protege
fixed. 🙂

nothing to see here. all works now