Search Issue Tracker
In Progress
Under Consideration for 2022.3.X, 6000.0.X
Fix In Review for 6000.1.X, 6000.2.0a11
Votes
0
Found in
2022.3.61f1
6000.0.46f1
6000.1.0f1
6000.2.0a9
Issue ID
UUM-103398
Regression
No
User gets "NullReferenceException: Object reference not set to an instance of an object" error in the Console during the search in the "Select Scene" window
*Steps to reproduce:*
# Create a new Unity project
# Go to "Window" -> "Search" -> "Scene"
# Enter "test" into the "Search" field
# Click "Add new query block"
# And again, enter "test" into its search field
*Actual results:* Console displays an error "NullReferenceException: Object reference not set to an instance of an object". Short video is added below in the "Attachments" section.
*Expected results:* No errors in the console.
*Reproducible with versions:* 2022.3.61f1, 6000.0.46f1, 6000.1.0f1, 6000.2.0a9
*Not reproducible with versions:* -
*Can’t test with versions:* -
*Tested on (OS):* M1 Max - Sequoia 15.3.2
*Notes:* Full error displayed below
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.QuerySelectorItemGUI.DrawItemContent (UnityEditor.IMGUI.Controls.AdvancedDropdownItem item, UnityEngine.Rect rect, UnityEngine.GUIContent content, System.Boolean isHover, System.Boolean isActive, System.Boolean on, System.Boolean hasKeyboardFocus) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/QueryBuilder/QuerySelector.cs:115)
UnityEditor.IMGUI.Controls.AdvancedDropdownGUI.DrawItem (UnityEditor.IMGUI.Controls.AdvancedDropdownItem item, System.String name, UnityEngine.Texture2D icon, System.Boolean enabled, System.Boolean drawArrow, System.Boolean selected, System.Boolean hasSearch) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownGUI.cs:104)
UnityEditor.IMGUI.Controls.AdvancedDropdownWindow.DrawList (UnityEditor.IMGUI.Controls.AdvancedDropdownItem item) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownWindow.cs:419)
UnityEditor.IMGUI.Controls.AdvancedDropdownWindow.DrawDropdown (System.Single anim, UnityEditor.IMGUI.Controls.AdvancedDropdownItem group) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownWindow.cs:398)
UnityEditor.IMGUI.Controls.AdvancedDropdownWindow.OnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownWindow.cs:248)
UnityEditor.HostView.OldOnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:317)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:429)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:718)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:583)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRenderer/UIRenderers.cs:128)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRenderChain.cs:557)
UnityEngine.UIElements.UIRRepaintUpdater.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRepaintUpdater.cs:125)
UnityEngine.UIElements.BaseVisualElementPanel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:792)
UnityEngine.UIElements.Panel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:1462)
UnityEditor.UIElements.EditorPanel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/EditorPanel.cs:97)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:477)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:232)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:76)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:30)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)
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
- Texture displays visual artifacts and has a broken aspect ratio when it is imported in RGB 48-bit format
- Diagnostic Warning Resets When Navigating Away and Returning to Diagnostics Settings
- Checkbox Collides with Text in Shader Graph Preferences Settings
- Crash on mecanim::animation::TransformValuesFromClip when entering the Play Mode in a project with Animancer Pro v8
- Connection to Named Pipes fails when server and client are run
Resolution Note (fix version 6000.2.0a11):
Search: Fix exception thrown when searching for filters in the "Select Scene" window.
Resolution Note (fix version 6000.1):
Search: Fix exception thrown when searching for filters in the "Select Scene" window.