UE5 VR Freezes in standalone

Hi!
I am having a problem with VR in UE5.1.1
When I am starting VR (Enable HMD) in standalone - game freezes and stop responding.

My environment:
HMD:
Vive Focus 3
Software used:

  • Vive Business Streaming 1.10.7a (Wifi or USB - Doesn’t matter)
  • SteamVR 1.25.6
  • Unreal Engine 5.1.1

Descriptin/How to reproduce:

  1. Open Unreal Engine, create new blank project from VR template:

  2. Disable Start in VR:

  3. Add new player controller to handle inputs and set it as default for VRGameMode:

  4. In player controller Enable HMD on any button:

  5. Turn on and connect your HMD:

  6. Run game in StandAlone:

  7. Press 1 in game:

  8. Print and SteamVR showing that everything is okay:
    image

  9. But game is completely frozen:
    image

Any ideas how to fix that?
It also freezes on startup if you leave “Start in VR” option enabled.
And it works fine in VR preview.

Running in Editor viewport doesn’t start VR, but fails ensure condition:

LogOutputDevice: Error: Ensure condition failed: ((Result) >= 0)  [File:D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 1677] 
LogOutputDevice: Error: OpenXR call failed with result XR_ERROR_RUNTIME_FAILURE
LogOutputDevice: Error: Stack: 
LogOutputDevice: Error: [Callstack] 0x00007ff81a8b24e8 UnrealEditor-OpenXRHMD.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff81a89ce82 UnrealEditor-OpenXRHMD.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff82b332ace UnrealEditor-HeadMountedDisplay.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff82b35c726 UnrealEditor-HeadMountedDisplay.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8cfbab UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8d2522 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8a4d7a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d878b09 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8a4943 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8a4d7a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8a4057 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d626bac UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff85d8a32cf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff82576d712 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff827357d6b UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff82738b0c8 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffffe00d030 UnrealEditor-EnhancedInput.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff826c50212 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff826c66f6b UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff826c4e1a9 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff826c6609c UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff82574bad5 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff827268a40 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff827287569 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8599c2fdd UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8599c352e UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8599cdd0b UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8272e0078 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8272ed912 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8265281cb UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff826530603 UnrealEditor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff82396bf4b UnrealEditor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8243ee106 UnrealEditor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff69283852c UnrealEditor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff69285287d UnrealEditor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff69285296a UnrealEditor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff692855680 UnrealEditor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff6928671b4 UnrealEditor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff69286a516 UnrealEditor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff89e297614 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8a02826a1 ntdll.dll!UnknownFunction []
1 Like

After further tests on different machines with different HMDs I got the same results.
My guess is that something is wrong with current UE4 OpenXR plugin, SteamVR version e.t.c.
Also everything is working in shipment build, so it is not critical, but annoying.

Yeah I got the same problem with 5.21 and other brand of VR headset, click VR preview and a small window will pop up and the whole editor freezes, really confusing.

It works perfectly in 4.27 with only steamVR plugin, no freezes.

Bump, still in 5.3. I’m really surprised this has not received any attention.

1 Like