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
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
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.