Forum Discussion
Kevsplosion
2 years agoHonored Guest
OpenXR crashes when playing VR Preview a second time in both UE 5.1.1 and 5.0.3
Hi, when using UE5 with Meta Quest 2, launching VR preview will crash the engine the second time I try to launch (first time works fine, as expected).
Steps to reproduce:
- Connect Meta Quest 2 to the PC, open Oculus Link in the headset, launching the Oculus App on the PC
- Open Unreal Engine
- Launch the game in VR Preview-mode
- Close the VR Preview-mode
- Launch the game in VR Preview-mode again
It will remain white, then crash.
image1027脳730 49.8 KB
Searching through the logs, this seems to be the reason:
[2023.11.08-12.00.19:855][356]LogOutputDevice: Error: Ensure condition failed: ((Result) >= 0) [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 1045]
[2023.11.08-12.00.19:855][356]LogOutputDevice: Error: OpenXR call failed with result XR_ERROR_SYSTEM_INVALID
My Meta Quest 2 is connected and is running the Oculus App, using Oculus Link to enable the VR Preview in Unreal prior to launching both of the times.
I believe this is an issue with OpenXR, it happens on two different VR-projects, both in UE 5.0.3 and 5.1.1.
4 Replies
Replies have been turned off for this discussion
- ChristopheKOHLERExplorer
There is an issue with last Oculus Runtime (the one of the 6 november). Hope they'll fix it soon.
- gireada09Explorer
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)
Re: UE4 crash when using VR Preview since last Ocu... - Meta Community Forums - 1101828 (atmeta.com)
- FPChrisHonored Guest
This didn't work for me on 5.1.1 and Quest 3. I copied the Meta XR plugin to Epic Engine Plugins folder, started UE and enabled the plugin. Restart and now can't even open the project. I tried to rebuild. Still won't open the project.
One time I did manage to get a project to open and then changed the Meta XR from Meta to use the Unreal Open XR setting in the Plugin. STILL crashes upon running the VR the second time.
Impossible to develop like this.
- dfbExplorer
Also affects 4.27, unfortunately, so the workaround of using the MetaXR plugin isn't an option there.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago
- 6 months ago