Developer Notes

This crash no longer occurs in 4.14.

Description

Projects using Open Level (blueprints) or ServerTravel (in C++) will crash the application once it's open on a device using Gear VR Mode.


10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: thread Thread[12,tid=19693,Native,Thread*=0xd9a4a800,peer=0x12da3280,"Thread-2130"] using JNIEnv* from thread Thread[12,tid=19671,Runnable,Thread*=0xf4836c00,peer=0x0,""]
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] in call to GetStaticMethodID
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] "Thread-2130" prio=5 tid=12 Runnable
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12da3280 self=0xd9a4a800
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] | sysTid=19693 nice=0 cgrp=default sched=1/1 handle=0xcc417300
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=105 stm=26 core=5 HZ=100
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] | stack=0xc6602000-0xc6604000 stackSize=1012KB
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #00 pc 00004e64 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #01 pc 00003665 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #02 pc 002713d1 /system/lib/libart.so (art::DumpNativeStack(std::_1::basic_ostream<char, std::_1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #03 pc 00253447 /system/lib/libart.so (art::Thread::Dump(std::_1::basic_ostream<char, std::_1::char_traits<char> >&) const+158)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #04 pc 000b7ebb /system/lib/libart.so (art::JniAbort(char const*, char const*)+610)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #05 pc 000b85e1 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #06 pc 000bb813 /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1190)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #07 pc 000bddbd /system/lib/libart.so (art::CheckJNI::GetStaticMethodID(_JNIEnv*, _jclass*, char const*, char const*)+36)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #08 pc 00088abc /data/app/com.oculus.systemactivities-1/lib/arm/libvrapiimpl.so (???)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #09 pc 00012784 /data/app/com.oculus.systemactivities-1/lib/arm/libvrapiimpl.so (vrapi_SubmitFrame+244)
10-05 18:01:46.451: A/art(19619): sart/runtime/check_jni.cc:65] native: #10 pc 0598fa34 /data/app/com.YourCompany.MapLoadTimeTest4125-1/lib/arm/libUE4.so (FGearVRSplash::Tick(float)+420)

Steps to Reproduce

1. Download Project here: [Link Removed]
2. Unzip and Open project in 4.13.1-3142249
3. Verify the project settings are set up for GearVR: https://docs.unrealengine.com/latest/INT/Platforms/GearVR/QuickStart/index.html
4. Package for Android
5. Install APK on S6 or S7 for GearVR

Result: The game will crash after 5 to 10 seconds (there is a delay on the open level blueprint)
Expected Result: The open level should work without crashing the application on the device.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-36903 in the post.

2
Login to Vote

Cannot Reproduce
ComponentXR
Affects Versions4.13.1
Target Fix4.14
Fix Commit3173604
CreatedOct 5, 2016
ResolvedOct 25, 2016
UpdatedSep 16, 2019