Search Issue Tracker
Fixed in 6000.0.26f1
Fixed in 6000.0.X, 6000.1.0a1, 7000.0.0a12, future release
Votes
0
Found in
2023.2.0f1
2023.3.0a15
6000.0.0b11
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note (fix version future release):
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):
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.