Search Issue Tracker

Fixed

Fixed in 2.1.2, 2.2.1, 2.3.0-pre.1

Votes

0

Found in [Package]

2.1.0

2.2.0

2.3.0-pre.1

Issue ID

MOXRB-151

Regression

No

Installing Unity OpenXR Meta Package throws "NullReferenceException" error

Package: Meta

-

*Steps to reproduce:*
1. Create new Unity project
2. Install "com.unity.xr.meta-openxr" package using Package Manager
3. Once installed, observe the Console window

*Actual results:* Error - NullReferenceException: Object reference not set to an instance of an object
UnityEngine.XR.OpenXR.Features.Meta.OpenXRLifeCycleFeature.TryRefreshEnabledStateForBuildTarget (UnityEditor.BuildTargetGroup buildTarget, UnityEditor.TypeCache+TypeCollection metaOpenXRFeatureTypes) (at ./Library/PackageCache/com.unity.xr.meta-openxr@2d2df5677d2f/Runtime/OpenXRLifeCycleFeature.cs:60)
UnityEngine.XR.OpenXR.Features.Meta.OpenXRLifeCycleFeature.TryRefreshEnabledState () (at ./Library/PackageCache/com.unity.xr.meta-openxr@2d2df5677d2f/Runtime/OpenXRLifeCycleFeature.cs:44)
UnityEngine.XR.OpenXR.Features.Meta.OpenXRLifeCycleFeature+<>c__DisplayClass4_0.<GetRefreshMethodWithRemainingRetries>b__0 () (at ./Library/PackageCache/com.unity.xr.meta-openxr@2d2df5677d2f/Runtime/OpenXRLifeCycleFeature.cs:52)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <966ba44edc314da3aa4f8ea2922f1849>:0) - is thrown in the Console after install

*Expected results:* No errors thrown in the Console after installing package

*Reproducible with versions:* 2.2.0 (6000.0.54f1, 6000.1.14f1, 6000.2.0b12, 6000.3.0a3)

*Tested on (OS):* Windows 11

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.