Search Issue Tracker
Won't Fix
Votes
17
Found in
2023.1.0b9
2023.2.0a6
Issue ID
UUM-30377
Regression
No
"ArgumentNullException: Value cannot be null. Parameter name: _unity_self" error becomes visible in the "Console" after clearing its value from the "Inspector" tab
Steps to reproduce:
# Create a project
# Add 2D/3D game object
# Go to "Inspector" tab
# Select any component
# Click on preset icon
# Verify, that "Select Preset" window opens
# Click "Open Inspector" icon
# Verify, that "Inspector" sections becomes visible
# Find "Create New XXXXX Preset ..." line
# Open the same preset window
# Select preset which was created
# Verify, that its data is displayed in the Inspector section
# Find "Clear the current value" line and click it
# Observe Console section
Actual Result: Console displays an error.
Expected Result: Inspector tab should be cleared out without the errors. Video added in the "Attachments" section.
Reproducible with: 2023.2.0a6, 2023.1.0b9.
Not reproducible with: 2022.2.12f1, 2021.3.20f1, 2020.3.46f1. These streams have old UI.
Error:
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.UpdateRevision () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/Bindings/BindingExtensions.cs:515)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.ResetUpdate () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/Bindings/BindingExtensions.cs:551)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.ResetUpdate () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/Bindings/BindingExtensions.cs:1232)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContextUpdater.Update () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/Bindings/BindingExtensions.cs:1448)
UnityEngine.UIElements.VisualTreeBindingsUpdater.UpdateBindings () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Bindings/VisualTreeBindingsUpdater.cs:330)
UnityEngine.UIElements.VisualTreeBindingsUpdater.Update () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Bindings/VisualTreeBindingsUpdater.cs:293)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/VisualTreeUpdater.cs:113)
UnityEngine.UIElements.Panel.UpdateBindings () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Panel.cs:1005)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:256)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:105)
UnityEditor.RetainedMode.UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/RetainedMode.cs:55)
-
Macroblitz
Sep 26, 2023 05:45
Same here with 2022.3.7f1
My error started appearing after I changed a property name in the code of my ScriptableObject script.
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
UnityEditor.SerializedObject.FindProperty (System.String propertyPath) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindPropertyRelative (UnityEngine.UIElements.IBindable field, UnityEditor.SerializedProperty parentProperty) (at <f90f2d9cb28d4393afc1338e6af635e0>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <f90f2d9cb28d4393afc1338e6af635e0>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.ContinueBinding (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <f90f2d9cb28d4393afc1338e6af635e0>:0)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation+BindingRequest.Bind (UnityEngine.UIElements.VisualElement element) (at <f90f2d9cb28d4393afc1338e6af635e0>:0)
UnityEngine.UIElements.VisualTreeBindingsUpdater.Update () (at <9d7fc877145d4138982bf12cdd3484c6>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <9d7fc877145d4138982bf12cdd3484c6>:0)
UnityEngine.UIElements.Panel.UpdateBindings () (at <9d7fc877145d4138982bf12cdd3484c6>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at <9d7fc877145d4138982bf12cdd3484c6>:0)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at <9d7fc877145d4138982bf12cdd3484c6>:0)
UnityEditor.RetainedMode.UpdateSchedulers () (at <f90f2d9cb28d4393afc1338e6af635e0>:0) -
shuan_xy
Sep 14, 2023 18:15
same issue with unity 2022.3.8f1, will unity fix this?
If I select a image or camera in the hierarchy and click play, everything looks fine.
If I select a scripted game object, it give me a list of errors. However the game still seems to run just fine. The list of error looks quite annoying though. -
marcosatienzagd
Sep 11, 2023 18:50
I have a similar issue, version is 2022.3.0f1. Should I update?
-
samaelxxi
Aug 19, 2023 17:52
Same bug when an ScriptableObject is selected in Inspector and Play pressed. 2022.3.7f1
-
RasmusMolckNilsson
Jul 28, 2023 11:22
I get this error in 2022.3.5f1 when starting game while object is selected. Project was updated from 2021.1.
-
unity_0GlwZ4j_Ggr0lA
Jul 20, 2023 11:26
I've had the same issue with:
2022.35f1With:
scriptable object selected and with inspector focus
SO has serialized fieldsWork around - don't have SO viewed in inspector when pressing play in editor.
-
NomarPimentel
Jun 29, 2023 22:11
I have the same problem when entering game mode with a Scriptable Object selected and displayed in the inspector. 2022.3.2f1
-
amateurd
Jun 09, 2023 17:10
Also affects 2022.3.1f1
-
TRI99ER_
May 08, 2023 16:36
Same in 2022.2.16f1.
-
esco1979
May 04, 2023 05:50
I have this same issues in 2022.2.17F1; it happens when I have a script shown in the inspector. I have tried even removing vars one by one, and I was still getting these errors with normal public int vars (one or two of them) and nothing else in the script code wise.
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
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note:
This has been fixed by an unknown PR.
Confirmed that 2023.1.0b9 has the issue however later versions do not.
Tested 2023.1.5f1, 2023.2.0b9 and 2023.3.0a1.
Note: This bug is only looking into the error with regards to the preset window, not the error message in general which can occur under many different circumstances.