Search Issue Tracker
Fixed
Fixed in 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
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment