Search Issue Tracker
Fixed
Fixed in 2023.2.8f1, 2023.3.0b5
Votes
0
Found in
2023.2.5f1
2023.3.0a19
Issue ID
UUM-58713
Regression
Yes
ARC window stops working when docking after deleting the asset in focus
The ARC tab becomes unresponsive when docking the ARC window after deleting an asset that was showing in the ARC window. The tab is inaccessible if docked next to another tab and it becomes black if if is the only tab in the window.
*Regression details*
I can reproduce this on 2023.2.0b16 but not on 2023.2.0b10 so the bug was introduced somewhere between those versions.
*Repro*
# Create an ARC asset (Assets > Create > Audio > Audio Random Container).
# Open the ARC asset so that it shows in the ARC window.
# Delete the ARC asset. The ARC window should now show its day0 state.
# Drag the ARC tab and dock it somewhere in the Editor.
Expected: The ARC window acts as normal and shows its day0 state.
Actual: The ARC window becomes unresponsive rendering black if it's the only tab in the window.
*Stack trace (1/2)*
Throws multiple times initially but then stops complaining.
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UIElements.BindingsStyleHelpers.UpdateElementRecursively (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty prop, System.Action`2[T1,T2] updateCallback) (at /Users/kristinnbragi/gitrepo/trunk/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:61)
UnityEditor.UIElements.BindingsStyleHelpers.UpdatePrefabStateStyle (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty prop) (at /Users/kristinnbragi/gitrepo/trunk/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:203)
UnityEditor.UIElements.Bindings.SerializedObjectBindingToBaseField`2[TValue,TField].OnUpdate (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1786)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.Update (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1345)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.CustomBinding customBinding) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Bindings/BindingUpdater.cs:190)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.Binding bindingObject) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Bindings/BindingUpdater.cs:123)
UnityEngine.UIElements.VisualTreeDataBindingsUpdater.Update () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Bindings/VisualTreeDataBindingUpdater.cs:209)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/VisualTreeUpdater.cs:114)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Panel.cs:1234)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Panel.cs:1302)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/UIElementsUtility.cs:476)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/UIElementsUtility.cs:225)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/kristinnbragi/gitrepo/trunk/Modules/IMGUI/GUIUtility.cs:206){code}
*Stack trace (2/2)*
Thrown every frame while the ARC panel is visible.
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UIElements.BindingsStyleHelpers.UpdateElementRecursively (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty prop, System.Action`2[T1,T2] updateCallback) (at /Users/kristinnbragi/gitrepo/trunk/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:61)
UnityEditor.UIElements.BindingsStyleHelpers.UpdatePrefabStateStyle (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty prop) (at /Users/kristinnbragi/gitrepo/trunk/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:203)
UnityEditor.UIElements.Bindings.SerializedObjectBindingToBaseField`2[TValue,TField].OnUpdate (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1786)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.Update (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1345)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.CustomBinding customBinding) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Bindings/BindingUpdater.cs:190)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.Binding bindingObject) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Bindings/BindingUpdater.cs:123)
UnityEngine.UIElements.VisualTreeDataBindingsUpdater.Update () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Bindings/VisualTreeDataBindingUpdater.cs:209)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/VisualTreeUpdater.cs:114)
UnityEngine.UIElements.Panel.UpdateDataBinding () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/Panel.cs:1211)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/UIElementsUtility.cs:275)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElements/Core/UIElementsUtility.cs:105)
UnityEditor.RetainedMode.UpdateSchedulers () (at /Users/kristinnbragi/gitrepo/trunk/Modules/UIElementsEditor/RetainedMode.cs:55){code}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices
- Editor freezes when selecting a GameObject in Play Mode with a script containing a public byte array
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
Resolution Note (fix version 2023.3.0b5):
Fixed issue where the editor window for the AudioRandomContainer asset would throw an error every frame after deleting the selected asset and docking the window.
Resolution Note (fix version 2023.2.8f1):
Fixed issue where the editor window for the AudioRandomContainer asset would throw an error every frame after deleting the selected asset and docking the window.