Skip to main content
New Participant
November 8, 2023

UE4 crash when using VR Preview since last Oculus app update

Hello, this has been impossible to use the VR preview anymore since the last Oculus app update. 

Every time you use the VR preview for a second time, Unreal will crash. Please fix this asap, it's making debugging in VR a nightmare.

The issue is on 4.27 but I already discussed with several persons having the issue on different versions of UE5.

This topic has been closed for replies.

23 replies

Participant
November 9, 2023

Having the same exact issue. Oculus v59.0.0.138.366 . Quest 2 with latest firmware over link cable.

Project works fine, first time doing VR preview is normal. Second time crashes immediately.

UE 4.27 stack trace:

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 703] Array index out of bounds: 0 from an array of size 0

UE4Editor_Core!AssertFailedImplV() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:104]
UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:461]
UE4Editor_OpenXRHMD!DispatchCheckVerify<void,<lambda_08824782e99fc79d6f6b674f2fb0d323> >() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h:165]
UE4Editor_OpenXRHMD!FOpenXRHMD::SetFinalViewRect() [D:\Build\++UE4\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp:1297]
UE4Editor_Renderer!FSceneRenderer::PrepareViewRectsForRendering() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:2618]
UE4Editor_Renderer!FDeferredShadingSceneRenderer::Render() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Renderer\Private\DeferredShadingRenderer.cpp:1348]
UE4Editor_Renderer!RenderViewFamily_RenderThread() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:3742]
UE4Editor_Renderer!<lambda_cc1442c4bafed83188c182dd4b1a4ab0>::operator()() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Renderer\Private\SceneRendering.cpp:4009]
UE4Editor_Renderer!TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`43'::FDrawSceneCommandName,<lambda_cc1442c4bafed83188c182dd4b1a4ab0> >::DoTask() [D:\Build\++UE4\Sync\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:183]
UE4Editor_Renderer!TGraphTask<TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`43'::FDrawSceneCommandName,<lambda_cc1442c4bafed83188c182dd4b1a4ab0> > >::ExecuteTask() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:886]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:710]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:602]
UE4Editor_RenderCore!RenderingThreadMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:373]
UE4Editor_RenderCore!FRenderingThread::Run() [D:\Build\++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:509]
UE4Editor_Core!FRunnableThreadWin::Run() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:86]

 

Up and Coming
November 10, 2023

Got the same issue Meta please look into this asap losing precious development time

New Participant
November 10, 2023

Same symptoms here, UE 5.1, Array Index out of Bounds

LoginId:6add565b4e83249bb4d6ed85210d9753
EpicAccountId:3f6bb25e6ba0499a8d00cf8871ed187a

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 763] Array index out of bounds: 0 from an array of size 0

UnrealEditor_OpenXRHMD
UnrealEditor_HeadMountedDisplay
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

 

after the update

New Participant
November 13, 2023

I am experiencing the exact same isssue since last week.

Having the same problem even after packaging the UE project (shipping build).

Has anyone gotten support from the officials?

Thank you,

New Participant
November 13, 2023

I found a solution by installing MetaXR Plugin https://developer.oculus.com/downloads/package/unreal-engine-5-integration/51.0 4

Work with v51.0 for UE 5.1.1, when you choose other one it will write in requirements what UE version need to have.

Related here [5.1 Hand Samples - Array Index error? · Issue #247 · Oculus-VR/Unreal Engine (github.com)] (https://github.com/Oculus-VR/UnrealEngine/issues/247 2)

virtualpebble
Inspiring
November 13, 2023

Switching to the MetaXR plugin fixed this problem for me. Thanks!

Participant
November 13, 2023

While it may help some people, switching to MetaXR is not a true solution to this issue - those of us developing PCVR for other headsets still rely on the OpenXR support, as the calls are different.

Participant
November 14, 2023

Is the MetaXR plugin available for UE4? We won't be moving to UE5 for several more months, unfortunately. This bug is absolutely killing us, grrr.

New Participant
November 14, 2023

MetaXR Plugin works well for VR template project, but it doesn't work for the project I am creating.
When I use the MetaXR Plugin, it works fine the first and second time switching to VR, but the third time PC screen was black out.
BTW, this is in shipping build, not UE editor.

Participant
November 14, 2023

Two updates have been done on Occulus App since then, but the problem is still there (I'm in the beta program)

Current tested version : 60.0.0.109.352

Participant
November 14, 2023

Yeah, I'm on that version too - same crash.