Search Issue Tracker
Fixed
Fixed in 6000.0.2f1
Votes
0
Found in
2023.2.0f1
2023.3.0a15
6000.0.0b11
Issue ID
UUM-55916
Regression
No
[Error] ARC window keeps showing deleted asset if renamed before deletion
The ARC window does not refresh to day0 (empty) state when renaming an asset and deleting it. This also causes the ARC window to malfunction, throwing an error when trying to access it until you open a different ARC asset or enter play mode.
Repro
- Create an ARC asset (Assets > Create > Audio > Audio Random Container)
- Open the asset by double-clicking on it
- Dock the ARC in a tab with the scene view
- Rename the asset
- Delete the asset
- Switch to scene view
- Switch back to the ARC window
Expected: The ARC window redraws to day0 after step 5 and is accessible when switching editor windows
Actual: The ARC window keeps showing the deleted asset and throws errors when trying to access it
Stack trace 1
{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/23.2/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:58)
UnityEditor.UIElements.BindingsStyleHelpers.UpdatePrefabStateStyle (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty prop) (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:200)
UnityEditor.UIElements.Bindings.SerializedObjectBindingToBaseField`2[TValue,TField].OnUpdate (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1743)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.Update (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1317)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.CustomBinding customBinding) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Bindings/BindingUpdater.cs:191)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.Binding bindingObject) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Bindings/BindingUpdater.cs:123)
UnityEngine.UIElements.VisualTreeDataBindingsUpdater.Update () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Bindings/VisualTreeDataBindingUpdater.cs:209)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/VisualTreeUpdater.cs:114)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Panel.cs:1184)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Panel.cs:1252)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/UIElementsUtility.cs:475)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/UIElementsUtility.cs:225)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/kristinnbragi/gitrepo/23.2/Modules/IMGUI/GUIUtility.cs:206) {code}
Stack trace 2
{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/23.2/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:58)
UnityEditor.UIElements.BindingsStyleHelpers.UpdatePrefabStateStyle (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty prop) (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/UIElements/Bindings/BindingStyleHelpers.cs:200)
UnityEditor.UIElements.Bindings.SerializedObjectBindingToBaseField`2[TValue,TField].OnUpdate (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1743)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.Update (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1317)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.CustomBinding customBinding) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Bindings/BindingUpdater.cs:191)
UnityEngine.UIElements.BindingUpdater.UpdateUI (UnityEngine.UIElements.BindingContext& context, UnityEngine.UIElements.Binding bindingObject) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Bindings/BindingUpdater.cs:123)
UnityEngine.UIElements.VisualTreeDataBindingsUpdater.Update () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Bindings/VisualTreeDataBindingUpdater.cs:209)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/VisualTreeUpdater.cs:114)
UnityEngine.UIElements.Panel.UpdateDataBinding () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/Panel.cs:1161)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/UIElementsUtility.cs:275)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElements/Core/UIElementsUtility.cs:105)
UnityEditor.RetainedMode.UpdateSchedulers () (at /Users/kristinnbragi/gitrepo/23.2/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
- Animator State Labels are not Rendered correctly when using the Bitmap Renderer as the Default Editor Text Renderer
- LDR render target is used when HDR is enabled in URP and Recorder Source is set to 360 View
- Terrain Layer's changes are not added to the Undo history
- “IndexOutOfRangeException: Index was outside the bounds of the array.” error is thrown when large Text (TMP) GameObject Overflow field is set to Ellipsis
- The OnValidate method is not invoked when reverting changes on a Prefab Variant
Resolution Note (fix version 6000.0.2f1):
Fixed an issue that would cause the audio random container window to retain a false reference to an audio random container asset after it has been deleted.