Search Issue Tracker

Fixed

Fixed in 2023.2.0b1, 2023.3.0a1

Votes

0

Found in

2023.2.0a23

Issue ID

UUM-41764

Regression

Yes

[Context menu] ArgumentNullException is sometimes thrown when hovering over menu items

--

-

{*}Reproduction steps{*}:
# Create a new project
# Right-click the Project window or the Hierarchy window
# Hover over expandable items
# Repeat step 3 over different menu items

{*}Expected result{*}: Hovered items do not disappear and no errors are thrown

{*}Actual result{*}: Hovered items sometimes disappear and the following error message is shown in the Console: 
{code:java}
ArgumentNullException: Value cannot be null.
Parameter name: child
UnityEngine.UIElements.ScrollView.ScrollTo (UnityEngine.UIElements.VisualElement child) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/ScrollView.cs:696)
UnityEngine.UIElements.BaseVerticalCollectionView.ScrollTo (UnityEngine.UIElements.VisualElement visualElement) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/BaseVerticalCollectionView.cs:1102)
UnityEngine.UIElements.GenericDropdownMenu.ChangeSelectedIndex (System.Int32 newIndex) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/GenericDropdownMenu.cs:668)
UnityEngine.UIElements.GenericDropdownMenu.ChangeSelectedIndex (System.Int32 newIndex) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/GenericDropdownMenu.cs:671)
UnityEngine.UIElements.GenericDropdownMenu.UpdateSelection (UnityEngine.UIElements.VisualElement target) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/GenericDropdownMenu.cs:651)
UnityEngine.UIElements.GenericDropdownMenu.OnPointerMove (UnityEngine.UIElements.PointerMoveEvent evt) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/GenericDropdownMenu.cs:591)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallback.cs:64)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallbackRegistry.cs:228)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:310)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCachedElementUnderPointerOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:538)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:581)
UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/PointerEvents.cs:1180)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:336)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:200)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:567)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:498)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:225)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /home/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:206) {code}
{*}Platforms tested (Reproducible){*}: Rocky 8.5, macOS Ventura 13.4.1 (M1) 

{*}Platforms tested (Not Reproducible){*}: Windows 10

{*}Notes{*}: The hovered items disappear around 1/10 times and the ArgumentNullException is thrown around 1/30 times

  1. Resolution Note (fix version 2023.3.0a1):

    Fixed UUM-41764: Editor: Fixed context menu breaking when overriding auto expand delay setting to no delay

  2. Resolution Note (fix version 2023.2.0b1):

    Fixed in 2023.2.0b1 on macOS machines

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.