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)
Comments (11)
-
eskivor
Apr 28, 2023 02:02
I have a similar error in 2022.2.16f1
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.