Search Issue Tracker
Fixed
Fixed in 2023.2.19f1, 6000.0.0b15
Votes
0
Found in
2023.2.12f1
2023.3.0b9
6000.0.0b11
Issue ID
UUM-65178
Regression
Yes
Reloading domain while Audio Random Container window is hidden breaks the ability to remove clips
Steps to reproduce:
- Create and open an empty project.
- Import the attached script "NewMonoBehaviourScript.cs".
- Create an ARC asset (Assets > Create > Audio > Audio Random Container).
- Open the ARC asset.
- Dock the ARC window next to the Hierarchy (see screen recording).
- Add a clip element to the ARC's audio clips list.
- Navigate to the Hierarchy, so that the ARC window is hidden.
- Reload domain by selecting the Menu item Tools > Reload Domain.
- Switch back to the ARC window.
- Remove the clip element by pressing the minus button on the list.
Actual results: An ArgumentOutOfRangeException is thrown and the element persists.
Expected results: No error is thrown in the console and the element is removed.
Reproducible with versions:
2023.3.0b9
2023.2.12f1
2023.3.0b5
Not reproducible with versions:
2023.3.0b4
Can’t test with versions: 2022.3.X, 2021.3.X
Tested on (OS): MacOS (M1)
Notes:
- This probably also happens when you enter play mode when the ARC window is hidden
Stack trace
{code:java}
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <107439755c2c4e4f961430e1c757b578>:0)
UnityEditor.AudioContainerWindow.OnListItemsRemoved (System.Collections.Generic.IEnumerable`1[T] indices) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Audio/AudioContainerWindow.cs:824)
UnityEngine.UIElements.BaseListView.OnItemsRemoved (System.Collections.Generic.IEnumerable`1[T] indices) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/BaseListView.cs:819)
UnityEngine.UIElements.BaseListViewController.RaiseItemsRemoved (System.Collections.Generic.IEnumerable`1[T] indices) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Controllers/BaseListViewController.cs:396)
UnityEngine.UIElements.BaseListViewController+SerializedObjectListControllerImpl.RemoveItem (System.Int32 index) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Controllers/BaseListViewController.cs:107)
UnityEditor.UIElements.Bindings.EditorListViewController.RemoveItem (System.Int32 index) (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/Bindings/EditorListViewController.cs:42)
UnityEngine.UIElements.BaseListView.OnRemoveClicked () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/BaseListView.cs:739)
UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Clickable.cs:245)
UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition, System.Int32 pointerId) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Clickable.cs:342)
UnityEngine.UIElements.Clickable.OnPointerUp (UnityEngine.UIElements.PointerUpEvent evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Clickable.cs:209)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallback.cs:64)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallbackRegistry.cs:228)
UnityEngine.UIElements.EventDispatchUtilities.HandleEvent_BubbleUpCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement element) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:385)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:310)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:57)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElement (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:616)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:578)
UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/PointerEvents.cs:1183)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:336)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:200)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:632)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:511)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:230)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:76)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:30)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219) {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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note (fix version 6000.0.0b15):
Fixed an issue where reloading domain while Audio Random Container window is hidden breaks the ability to remove clips