Forum

Exception when trying to replace effect node

Happening in 2021.4.8, when placing a SuppressDiagonalsShader node in a fresh patch and double-clicking it to replace.

************** Exception Text **************
System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source) at System.Linq.ImmutableArrayExtensions.SingleOrDefault[T](ImmutableArray1 immutableArray, Func2 predicate) at VL.HDE.SymbolBrowsers.NodeBrowser.<GetNecessaryUpcomingDecisions>d__74.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__172.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext() at System.Collections.Generic.List1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at VL.HDE.SymbolBrowsers.SymbolBrowser.ReloadSymbols()
at VL.HDE.SymbolBrowsers.SymbolBrowser.TextEdit_TextChanged(String text, TextEditor sender)
at VL.HDE.SymbolBrowsers.SymbolBrowser.Show(Boolean modal, EventHandler canceled)
at VL.HDE.SymbolBrowsers.NodeBrowser.Show(Boolean modal, EventHandler1 padCreated, EventHandler1 applicationCreated, EventHandler canceled)
at VL.Lang.View.CanvasView.OpenNodeBrowser(Form owner, VMouseEventArgs doubleClick, Point screenPoint, Boolean createIOBox)
at VL.Lang.View.CanvasView.CanvasDecisionMouseHandler.DoubleClickMethod(VMouseEventArgs firstClick, VMouseEventArgs click)
at VL.Core.Viewer.Handler.<>c__DisplayClass18_0.b__0(VMouseEventArgs down)
at VL.Core.Viewer.Handler.ParallelMouseHandler.MouseDown(VMouseEventArgs arg)
at VL.Lang.View.CanvasView.CanvasDecisionMouseHandler.MouseDown(VMouseEventArgs arg)
at VL.Lang.View.CanvasView.HandleMouseDown(Object sender, VMouseEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Thanks. Will be fixed in upcoming.