Search Issue Tracker
Third Party Issue
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
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.