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
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
- Particle System Curve presets can't be scrolled and some of them can't be selected if window is too narrow to fit them all
Add comment