OpenXR-SDK-Source
OpenXR-SDK-Source copied to clipboard
OpenXR plugin crashes Unity on play with no Oculus connected but OVR service running
To replicate:
- Configure Unity Project Settings to use OpenXR:
- "[...] > XR Plug-in Management > Initialize XR on Startup": Yes
- "[...] > XR Plug-in Management >Plug-in Providers": OpenXR (Oculus is unchecked and grayed out)
- "[...] > XR Plug-in Management > OpenXR > OpenXR Feature Groups > All Features > OculusXR Feature": Yes
- Open the Oculus companion app
- Ensure no VR headset is connected.
- Press "Play" in Unity (you don't even need a rig in your scene)
- crash
More information:
Note that this crash does not happen if the OVR service is not running. If OculusXR Feature is off when pressing "play" in Unity, but subsequently turned on afterward through the popup that appears, it won't crash. (but of course will crash if you press "play" again is it is now turned on)
Versions:
OpenXR Plugin: 1.6.0 · December 01, 2022 Unity: 2022.2.3f1 Oculus App Version 47.0.0.286.341 (47.0.0.286.341)
Logs:
Editor.log
crash.dmp.txt (remove .txt
extension)
Crash window:
Obtained 2 stack frames
RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
<Missing stacktrace information>