cancel
Showing results for 
Search instead for 
Did you mean: 

Crash when using level streaming

bobcober
Level 3
Using Oculus UE4 version 4.25.4.

If I add a sub-level set to initially loaded and initially visible I get a crash in:

01-05 10:14:07.858: D/UE4(4086): Ensure condition failed: Scene->GetShadingPath() != EShadingPath::Mobile [File:I:/GitHub/OculusUnrealEngine/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp] [Line: 2098] 
01-05 10:14:08.502: A/DEBUG(4414): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-05 10:14:08.502: A/DEBUG(4414): Build fingerprint: 'oculus/hollywood/hollywood:10/QP1A.190711.020/12018400103000000:user/release-keys'
01-05 10:14:08.502: A/DEBUG(4414): Revision: '0'
01-05 10:14:08.502: A/DEBUG(4414): ABI: 'arm64'
01-05 10:14:08.502: A/DEBUG(4414): Timestamp: 2021-01-05 10:14:08-0700
01-05 10:14:08.502: A/DEBUG(4414): pid: 4086, tid: 4403, name: RenderThread 4  >>> com.YourCompany.BobsQuest4 <<<
01-05 10:14:08.502: A/DEBUG(4414): uid: 10166
01-05 10:14:08.502: A/DEBUG(4414): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x70696485bc
01-05 10:14:08.502: A/DEBUG(4414): Cause: execute-only (no-read) memory access error; likely due to data in .text.
01-05 10:14:08.502: A/DEBUG(4414):     x0  0000006f7b2b52a0  x1  00000070696485bc  x2  0000006f82378210  x3  0000000000000000
01-05 10:14:08.502: A/DEBUG(4414):     x4  0000006f823782b0  x5  000000706db7f750  x6  000000000000001d  x7  0000000000000000
01-05 10:14:08.502: A/DEBUG(4414):     x8  00000070696485b8  x9  0000006f7a2774f4  x10 0000000000000001  x11 0000000000000000
01-05 10:14:08.502: A/DEBUG(4414):     x12 000000000000ff00  x13 0000000000000001  x14 fffffffffc000000  x15 000000000000ff80
01-05 10:14:08.502: A/DEBUG(4414):     x16 00000070696543c8  x17 0000007069649568  x18 00000000001aeaeb  x19 0000006f82381488
01-05 10:14:08.502: A/DEBUG(4414):     x20 0000006f7b2b52a0  x21 0000006f8239f020  x22 0000006f8239ed00  x23 00000070696485b8
01-05 10:14:08.502: A/DEBUG(4414):     x24 0000000000000004  x25 0000006f7b07d0a8  x26 0000006f731ec0a6  x27 0000006f08b30470
01-05 10:14:08.502: A/DEBUG(4414):     x28 000000000000000d  x29 0000006f82378240
01-05 10:14:08.502: A/DEBUG(4414):     sp  0000006f82378210  lr  0000006f7a282474  pc  0000006f7a277508
01-05 10:14:08.571: A/DEBUG(4414): backtrace:
01-05 10:14:08.571: A/DEBUG(4414):       #00 pc 000000000c452508  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.571: A/DEBUG(4414):       #01 pc 000000000c45d470  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (_ULaarch64_is_signal_frame+76) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.571: A/DEBUG(4414):       #02 pc 000000000c45b47c  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (_ULaarch64_step+44) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.571: A/DEBUG(4414):       #03 pc 000000000c451be8  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (backtrace+340) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.571: A/DEBUG(4414):       #04 pc 00000000078a60e4  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (FAndroidPlatformStackWalk::CaptureStackBackTrace(unsigned long long*, unsigned int, void*)+204) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.571: A/DEBUG(4414):       #05 pc 0000000007954584  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long long, int, void*)+104) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.572: A/DEBUG(4414):       #06 pc 0000000007aed418  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (FDebug::EnsureFailed(char const*, char const*, int, char16_t const*, int)+568) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)
01-05 10:14:08.572: A/DEBUG(4414):       #07 pc 0000000007aedc18  /data/app/com.YourCompany.BobsQuest4-9UXTG2H8bXMDzGKPE0r5wA==/lib/arm64/libUE4.so (FDebug::OptionallyLogFormattedEnsureMessageReturningFalseImpl(bool, char const*, char const*, int, char16_t const*, ...)+172) (BuildId: 27e07f84352a3f9470a0c1155e997045349568a9)

Thanks for any help/advice
2 REPLIES 2

torano
Level 4
Did you find a solution?

I am using Quest 1, and One of my project crashes with the error "Ensure condition failed: Scene->GetShadingPath() != EShadingPath::Mobile" when OpenLevel is used, and another project crashes with LoadStreamLevel after OpenLevel.

Some people say they got their app crashed on level transition with Quest 2, and they fixed it by enabling Support arm64 option instead of Support armv7. I tried both but it didn't work for me.

rpalandri
Level 5
You can comment out the codepath in 
if (PrimitiveSceneInfo->NeedsReflectionCaptureUpdate())
 with the ensure that fails, or simply #ifndef PLATFORM_ANDROID it.