Search Issue Tracker
Won't Fix
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
- SearchExpression strips quotes
- dSYM file is not created during macOS standalone build
- Project Settings panels disappear and do not repaint when entering Play Mode without reloading Domain
- Screen Space Decals ignore Rendering Layer Mask when using OpenGL Graphics API
- Crash on scripting_method_invoke when the Player is build before entering the Play mode in the Editor
Resolution Note:
There are no fixes planned for this Bug