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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.