Search Issue Tracker

Active

Votes

0

Found in

2.5.0

Issue ID

UUM-147687

Regression

No

“NullReferenceException” errors spammed in Console after resetting Composition Layer component on Cylinder Layer UI Panel

XR Composition Layers

-

Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Open Package Manager window
3. Find and install XR Composition Layers package
4. In Hierarchy window create Cylinder Layer Panel UI and select it
5. In Inspector window > Composition Layer press on kebab button
6. Select “Reset”
7. Observe the Console window

Actual results: “NullReferenceException: Object reference not set to an instance of an object” errors are spammed in the Console window

Expected results: No errors are spammed in the Console window

Reproducible with versions: 2.5.0 (6000.3.20f1, 6000.5.4f1, 6000.6.0b5, 6000.7.0a3)

Not reproducible with versions: 

Can’t test with versions: 6000.0.78f1 (XR Composition Layers package package is not available)

Tested on (OS): macOS Tahoe 26.5.2 (M1)

{code:java}
NullReferenceException: Object reference not set to an instance of an object
Unity.XR.CompositionLayers.UIInteraction.InteractableUIMirror.SyncLayerUIScaleWithLayerType () (at ./Library/PackageCache/com.unity.xr.compositionlayers@2843cb312e13/Runtime/UIInteraction/InteractableUIMirror.cs:318)
Unity.XR.CompositionLayers.UIInteraction.InteractableUIMirror.Update () (at ./Library/PackageCache/com.unity.xr.compositionlayers@2843cb312e13/Runtime/UIInteraction/InteractableUIMirror.cs:218)
UnityEngine.StackTraceUtility:ExtractStringFromExceptionInternal(Object, String&, String&) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:50)
{code}

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.