OpenXR Issues in UE 5.4 - Any Solutions?

Hello!

I upgraded my Game from Unreal Engine 4.27 to 5.4 and I am now encountering Issues regarding OpenXR. I know the SteamVR Plugin is deprecated and I only use the OpenXR Plugin now.

I’m using the HTC Vive Pro 2 Headset, so additionally to SteamVR I have to run the Vive Console for my VR Setup to work. This was no issue before but might be an issue now, so I thought I mention it. Everything is setup correctly.

Now when I’m in the Unreal Editor, I can do VR Preview without issue, but when I run my game in Standalone or the packaged Game, I get this Error:
LogHMD: Error: Unexpected error on xrBeginFrame. Error code was XR_ERROR_RUNTIME_FAILURE.

So basically the screen is stuck on the first frame when loading the Map where I use VR.

I managed to find a workaround for now, so if I plug in my VR Headset into my Computer and open SteamVR + Vive Console while the Unreal Editor is already running, I don’t encounter that issue and VR if working fine.
This sucks obviously so here is my first question: Is there a fix for that, or is OpenXR simply not optimized for UE 5.4 yet? This seems to me that Unreal Engine is struggling to initialize some data while the Headset is already on during the Editor startup.

Further I encounter another issue, which now also hinders me to work on my project.
With the workaround I got half of my Maps to work, but the other half, I can’t get my VR Controllers to work, the HMD works though.
Here is the Error i get on those maps:

[2024.11.30-12.45.38:489][183]LogOutputDevice: Error: === Handled ensure: ===
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error:
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error: Ensure condition failed: ((Result) >= 0) [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRInput\Private\OpenXRInput.cpp] [Line: 891]
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error: OpenXR call failed with result XR_ERROR_HANDLE_INVALID
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error: Stack:
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error: [Callstack] 0x00000163bdd1a22b UnrealEditor-OpenXRInput.dll!UnknownFunction
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error: [Callstack] 0x00000163bdd16e5c UnrealEditor-OpenXRInput.dll!UnknownFunction
[2024.11.30-12.45.38:491][183]LogOutputDevice: Error: [Callstack] 0x00007ffba440bfea UnrealEditor-ApplicationCore.dll!UnknownFunction
[2024.11.30-12.45.38:492][183]LogOutputDevice: Error: [Callstack] 0x00007ffaffc85517 UnrealEditor-Slate.dll!UnknownFunction
[2024.11.30-12.45.38:492][183]LogOutputDevice: Error: [Callstack] 0x00007ff619118534 UnrealEditor.exe!UnknownFunction
[2024.11.30-12.45.38:492][183]LogOutputDevice: Error: [Callstack] 0x00007ff61913e33c UnrealEditor.exe!UnknownFunction
[2024.11.30-12.45.38:492][183]LogOutputDevice: Error: [Callstack] 0x00007ff61913e42a UnrealEditor.exe!UnknownFunction
[2024.11.30-12.45.38:492][183]LogOutputDevice: Error: [Callstack] 0x00007ff6191418a4 UnrealEditor.exe!UnknownFunction
[2024.11.30-12.45.38:492][183]LogOutputDevice: Error: [Callstack] 0x00007ff6191570c4 UnrealEditor.exe!UnknownFunction
[2024.11.30-12.45.38:493][183]LogOutputDevice: Error: [Callstack] 0x00007ff61915a37a UnrealEditor.exe!UnknownFunction
[2024.11.30-12.45.38:493][183]LogOutputDevice: Error: [Callstack] 0x00007ffc0b83259d KERNEL32.DLL!UnknownFunction
[2024.11.30-12.45.38:493][183]LogOutputDevice: Error: [Callstack] 0x00007ffc0c90af38 ntdll.dll!UnknownFunction

Does anyone have more insight to it and can tell me, if I can do something about it? Could it be caused by the old Input System being deprecated or is this unrelated? My Inputs are working fine on half of my Maps, so I’m confused.

It would be nice if someone could help me find a fix or reassure me to sit it out, if this is an error within Unreal Engine 5.4 for now, so I can focus on other tasks in the meantime.

Thanks everyone!
Wish you all the best!