Copyright © 2026 Unity Technologies
EDIT: This bug originally referenced multiple unrelated warnings and errors in the console. While the following reproduction steps below are not modified from the original report, this bug only tracks the NullReferenceException in OpenXRLifeCycleFeature
Reproduction steps:
1. Create a new project
2. Install com.unity.xr.androidxr-openxr package (Window > Package Management > Package Manager > Install package by technical name…)
3. Observe the Console
Actual result: Multiple errors and warnings are thrown
Expected result: No errors or warnings are thrown
Reproducible with: 1.2.0-pre.1 (6000.3.21f1), 1.3.1 (6000.3.21f1, 6000.5.7f1), 1.4.0-pre.2 (6000.6.0b6, 6000.7.0a4)
Not reproducible with: 1.1.0 (6000.3.21f1)
Reproduced on: macOS Tahoe 26.5 (M4), Windows 11
Note: Full errors:
Unexpected transport error from import worker 0 (possible crash). code=2 error=End of file -- for more information, check Logs/AssetImportWorkerHW0.log
Unexpected transport error from import worker 2 (possible crash). code=2 error=End of file -- for more information, check Logs/AssetImportWorkerHW2.log
NullReferenceException: Object reference not set to an instance of an object UnityEngine.XR.OpenXR.Features.Android.OpenXRLifeCycleFeature.RefreshEnabledStateForBuildTarget (UnityEditor.BuildTargetGroup buildTarget, UnityEditor.TypeCache+TypeCollection AndroidXROpenXRFeatureTypes) (at ./Library/PackageCache/com.unity.xr.androidxr-openxr@27a30d8a99ef/Runtime/Features/OpenXRLifeCycleFeature.cs:51) UnityEngine.XR.OpenXR.Features.Android.OpenXRLifeCycleFeature.RefreshEnabledState () (at ./Library/PackageCache/com.unity.xr.androidxr-openxr@27a30d8a99ef/Runtime/Features/OpenXRLifeCycleFeature.cs:44) UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:428) UnityEngine.StackTraceUtility:ExtractStringFromExceptionInternal(Object, String&, String&) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:50)
Full warnings:
The following asset(s) located in immutable packages were unexpectedly altered. Making changes to immutable packages isn't recommended because the changes can be lost without any warning during Package Manager operations. Packages/com.unity.render-pipelines.core/Runtime/Debugging/Runtime UI Resources/RuntimeDebugWindow_PanelSettings.asset
The following asset(s) located in immutable packages were unexpectedly altered. Making changes to immutable packages isn't recommended because the changes can be lost without any warning during Package Manager operations. Packages/com.unity.xr.androidxr-openxr/Assets/URP/UniversalRenderPipelineAsset.asset
Issues you vote on will appear here