0
Fixed

Paste group error on context-click in Bolt 2 alpha

love pug 2 years ago updated by Lazlo Bonin (Lead Developer) 1 year ago 3

Although the conditions that occur vary, Bolt2 frequently encounters errors.
While editing Graph, the error "ArgumentNullException: Value can not be null." Appears and right clicking on the Graph Window becomes disabled.
I can open FuzzyFinder with SPACE key, but I get an error every time I use right click.

Bolt2.0.0a3
Unity2018.3.5f1

--------------------------------------------------------------
ArgumentNullException: Value cannot be null.
Parameter name: source
System.Linq.Enumerable.Where[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
Ludiq.GraphClipboard.GetPasteGroup () (at Assets/Ludiq/Ludiq.Graphs/Editor/Context/GraphClipboard.cs:104)
Ludiq.GraphClipboard.get_canPasteOutside () (at Assets/Ludiq/Ludiq.Graphs/Editor/Context/GraphClipboard.cs:71)
Ludiq.Canvas`1+d__157[TGraph].MoveNext () (at Assets/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:1368)
Bolt.FlowCanvas+d__13.MoveNext () (at Assets/Ludiq/Bolt.Flow/Editor/FlowCanvas.cs:164)
System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
Ludiq.Canvas`1[TGraph].OnContext () (at Assets/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:1376)
Bolt.FlowCanvas.OnContext () (at Assets/Ludiq/Bolt.Flow/Editor/FlowCanvas.cs:151)
Ludiq.Canvas`1[TGraph].HandleContext () (at Assets/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:1409)
Ludiq.Canvas`1[TGraph].HandleLowPriorityInput () (at Assets/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:354)
Bolt.FlowCanvas.HandleLowPriorityInput () (at Assets/Ludiq/Bolt.Flow/Editor/FlowCanvas.cs:121)
Ludiq.Canvas`1[TGraph].OnGUI () (at Assets/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:295)
Ludiq.GraphWindow.OnGUI () (at Assets/Ludiq/Ludiq.Graphs/Editor/Windows/GraphWindow.cs:571)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:310)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect, System.Boolean customBorder, System.Boolean floatingWindow, System.Boolean isBottomTab) (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:361)
UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:320)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:438)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:421)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:401)
UnityEngine.Experimental.UIElements.EventDispatcher.PropagateEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:754)
UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:599)
UnityEngine.Experimental.UIElements.EventDispatcher.Dispatch (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:307)
UnityEngine.Experimental.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.Experimental.UIElements.EventBase e, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:176)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:245)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:68)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
--------------------------------------------------------------

It happens quite often, so I tried to work on Bolt 1. But Bolt 1 has a bug that disappears with NODE with CTRL + Z, which is very troublesome.

Bolt Version:
2.0.0a3
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2
Working on Fix

Separated this from your other thread. Can confirm the issue, will fix for next Alpha. Thanks for the report!

+1
Fixed in Alpha

Think I found the cause, should be fixed in Alpha 4.