Crash when opening project on 5.2.1 with OpenXR plugin enabled

I’ve just moved my project from 4.26.1 to 5.2.1 and it refuses to open when I have the OpenXR plugin enabled. It is throwing an error relating to OpenXRCore.cpp. Has anyone else encountered this?

LoginId:bf4ceed14c735c912696589c5e130e59
EpicAccountId:0812edf6866c45a185e6821a6f2d9c6a

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

2 Likes

Hey there @Nostrildumbass! Welcome back to the community! Seems like it could be an issue with the old implementation of the plugin during migration. Does the VR template for 5.2.1 have the same error when launching?

It looks like the “solution” is to make sure your VR headset is plugged in and powered on, which is silly. If I’m not working on the VR side of my project I should be able to work on it without having my VR headset plugged in or without having to disable the plugin every time. I’m seeing one possible workaround is to use OpenXR Explorer to set my OpenXR runtime to WMR; that seems to get around the requirement. A bug, in my opinion, as this wasn’t an issue on 4.26.1.

2 Likes

Oh interesting! I’m currently working on an OpenXR project in 5.1 that if I don’t have my gear setup it doesn’t error out on launch, just won’t allow me to test in VR until restarting while the HMD is OXR environment’s (mine is SteamVR) up, so that does sound like a bug in this 5.2 case. Good find!

Here’s the link to the bug reporter:

Created case 00602429 (for my own record). Will come back and update with the bug number if/when entered

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.