Search Issue Tracker
Fixed
Fixed in 2022.3.21f1
Votes
0
Found in
2022.3.20f1
Issue ID
UUM-62802
Regression
Yes
[Error] Undoing added list element in prefab throws an error: SerializedProperty _sand.clips.Array.data[0] has disappeared!
Steps to reproduce: # Download and open the attached project {}Serialized List Undo Error.zip{}.
- Open the SampleScene.
- Open the GameObject prefab in scene prefab edit mode by clicking on the arrow on the right of it in the hierarchy.
- Click the plus button to add a list element.
- Undo.
- If no error appears:
## Click on the plus button again to add a list element.
## Click on the minus button to remove it.
## Repeat steps 4-6.
Actual results: Errors are thrown in the console
Expected results: No error is thrown in the console
Regression details:
Reproducible on 2022.2.0a17 ❌
Not reproducible on 2022.2.0a16 ✅
Reproducible with versions: 2022.3.20f1
Not reproducible with versions: 2021.3.34f1, 2023.2.7f1, 2023.3.0b7
Tested on (OS): Mac (M1) and Windows
Stack trace 1/2
{code:java}
ObjectDisposedException: SerializedProperty _sand.clips.Array.data[0] has disappeared! UnityEditor.SerializedProperty.Verify (UnityEditor.SerializedProperty+VerifyFlags verifyFlags) (at /Users/bokken/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:478) UnityEditor.SerializedProperty.get_objectReferenceInstanceIDValue () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:1411) UnityEditor.EditorGUIUtility.ObjectContent (UnityEngine.Object obj, System.Type type, UnityEditor.SerializedProperty property, UnityEditor.EditorGUI+ObjectFieldValidator validator) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1002) UnityEditor.UIElements.ObjectField+ObjectFieldDisplay.Update () (at /Users/bokken/buildslave/unity/build/Editor/Mono/UIElements/Controls/ObjectField.cs:137) UnityEditor.UIElements.ObjectField.UpdateDisplay () (at /Users/bokken/buildslave/unity/build/Editor/Mono/UIElements/Controls/ObjectField.cs:90) UnityEngine.UIElements.VisualElement+SimpleScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/VisualElementScheduler.cs:341) UnityEngine.UIElements.TimerEventScheduler.UpdateScheduledEvents () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Scheduler.cs:362) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:253) UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:105) UnityEditor.RetainedMode.UpdateSchedulers () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Editor/RetainedMode.cs:55){code}
Stack trace 2/2
{code:java}
InvalidOperationException: The operation is not possible when moved past all properties (Next returned false) UnityEditor.SerializedProperty.Verify (UnityEditor.SerializedProperty+VerifyFlags verifyFlags) (at /Users/bokken/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:481) UnityEditor.SerializedProperty.get_objectReferenceInstanceIDValue () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:1411) UnityEditor.EditorGUIUtility.ObjectContent (UnityEngine.Object obj, System.Type type, UnityEditor.SerializedProperty property, UnityEditor.EditorGUI+ObjectFieldValidator validator) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1002) UnityEditor.UIElements.ObjectField+ObjectFieldDisplay.Update () (at /Users/bokken/buildslave/unity/build/Editor/Mono/UIElements/Controls/ObjectField.cs:137) UnityEditor.UIElements.ObjectField.UpdateDisplay () (at /Users/bokken/buildslave/unity/build/Editor/Mono/UIElements/Controls/ObjectField.cs:90) UnityEngine.UIElements.VisualElement+SimpleScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/VisualElementScheduler.cs:341) UnityEngine.UIElements.TimerEventScheduler.UpdateScheduledEvents () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Scheduler.cs:362) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:253) UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:105) UnityEditor.RetainedMode.UpdateSchedulers () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Editor/RetainedMode.cs:55){code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Add comment