Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
4
Found in
2023.1.0b16
Issue ID
UUM-35709
Regression
No
NullReferenceException: SerializedObject of SerializedProperty has been Disposed Error thrown in Console when deselecting a preset with the Inspector turned on in the Presets Window
How to reproduce:
1. Open any project
2. Open the Preset window for a Game Object and create a new Preset
4. Turn on the Inspector for the Presets window
3. Select it in the window and then choose the "Clear the current value" option
4. Observe the Console
Reproducible with: 2023.2.0a14, 2023.1.0b16
Not reproducible with: 2023.2.0a15
Couldn't test with: 2020.3.47f1, 2021.3.24f1, 2022.2.17f1 (The Presets window is old)
Error Message: NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.get_intValue () (at <3a0f23a72f9a42e68c8e02f26cf0801d>:0)
UnityEditor.UIElements.Bindings.ListViewSerializedObjectBinding.Update () (at <933a504e8d064b15a44160dbb9bf3ef7>:0)
UnityEngine.UIElements.VisualTreeBindingsUpdater.UpdateBindings () (at <3658892c1eeb450db00efa8398d342a6>:0)
UnityEngine.UIElements.VisualTreeBindingsUpdater.Update () (at <3658892c1eeb450db00efa8398d342a6>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <3658892c1eeb450db00efa8398d342a6>:0)
UnityEngine.UIElements.Panel.UpdateBindings () (at <3658892c1eeb450db00efa8398d342a6>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at <3658892c1eeb450db00efa8398d342a6>:0)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at <3658892c1eeb450db00efa8398d342a6>:0)
UnityEditor.RetainedMode.UpdateSchedulers () (at <933a504e8d064b15a44160dbb9bf3ef7>:0)
Error message on 2023.1.0b1:
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.UpdateRevision () (at <882712ecd97c420a8ec54167cdc5a4b6>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.ResetUpdate () (at <882712ecd97c420a8ec54167cdc5a4b6>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.ResetUpdate () (at <882712ecd97c420a8ec54167cdc5a4b6>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContextUpdater.Update () (at <882712ecd97c420a8ec54167cdc5a4b6>:0)
UnityEngine.UIElements.VisualTreeBindingsUpdater.UpdateBindings () (at <de121ba967424592af267e4b0a4574a0>:0)
UnityEngine.UIElements.VisualTreeBindingsUpdater.Update () (at <de121ba967424592af267e4b0a4574a0>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <de121ba967424592af267e4b0a4574a0>:0)
UnityEngine.UIElements.Panel.UpdateBindings () (at <de121ba967424592af267e4b0a4574a0>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at <de121ba967424592af267e4b0a4574a0>:0)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at <de121ba967424592af267e4b0a4574a0>:0)
UnityEditor.RetainedMode.UpdateSchedulers () (at <882712ecd97c420a8ec54167cdc5a4b6>:0)
Comments (5)
-
sharebophar
Dec 20, 2023 13:07
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;[Serializable]
public class SA
{
public bool flipX = false;
public bool flipY = false;
public List<string> Labels = new List<string>();
}public class SerializedPropertyTest : MonoBehaviour
{
public SA activeAnimation;//loop
} -
ddark1990
Nov 22, 2023 22:53
happens in 11f1 too, extremely slowing down the editor performance
-
zorigdavaa
Nov 20, 2023 10:54
2022.3.10 still this issue is encountering
-
hublard
Oct 30, 2023 09:28
Have the same problemwith unity 2022.3.12. after opening any prefab it spams the console with that error
-
srinivasg
Sep 15, 2023 08:17
I've encountered the same issue with both Unity 2022.3.8f1 and 2022.3.9f1. Can anyone provide assistance or insights on how to resolve it?
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (2023.1.X):
There are no fixes planned for this Bug