Skip to main content
New Participant
November 12, 2023

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:

  1. Connect Meta Quest 2 to the PC, open Oculus Link in the headset, launching the Oculus App on the PC
  2. Open Unreal Engine
  3. Launch the game in VR Preview-mode
  4. Close the VR Preview-mode
  5. 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.

    This topic has been closed for replies.

    4 replies

    Participant
    November 12, 2023

    There is an issue with last Oculus Runtime (the one of the 6 november). Hope they'll fix it soon.

    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)

     

    Re: UE4 crash when using VR Preview since last Ocu... - Meta Community Forums - 1101828 (atmeta.com)

    New Participant
    December 10, 2023

    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.

    Participant
    November 14, 2023

    Also affects 4.27, unfortunately, so the workaround of using the MetaXR plugin isn't an option there.