Search Issue Tracker

Fixed in 1.2.0

Votes

2

Found in [Package]

0.1.2-preview.2

Issue ID

1313634

Regression

No

[XR SDK][OpenXR] Editor crashes on XRInputSubsystem:GetSupportedTracking when entering Play mode after changing OpenXR version

Package: OpenXR Plugin

-

Reproduction steps:
1. Open the user's attached project "OpenXR_Unity.zip"
2. Load the "Main" scene
3. Enter Play mode and then exit Play mode (this increases the probability of the crash)
4. Open the Package Manager and upgrade/downgrade OpenXR Plugin
5. Enter Play mode
-- Observe the crash

Reproducible with: 0.1.2-preview.1, 0.1.2-preview.2 (2020.2.4f1, 2021.1.0b6, 2021.2.0a4)
Could not test with 2018.4 and 2019.4 (no OpenXR Plugin package)

First lines of the stack trace:
0x00007ff69ae80d33 (Unity) XRInputSubsystem::GetSupportedTrackingOriginModes
0x00007ff69af5d37c (Unity) XRInputSubsystem_CUSTOM_GetSupportedTrackingOriginModes
0x0000024d275e69b0 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.XR.XRInputSubsystem:GetSupportedTrackingOriginModes (UnityEngine.XR.XRInputSubsystem)
0x0000024d275e669b (Mono JIT Code) [XRRig.cs:315] UnityEngine.XR.Interaction.Toolkit.XRRig:SetupCamera (UnityEngine.XR.XRInputSubsystem)
0x0000024d2749c823 (Mono JIT Code) [XRRig.cs:282] UnityEngine.XR.Interaction.Toolkit.XRRig:SetupCamera ()
<...>

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.