Search Issue Tracker
Third Party Issue
Third Party Issue in 1.14.X
Votes
0
Found in [Package]
1.14.1
Issue ID
OXRB-478
Regression
No
Crash on "(OVRPlugin) UnityPluginUnload " when entering Play Mode with OpenXR's "Mock Runtime" feature enabled
Reproduction steps:
1. Open the attached project “ReproProject“
2. Enable Mock Runtime in OpenXR settings tab (Project Settings → XR Plugin Management)
3. Enter Play Mode
4. Observe the result
Expected result: Play mode runs in mocked stereo rendering; possible to see what each eye would render, including occlusion mesh
Actual result: Project crashes
Reproducible in: 1.9.1 (2022.3.19f1) 1.14.1 (2022.3.60f1, 6000.0.44f1, 6000.1.0b12, 6000.2.0a7)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
First few lines of the stack trace:
{noformat}0x00007FF9BE6A92B0 (OVRPlugin) UnityPluginUnload
0x00007FFA3BB14292 (UnityOpenXR) main_UnloadOpenXRLibrary
0x000002417E472187 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.XR.OpenXR.OpenXRLoaderBase:Internal_PumpMessageLoop ()
0x000002417E4720C3 (Mono JIT Code) [.\Library\PackageCache\com.unity.xr.openxr@db4bbb5cd412\Runtime\OpenXRLoader.cs:319] UnityEngine.XR.OpenXR.OpenXRLoaderBase:ProcessOpenXRMessageLoop (){noformat}
Notes:
- If Editor stops Play Mode with an error “OpenXRFeature.enabled cannot be changed while OpenXR is running“, follow these steps: disable the Mock Runtime feature, enter Play Mode, exit Play Mode, re-enable the Mock Runtime feature, and then try to reproduce the issue again.
- If project did not crash after entering Play Mode, try to exit Play Mode to trigger the crash
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
Resolution Note:
The crash is caused by an internal call done in the OVRPlugin library, which belongs to the Meta XR feature, and it is deactivated to prevent running on an incompatible runtime (Mock Runtime). This deactivation isn't done cleanly if the Meta XR feature was initialized successfully before without the Mock Runtime.
Resolution Note (1.14.X):
The crash is caused by an internal call done in the OVRPlugin library, which belongs to the Meta XR feature, and it is deactivated to prevent running on an incompatible runtime (Mock Runtime). This deactivation isn't done cleanly if the Meta XR feature was initialized successfully before without the Mock Runtime.