Search Issue Tracker

Fixed

Fixed in 2023.2.5f1, 2023.3.0a19

Votes

0

Found in

2023.3.0a8

Issue ID

UUM-53334

Regression

Yes

ObjectDisposedException thrown from builder when undo element creation

--

-

1) Create a new project

2) Open UI Builder with a new document

3) Create a Label

4) Press Undo (Ctrl+Z)

 

Error thrown 

 

ObjectDisposedException: SerializedProperty m_VisualElementAssets.Array.data[1].m_SerializedData.dataSource has disappeared!
UnityEditor.SerializedProperty.SyncSerializedObjectVersion () (at <9fd12bd8d9c2476bbec1ace816cf3cb0>:0)
UnityEditor.SerializedProperty.Verify (UnityEditor.SerializedProperty+VerifyFlags verifyFlags) (at C:/Unity/Source/unity-git/Editor/Mono/SerializedProperty.bindings.cs:497)
UnityEditor.SerializedProperty.get_objectReferenceInstanceIDValue () (at C:/Unity/Source/unity-git/Editor/Mono/SerializedProperty.bindings.cs:1430)
UnityEditor.EditorGUIUtility.ObjectContent (UnityEngine.Object obj, System.Type type, UnityEditor.SerializedProperty property, UnityEditor.EditorGUI+ObjectFieldValidator validator) (at C:/Unity/Source/unity-git/Editor/Mono/EditorGUIUtility.cs:991)
UnityEditor.UIElements.ObjectField+ObjectFieldDisplay.Update () (at C:/Unity/Source/unity-git/Editor/Mono/UIElements/Controls/ObjectField.cs:182)
UnityEditor.UIElements.ObjectField.UpdateDisplay () (at C:/Unity/Source/unity-git/Editor/Mono/UIElements/Controls/ObjectField.cs:132)
Unity.UI.Builder.BuilderObjectField.UpdateDisplay () (at C:/Unity/Source/unity-git/Modules/UIBuilder/Editor/Builder/UxmlAttributesView/Fields/BuilderUxmlAssetAttributeField.cs:82)
UnityEngine.UIElements.VisualElement+SimpleScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at C:/Unity/Source/unity-git/Modules/UIElements/Core/VisualElementScheduler.cs:346)
UnityEngine.UIElements.TimerEventScheduler.UpdateScheduledEvents () (at C:/Unity/Source/unity-git/Modules/UIElements/Core/Scheduler.cs:363)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at C:/Unity/Source/unity-git/Modules/UIElements/Core/UIElementsUtility.cs:273)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at C:/Unity/Source/unity-git/Modules/UIElements/Core/UIElementsUtility.cs:105)
UnityEditor.RetainedMode.UpdateSchedulers () (at C:/Unity/Source/unity-git/Modules/UIElementsEditor/RetainedMode.cs:55)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.