Search Issue Tracker
Fixed
Fixed in 6000.0.26f1, 6000.1.0a1, 7000.0.0a12
Votes
0
Found in
2023.2.0f1
2023.3.0a15
6000.0.0b11
7000.0.0a1
Issue ID
UUM-55847
Regression
No
[Error] ARC audio clip entry reference is lost when undoing edits made in play mode
Removing a clip in play mode and subsequently undoing in edit mode throws an error. It messes up the window so that you cannot add or remove clips until you redraw the window.
*Repro*
# Create an ARC asset (Assets > Create > Audio > Audio Random Container)
# Open the ARC asset by double clicking on it
# Add an audio clip entry to the audio clips list by clicking on the plus button
# Enter play mode
# Remove the audio clip entry by clicking on the minus button
# Exit play mode
# Undo
Expected: Audio clip entry works as usual
Actual: The audio clip entry is now lost, greyed out, and an error is logged (see screen recording attached)
*Stack trace*
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AssetDatabase.TryGetGUIDAndLocalFileIdentifier (UnityEngine.Object obj, System.String& guid, System.Int64& localId) (at /Users/kristinnbragi/gitrepo/23.2/Modules/AssetDatabase/Editor/ScriptBindings/AssetDatabase.bindings.cs:778)
UnityEditor.AudioContainerWindow.OnAudioClipListChanged (UnityEditor.SerializedProperty property) (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/Audio/AudioContainerWindow.cs:884)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation+<>c__DisplayClass7_0.<TrackPropertyValue>b__0 (System.Object e, UnityEditor.SerializedProperty p) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1000)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext+TrackedValue.Update (UnityEditor.UIElements.Bindings.SerializedObjectBindingContext context, UnityEditor.SerializedProperty currentProp) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:611)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext+TrackedValues.Update (UnityEditor.UIElements.Bindings.SerializedObjectBindingContext context, UnityEditor.SerializedProperty currentProperty) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:719)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.UpdateTrackedProperties () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:835)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.OnSerializedObjectChanged () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:568)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.UpdateRevision () (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:525)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.UpdateIfNecessary (UnityEngine.UIElements.VisualElement element) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:548)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.Update (UnityEngine.UIElements.BindingContext& context) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:1316)
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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
Resolution Note (fix version 7000.0.0a12):
Fixed an error in Audio Random Container editor widow when undoing removal of an list element that was done in play mode after going back to edit mode.
Resolution Note (fix version 6000.1.0a1):
Fixed an error in Audio Random Container editor widow when undoing removal of an list element that was done in play mode after going back to edit mode.
Resolution Note (fix version 6000.0.26f1):
Fixed an error in Audio Random Container editor widow when undoing removal of an list element that was done in play mode after going back to edit mode.