KhronosGroup / KhronosGroup/OpenXR-SDK-Source

OpenXR plugin crashes Unity on play with no Oculus connected but OVR service running

Open
#376 6 comments 9 reactions 0 assignees View on GitHub
runtime related synced to gitlab
Dominant language
Python
Stars
825
Forks
306
Avg merge
1d 23h
Merged PRs (30d)
1

Description

### To replicate:
1. 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
2. Open the Oculus companion app
3. Ensure no VR headset is connected.
4. Press "Play" in Unity (you don't even need a rig in your scene)
5. **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](https://github.com/KhronosGroup/OpenXR-SDK-Source/files/10504356/Editor.log)
[crash.dmp.txt](https://github.com/KhronosGroup/OpenXR-SDK-Source/files/10504358/crash.dmp.txt) (remove `.txt` extension)
Crash window:
![image](https://user-images.githubusercontent.com/84519004/214711098-859297cb-ea9b-4e42-85c1-94991952546d.png)
```
Obtained 2 stack frames
RtlLookupFunctionEntry returned NULL function. Aborting stack walk.

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crash in Unity 2022.2.3f1 with OpenXR and the OculusXR Feature enabled while the Oculus service runs without a headset. Start by reviewing Editor.log and crash.dmp.txt, then trace the plugin startup path implicated by the crash. Done means pressing Play no longer crashes under these conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
unity
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.