vr lost tracking crash on oculus

when i’m in a vr preview and put my headset (oculus quest 2 link) off the engine crash

This topic has been moved from International to Platform & Builds.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Hopefully, this category change will help in getting an answer. In the meantime, good luck and happy developing! :slight_smile:

Hey there @mtoon! This is an issue with the OpenXR session being closed if the headset itself loses connection at all during operation. Is it immediate or after the headset goes into sleep mode? Does preventing it sleeping stop it from occuring?

thanks for replying it is immediate

Do you have the deprecated oculus plugin installed? What version of the engine are you using?

no i use the openxr plugin in 5.1

I’ve been combing information I could find on this, and it seems to have been an issue that’s been plaguing mostly Quest Pro users and I can’t replicate the issue on my side with my Q2. Is your headset making it into the SteamVR (starry sky) instance or are you going directly through the VR launch in UE?

One user successfully corrected this by reinstalling their Oculus app and drivers PC side, but that’s the only fix/workaround I’ve come across yet. I’d also recommend disabling and reenabling the openXR application and verify steamVR is up to date as well (it always is but I have to note it sometimes).

i think a part of the problem was the dlss plugin sorry for wasting your time but the issue persiste only in sleep mode this time

Ahhhh so that was part of the problem. My I see the crash log for it? Might shed some light on the matter.

here it is :

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

So that error is a generic assertion for any array, the next line might give more insight, could you get the editor symbols installed?
image

After that your stack trace should show more information about the UnrealEditor_OpenXRHMD line. This will get us a bit of a clearer idea which component is failing.

You’re using the OpenXR plugin and not in conjunction with the deprecated OculusVR plugin right?

Second is both Air link and direct link failing in the same manor? I’ve seen a couple of these issues, and sometimes a reinstallation of the Oculus PC app and associated drivers solves it.