# Oculus App crashes on unload streaming levels

**URL:** <https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [April 18, 2021, 11:00pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138 "2021-04-18T23:00:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomiConical](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomiConical](https://forums.unrealengine.com/u/tomiConical)\
**Post date:** [April 18, 2021, 11:00pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/1 "2021-04-18T23:00:07Z")

</div>

Hiya, i’m stumped with a problem involving the oculus and load/unload of streaming levels. Here are the crash logs. it looks like it involves lightmaps but it still crashes going into scenes with no lighmaps. Any help or pointer in terms of direction to look to fix this would be appreciated.

04-19 10:22:05.309: A/DEBUG(7817): \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\*  
04-19 10:22:05.309: A/DEBUG(7817): Build fingerprint: ‘oculus/vr\_monterey/monterey:10/QQ3A.200805.001/15280600139500000:user/release-keys’  
04-19 10:22:05.309: A/DEBUG(7817): Revision: ‘0’  
04-19 10:22:05.309: A/DEBUG(7817): ABI: ‘arm’  
04-19 10:22:05.309: A/DEBUG(7817): Timestamp: 2021-04-19 10:22:05+1200  
04-19 10:22:05.309: A/DEBUG(7817): pid: 6954, tid: 7562, name: RenderThread 4 \>\>\> com.Conical.OptimizedGF \<\<\<  
04-19 10:22:05.310: A/DEBUG(7817): uid: 10145  
04-19 10:22:05.310: A/DEBUG(7817): signal 11 (SIGSEGV), code 2 (SEGV\_ACCERR), fault addr 0xd1e1cf99  
04-19 10:22:05.310: A/DEBUG(7817): r0 dddddddd r1 f403f1bc r2 00000000 r3 00000001  
04-19 10:22:05.310: A/DEBUG(7817): r4 f403f1bc r5 00000001 r6 cdde07f0 r7 d5140a80  
04-19 10:22:05.310: A/DEBUG(7817): r8 d5140a80 r9 dddddddc r10 dddddddc r11 b7b04df8  
04-19 10:22:05.310: A/DEBUG(7817): ip 83fb72ec sp b7b04d90 lr dddddddd pc c0464730  
04-19 10:22:05.442: A/DEBUG(7817): backtrace:  
04-19 10:22:05.442: A/DEBUG(7817): #00 pc 07aa2730 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FLinearColor FilteredVolumeLookup(FVector, FIntVector, unsigned char const\*)+944) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #01 pc 07aa1220 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (InterpolateVolumetricLightmap(FVector, FVolumetricLightmapSceneData const&, FVolumetricLightmapInterpolation&)+2964) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #02 pc 07aa2b74 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (GetIndirectLightingCacheParameters(ERHIFeatureLevel::Type, FIndirectLightingCacheUniformParameters&, FIndirectLightingCache const\*, FIndirectLightingCacheAllocation const\*, FVector, unsigned int, FVolumetricLightmapSceneData\*)+304) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #03 pc 07d70780 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FPrimitiveSceneInfo::UpdateIndirectLightingCacheBuffer(FIndirectLightingCache const\*, FIndirectLightingCacheAllocation const\*, FVector, unsigned int, FVolumetricLightmapSceneData\*)+268) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #04 pc 07d70ba8 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FPrimitiveSceneInfo::UpdateIndirectLightingCacheBuffer()+988) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #05 pc 07e7a900 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FSceneRenderer::UpdatePrimitiveIndirectLightingCacheBuffers()+548) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #06 pc 07b63e7c /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FMobileSceneRenderer::InitViews(FRHICommandListImmediate&)+4176) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #07 pc 07b6573c /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FMobileSceneRenderer::Render(FRHICommandListImmediate&)+2440) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #08 pc 07ed2c3c /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #09 pc 07ed501c /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #10 pc 05af966c /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FNamedTaskThread::ProcessTasksNamedThread(int, bool)+2144) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #11 pc 05af83f4 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FNamedTaskThread::ProcessTasksUntilQuit(int)+108) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #12 pc 07080980 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (RenderingThreadMain(FEvent\*)+216) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #13 pc 070ac290 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FRenderingThread::Run()+20) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #14 pc 05bef204 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FRunnableThreadPThread::Run()+152) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #15 pc 05af3ae8 /data/app/com.Conical.OptimizedGF-gBrKjAVz4XkepGiSjecc1Q==/lib/arm/libUE4.so (FRunnableThreadPThread::\_ThreadProc(void\*)+80) (BuildId: a7deb0a9cb43e25ac5c038fb7c092425e93b43fd)  
04-19 10:22:05.442: A/DEBUG(7817): #16 pc 000a554f /apex/com.android.runtime/lib/bionic/libc.so (\_\_pthread\_start(void\*)+20) (BuildId: 83dc9512fb55867999b06e7977b660bc)  
04-19 10:22:05.442: A/DEBUG(7817): #17 pc 0005f683 /apex/com.android.runtime/lib/bionic/libc.so (\_\_start\_thread+30) (BuildId: 83dc9512fb55867999b06e7977b660bc)

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [April 19, 2021, 7:25pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/2 "2021-04-19T19:25:17Z")

</div>

Hey @tomiConical, did you submit a [bug report?](https://www.unrealengine.com/support/report-a-bug)

Always good to write a Forum post as well, in case others come across the same issue!

---

<div class="post-metadata">

**Author:** ![tomiConical](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomiConical](https://forums.unrealengine.com/u/tomiConical)\
**Post date:** [April 20, 2021, 4:59am UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/3 "2021-04-20T04:59:44Z")

</div>

Hi @VictorLerp not sure how to do that (the forum topic) and I wasn’t sure it counted as a bug just yet since I was still investigating it. I’ll get to that immediately and hopefully with more information about the issue.

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [April 20, 2021, 3:30pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/4 "2021-04-20T15:30:35Z")

</div>

That’s the right approach! The best way to get a bug investigated is to provide as much information as possible, and a fresh project where the issue can be reproduced.

---

<div class="post-metadata">

**Author:** ![krammak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krammak](https://forums.unrealengine.com/u/krammak)\
**Post date:** [September 1, 2022, 7:19am UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/5 "2022-09-01T07:19:33Z")

</div>

Using UE 4.27, I faced a similar “GetIndirectLightingCacheParameters” crash in Android when unloading an old level and then loading a new level instance.  
I solved it by changing the volume lighting method to “Sparse Volume Lighting Sample”, which will force the engine to use the indirect lighting cache instead of volumetric lightmaps.

---

<div class="post-metadata">

**Author:** ![rajeevmukundan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rajeevmukundan](https://forums.unrealengine.com/u/rajeevmukundan)\
**Post date:** [October 21, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/6 "2022-10-21T16:33:58Z")

</div>

Where is this setting that you changed? I’m running into the same error on my project. Level unload seems to crash ( a specific level)

---

<div class="post-metadata">

**Author:** ![staniekm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@staniekm](https://forums.unrealengine.com/u/staniekm)\
**Post date:** [December 12, 2022, 3:00pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/7 "2022-12-12T15:00:29Z")

</div>

Did you manage to solve it? I got nthe same crash and cant figure out whats why. World Settings on Sprawse Volume Lighting Sample doesn’t help

---

<div class="post-metadata">

**Author:** ![JInger520351](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jinger520351/32/947549_2.png) [@JInger520351](https://forums.unrealengine.com/u/JInger520351)\
**Post date:** [June 26, 2023, 3:40am UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/8 "2023-06-26T03:40:27Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/f/baf7a703a0a04c1b75213c91043894422c2582fb.png)

---

<div class="post-metadata">

**Author:** ![JInger520351](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jinger520351/32/947549_2.png) [@JInger520351](https://forums.unrealengine.com/u/JInger520351)\
**Post date:** [June 26, 2023, 3:40am UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/9 "2023-06-26T03:40:41Z")

</div>

Maybe this，same issue！

---

<div class="post-metadata">

**Author:** ![jollajj98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jollajj98](https://forums.unrealengine.com/u/jollajj98)\
**Post date:** [August 10, 2023, 1:09pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/10 "2023-08-10T13:09:51Z")

</div>

To anyone struggling with Quest 2 level streaming crashes, I have found that duplicating the map to the root content folder and using that one instead is working for me! I guess it is some kind of bug, but at least there’s a fairly easy solution: levels in root folder do not crash on load

---

<div class="post-metadata">

**Author:** ![jollajj98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jollajj98](https://forums.unrealengine.com/u/jollajj98)\
**Post date:** [August 11, 2023, 10:27am UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/11 "2023-08-11T10:27:41Z")

</div>

Correction: I thought it was because of duplicating the levels into the root content folder, but then the bug came back. Now I know that if I re-build the lighting separately in each of the sublevels (opening those maps directly and not inside of the other main level), then that bug is fixed for some reason.

---

<div class="post-metadata">

**Author:** ![morieris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@morieris](https://forums.unrealengine.com/u/morieris)\
**Post date:** [September 7, 2023, 11:42pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/12 "2023-09-07T23:42:03Z")

</div>

Just tried all three solutions here and none worked. This is for a crash when streaming out a level on android (quest) headset.  
Tried rebuilding lighting in the level by itself - still crashed.  
Tried changing volume lighting method to sparse volume lighting sample - still crashed.  
Tried early bailout in FilteredVolumeLookup if !Data - still crashed.

Here’s the stack trace I’m getting from adb logs, so that google results can find this thread better:  
`(FLinearColor FilteredVolumeLookup<FFloat3Packed>(UE::Math::TVector<double>, UE::Math::TIntVector3<int>, FFloat3Packed const*)+396) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (InterpolateVolumetricLightmap(UE::Math::TVector<double>, FVolumetricLightmapSceneData const&, FVolumetricLightmapInterpolation&)+1064) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (GetIndirectLightingCacheParameters(ERHIFeatureLevel::Type, FIndirectLightingCacheUniformParameters&, FIndirectLightingCache const*, FIndirectLightingCacheAllocation const*, UE::Math::TVector<double>, unsigned int, FVolumetricLightmapSceneData*)+636) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FPrimitiveSceneInfo::UpdateIndirectLightingCacheBuffer(FIndirectLightingCache const*, FIndirectLightingCacheAllocation const*, UE::Math::TVector<double>, unsigned int, FVolumetricLightmapSceneData*)+104) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FPrimitiveSceneInfo::UpdateIndirectLightingCacheBuffer()+936) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FSceneRenderer::UpdatePrimitiveIndirectLightingCacheBuffers()+552) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FMobileSceneRenderer::InitViews(FRDGBuilder&, FSceneTexturesConfig&, FInstanceCullingManager&)+8612) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FMobileSceneRenderer::Render(FRDGBuilder&)+2352) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FNamedTaskThread::ProcessTasksNamedThread(int, bool)+2248) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FNamedTaskThread::ProcessTasksUntilQuit(int)+236) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn(ENamedThreads::Type)+384) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (RenderingThreadMain(FEvent*)+1640) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FRenderingThread::Run()+64) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FRunnableThreadPThread::Run()+228) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137) (FRunnableThreadPThread::_ThreadProc(void*)+100) (BuildId: 5041c9ab6a9f3fef6067880f5eb63fc545402137)`

---

<div class="post-metadata">

**Author:** ![morieris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@morieris](https://forums.unrealengine.com/u/morieris)\
**Post date:** [September 15, 2023, 11:22pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/13 "2023-09-15T23:22:01Z")

</div>

Some updates. It appears for us that the issue only appears in Development builds, and not Shipping builds. Additionally for development builds, the workaround we found was to not unload streaming levels that have lighting built in them - it’s fine to have them set as hidden, but not unload them.

---

<div class="post-metadata">

**Author:** ![andrea.sp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andrea.sp](https://forums.unrealengine.com/u/andrea.sp)\
**Post date:** [December 19, 2023, 1:59pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/14 "2023-12-19T13:59:52Z")

</div>

I have the same problem, it looks like it is crashing only if loading the same level instance twice, is it the same for you?

---

<div class="post-metadata">

**Author:** ![miro95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@miro95](https://forums.unrealengine.com/u/miro95)\
**Post date:** [August 23, 2024, 11:21pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/15 "2024-08-23T23:21:48Z")

</div>

I found a solution to this problem. In my case, it helped to first make the level invisible, and only then unload it. Try set bShouldBeVisible = false, wait until IsLevelVisible become false, then unload level.

---

<div class="post-metadata">

**Author:** ![AlFaruh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlFaruh](https://forums.unrealengine.com/u/AlFaruh)\
**Post date:** [September 26, 2024, 6:57pm UTC](https://forums.unrealengine.com/t/oculus-app-crashes-on-unload-streaming-levels/225138/16 "2024-09-26T18:57:52Z")

</div>

Hey! How are you?  
Did you use world composition or level streaming volumes?
