Search Issue Tracker

Fixed in 7.1.1

Votes

0

Found in [Package]

2019.3.0a12

Issue ID

1177707

Regression

No

[Visual Effect Graph] ArgumentOutOfRangeException error is thrown on right clicking any block property in graph window

Package: Visual Effect Graph

-

ArgumentOutOfRangeException error is thrown on right clicking any block property in graph window

Steps to repro:
1. Create a new project.
2. Windows > Package Manager > Visual Effects Graph > Install.
3. Packages > Visual Effect Graph > Editor > Templates > Open Empty Particle System.
4. Select Spawn window > Press space bar > Spawn > Constant Spawn rate.
5. Right click on Rate property.

Actual result:
ArgumentOutOfRangeException error is thrown in the console.

Expected result:
No error is thrown in the console.

Reproducible in:
2019.3.0a12, 2019.3.0a10.

NOTE:
1. Visual Effects introduced in 2019.3.0a10.
2. Could not test on Mac due to https://fogbugz.unity3d.com/f/cases/1174796/

Environment:
Only on Windows.

Stacktrace:
ArgumentOutOfRangeException: Index must be within the bounds of the List.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
System.Collections.Generic.List`1[T].Insert (System.Int32 index, T item) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
UnityEngine.UIElements.DropdownMenu.InsertAction (System.Int32 atIndex, System.String actionName, System.Action`1[T] action, System.Func`2[T,TResult] actionStatusCallback, System.Object userData) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEditor.VFX.UI.VFXView.BuildContextualMenu (UnityEngine.UIElements.ContextualMenuPopulateEvent evt) (at library/packagecache/com.unity.visualeffectgraph@7.0.1/editor/graphview/views/vfxview.cs:1649)
UnityEditor.Experimental.GraphView.GraphView.OnContextualMenu (UnityEngine.UIElements.ContextualMenuPopulateEvent evt) (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <47533d5f70c041debc5c751474c7409d>:0)

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.