open xr crashing when hmd is connected

hello i am using unreal engine 5.2 it seems that open xr is not working properly when my HMD is connected, as soon as i hit preview VR the UE5.2 crashes. i also discovered that when i switch to unreal engine with my HMD worn the UE5 is very laggy in my quest 2 but when i minimise the UE5 the quest 2 is normal

Hello Aaron, Welcome to the Forums.

When you crash, does a crash log appear? If yes, please let us know what it says.

Also, be sure that you have no other XR related plugins enabled. (You can open your .uproject file with a text editor to see all ‘nonstandard’ plugins you’ve enabled or disabled.)

{
“FileVersion”: 3,
“EngineAssociation”: “5.2”,
“Category”: “”,
“Description”: “”,
“Plugins”: [
{
“Name”: “ResonanceAudio”,
“Enabled”: true
},
{
“Name”: “HDRIBackdrop”,
“Enabled”: true
},
{
“Name”: “DatasmithImporter”,
“Enabled”: true
},
{
“Name”: “EnvironmentQueryEditor”,
“Enabled”: false
},
{
“Name”: “SteamVR”,
“Enabled”: true,
“SupportedTargetPlatforms”: [
“Win64”,
“Linux”
]
},
{
“Name”: “OculusXR”,
“Enabled”: false,
“MarketplaceURL”: “com.epicgames.launcher://ue/marketplace/product/8313d8d7e7cf4e03a33e79eb757bccba”,
“SupportedTargetPlatforms”: [
“Win64”,
“Android”
]
},
{
“Name”: “OculusVR”,
“Enabled”: true,
“SupportedTargetPlatforms”: [
“Win64”,
“Android”
]
}
],
“TargetPlatforms”: [
“Android”,
“IOS”,
“Linux”,
“Mac”,
“PS4”,
“PS5”,
“Windows”,
“WindowsNoEditor”,
“Switch”,
“XboxOne”,
“XSX”,
“HoloLens”
]
}

Try disabling the SteamVR plugin.

Also check if OpenXR plugin is on or off. (Try both ways, let us know what the crash log says and if it changes)

LoginId:99791ead4681b37a79841e86cd16d292
EpicAccountId:71cb39d2637545a0a49b3bae5e37bb8d

Assertion failed: InGameThread() [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\Oculus\OculusVR\Source\OculusHMD\Private\OculusHMDPrivate.h] [Line: 223]

UnrealEditor_OculusHMD
UnrealEditor_Engine
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

i tried disbale steam vr it still gives me same resault

Thanks for sharing the crash log.

It looks like the OculusVR plugin is causing the crash.

Are you able to do VR Preview with the OculusVR plugin off and OpenXR on?

it crashes when i open the vr preiview, tho there is a time that i opened it and it works but i dont know what have i done to make it work

Did you ever get this to work? I have been in absolute hell for months hassling with Open XR, Unreal Engine 5, Android and Meta Quest. I have 2 5 star rated apps on app lab that have been dead in the water since I had to start targeting sdk 32.

Android issues finally resolved, now I get irregular Open XR crashes on launch to device. The game launches successfully everytime when all Meta plugins and Open XR are disabled (app launches in a 2d screen on headset). Then, if I turn open xr it (sometimes) works temporarily. Then on some random launch some time later I get back to “App Closed Unexpectedly” again.

Can we just get a hot fix to 4.27.2 that will allow it to target sdk32? UE5 seems unusable for VR development. I have sunk over a hundred hours into this since the sdk32 target requirement and have accomplished nothing. This morning I am right back to “App Unexpectedly Closing” AGAIN

2 Likes

Hi @Allenheathx, this thread is about PCVR development. I suggest you create a new thread and provide more details such as crash logs from the device. Without them, there’s nothing we can do to help.