Error when launching Engine.

Hello,

When I try to start the Engine Iit crashes and gives me following Error. Does anybody why?

Assertion failed: ((Result) >= 0) [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRCore.cpp] [Line: 24]

UnrealEditor_OpenXRHMD
UnrealEditor_OpenXRInput
UnrealEditor_OpenXRInput
UnrealEditor_Core
UnrealEditor_Projects
UnrealEditor_Projects
UnrealEditor_Projects
UnrealEditor
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Having the same issue here; have you found a workaround or fix yet?

Yes I have. For me it worked when changing the OpenXR-Environment variable.
I downloaded OpenXR-Explorer and set it to WMR manually.

Then the engine can open again. After that I manually reassign my OpenXR-Environment variable to SteamVR again.

Let me know if it worked for you.

2 Likes

Hi, thanks for your answer, changed to WMR fixes the same problem I met. But I saw that there is no SteamVR option for me, only WMR. Can I ask how to switch back to SteamVR?

image

6 Likes

If it doesn’t appear in the list, the easiest option is to go to the SteamVR settings, and it should have an OpenXR tab with a button to set the runtime.

Thank you, it helps a lot

This helps. But after switching to SteamVR, it needs to be changed to WMR every time if I want to open my project now.

For me, I use Quest 2 with Virtual Desktop, and simply just going into the oculus desktop program and going into settings and setting the default xr runtime to oculus fixed it. Not sure why, but it fixed it.

1 Like

Well that fixed it. I have no idea why this started happening for me…

I had the same issue. This seems to be a bug in 5.2.

1 Like

So far there is no “proper” solution. The issues is related to HMD Headset/Controllers not connected on OpenXR init.
You still can run project with OpenXR plugin Enabled without HMD attached by using -nohmd parameter.
Create the shortcut to your UnrealEditor.exe, then add path to project and -nohmd.
Like:

C:\UnrealEngine\Engine\Binaries\Win64\UnrealEditor.exe d:\MyAmazingProject\MyProject.uproject -nohmd

1 Like

Amazing fix, thank you so much!

I realised i had my quest 2 connected just to transfer some video files off it. So i just disconnected the cable and the problem went away. - Im sure this will be an issue soon tho once i start to develop for VR. but for now… a quick and easy fix

It works!!!, PICO 4 , UE 5.2.1!

For those just finding this, the problem occured because I downgraded the DX version to DX11 for a different issue, and had to reupgrade to DX12 to fix this one. It was in the DefaultEngine.ini document.