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
- Shadows are not cast when the Light's CullingMask and the GameObject's Layer do not match
- Graphics.DrawMeshInstanced does not work when 2D Renderer and 2D Shaders are used
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
Add comment