# Crash when opening project on 5.2.1 with OpenXR plugin enabled

**URL:** <https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892>\
**Category:** Plugins\
**Tags:** unreal-engine, crash, question\
**Created:** [July 24, 2023, 6:41pm UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892 "2023-07-24T18:41:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nostrildumbass](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nostrildumbass/32/261258_2.png) [@Nostrildumbass](https://forums.unrealengine.com/u/Nostrildumbass)\
**Post date:** [July 24, 2023, 6:41pm UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892/1 "2023-07-24T18:41:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [July 25, 2023, 4:53am UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892/2 "2023-07-25T04:53:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Nostrildumbass](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nostrildumbass/32/261258_2.png) [@Nostrildumbass](https://forums.unrealengine.com/u/Nostrildumbass)\
**Post date:** [July 26, 2023, 5:43am UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892/3 "2023-07-26T05:43:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [July 26, 2023, 5:52am UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892/4 "2023-07-26T05:52:48Z")

</div>

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:

> **[Report a Bug](https://www.unrealengine.com/en-US/support/report-a-bug)**
>
> Unreal Engine is the world’s most open and advanced real-time 3D creation platform for photoreal visuals and immersive experiences.

---

<div class="post-metadata">

**Author:** ![Nostrildumbass](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nostrildumbass/32/261258_2.png) [@Nostrildumbass](https://forums.unrealengine.com/u/Nostrildumbass)\
**Post date:** [July 26, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892/5 "2023-07-26T14:28:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 25, 2023, 2:29pm UTC](https://forums.unrealengine.com/t/crash-when-opening-project-on-5-2-1-with-openxr-plugin-enabled/1238892/6 "2023-08-25T14:29:32Z")

</div>

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