V4g First impressions / bugs I found in 10 minutes

  1. creating a script region throws an exception
    v4g-bugs-script
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis.Scripting, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
       at VL.Lib.Primitive.CSharpScripting.DelegateTo(IPluginHost host, IScope scope, INode node)
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, IEnumerable`1 elements, Wiring wiring, IExpandingNodeDefinition currentLifting, PatchedNodeSymbol expandingNode, Builder elementsFromExpansion) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 379
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, IEnumerable`1 elements, Wiring wiring, IExpandingNodeDefinition currentLifting, PatchedNodeSymbol expandingNode, Builder elementsFromExpansion) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 421
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, Wiring wiring) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 313
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 270
       at VL.Lang.Symbols.PatchSymbol.EnsureUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 234
       at VL.Lang.Symbols.PatchSymbol.get_SymbolMap() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 122
       at VL.Lang.Symbols.PatchedCategorizableSymbol.<>c__DisplayClass24_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 154
       at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
       at VL.Lang.Symbols.PatchedCategorizableSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 152
       at VL.Lang.Symbols.ConcreteTypeSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Definitions.cs:line 995
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Lang.Symbols.PatchedCompoundSymbol.<>c__DisplayClass9_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 115
       at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
       at VL.Lang.Symbols.PatchedCompoundSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 120
       at VL.Lang.Symbols.PatchSymbol.GetUpdatedElementCore(CancellationToken token)
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
       at VL.Lang.Symbols.DocSymbols.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\DocSymbols.cs:line 485
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Lang.Symbols.PreCompilation.<>c__DisplayClass92_1.<GetUpdatedElementCore>b__3(Element e, ParallelLoopState ls, Int64 i) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 357
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
       --- End of inner exception stack trace ---
       at System.AggregateException.Handle(Func`2 predicate)
       at VL.Lang.Symbols.PreCompilation.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 369
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Lang.Symbols.PreCompilation..ctor(Solution solution, PreCompilation previousCompilation, CancellationToken token, IProgress`1 progress, SyncToSymbolOptions syncOptions) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 98
       at VL.Lang.Symbols.PreCompilation.Create(Solution solution, PreCompilation previous, CancellationToken token, IProgress`1 progress) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 39
       at VL.Model.Solution.WithTempCompilation() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Basics.cs:line 848
       at VL.Model.ModelExtensions.AddNode[TNodeOrPatch](TNodeOrPatch nodeOrPatch, Point2 position, ChoiceBasedNodeReference nodeReference, INodeDefinitionSymbol nodeDef, Canvas canvas, NameAndVersion name, Category category, INameProvider nameProvider, Boolean assignToLayer) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\ModelExtensions.cs:line 1571
       at VL.Lang.View.CanvasView.<>c__DisplayClass236_0.<OpenNodeBrowser>b__1(Object _, ReferenceEventArgs args) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.Forms\PatchEditor\ModelViews\CanvasView.NodeBrowserInteraction.cs:line 188
       at VL.HDE.SymbolBrowsers.NodeBrowser.<>c__DisplayClass53_0.<Show>b__1(Object sender, ReferenceEventArgs ea) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\NodeBrowser.cs:line 195
       at VL.HDE.SymbolBrowsers.NodeBrowser.DoCreateApplication() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\NodeBrowser.cs:line 394
       at VL.HDE.SymbolBrowsers.NodeBrowser.OK(Object sender) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\NodeBrowser.cs:line 376
       at VL.HDE.SymbolBrowsers.SymbolBrowser.choice_Clicked(Object sender) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\SymbolBrowser.cs:line 395
       at VL.HDE.Button.MouseClick[TState](TState state, Vector2 p) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.PatchEditor.Utils\Interaction\Button.cs:line 96
       at VL.HDE.ActiveControlManager.OnMouseUp(MouseUpNotification e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.PatchEditor.Utils\Interaction\ActiveControlManager.cs:line 260
       at System.Reactive.AnonymousSafeObserver`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\AnonymousSafeObserver.cs:line 46
       at System.Reactive.Linq.ObservableImpl.OfType`2._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\OfType.cs:line 33
       at System.Reactive.Observer`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\Observers.cs:line 80
       at System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Merge.cs:line 250
       at System.Reactive.Linq.ObservableImpl.Do`1.OnNext._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Do.cs:line 48
       at System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Merge.cs:line 250
       at System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Merge.cs:line 250
       at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Select.cs:line 49
       at System.Reactive.Observer`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\Observers.cs:line 80
       at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis.Scripting, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.CodeAnalysis.Scripting, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at VL.Lib.Primitive.CSharpScripting.DelegateTo(IPluginHost host, IScope scope, INode node)
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, IEnumerable`1 elements, Wiring wiring, IExpandingNodeDefinition currentLifting, PatchedNodeSymbol expandingNode, Builder elementsFromExpansion) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 379
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, IEnumerable`1 elements, Wiring wiring, IExpandingNodeDefinition currentLifting, PatchedNodeSymbol expandingNode, Builder elementsFromExpansion) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 421
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, Wiring wiring) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 313
       at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 270
       at VL.Lang.Symbols.PatchSymbol.EnsureUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 234
       at VL.Lang.Symbols.PatchSymbol.get_SymbolMap() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 122
       at VL.Lang.Symbols.PatchedCategorizableSymbol.<>c__DisplayClass24_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 154
       at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
       at VL.Lang.Symbols.PatchedCategorizableSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 152
       at VL.Lang.Symbols.ConcreteTypeSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Definitions.cs:line 995
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Lang.Symbols.PatchedCompoundSymbol.<>c__DisplayClass9_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 115
       at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
       at VL.Lang.Symbols.PatchedCompoundSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 120
       at VL.Lang.Symbols.PatchSymbol.GetUpdatedElementCore(CancellationToken token)
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
       at VL.Lang.Symbols.DocSymbols.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\DocSymbols.cs:line 485
       at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
       at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
       at VL.Lang.Symbols.PreCompilation.<>c__DisplayClass92_1.<GetUpdatedElementCore>b__3(Element e, ParallelLoopState ls, Int64 i) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 357
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
  1. Whatever (doesn’t) happens here it doesn’t feel right:
    v4g-bugs-iobox-editormode

this is as far as I go now, maybe I’ll dig deeper later

ad 1) the script region is marked as experimental. should we add a popup that you need to confirm when you’re enabling experimental nodes in the nodebrowser?

ad 2) that one is on our list already, thanks.

yeah you can add a not to the right sidebar in the node browser I guess. It seems to be it’s just missing a DLL or a wrongly configured version mapping but I guess that’s the furthest from important stuff now, I’m actually writing my thoughts about more subjective/usability issues

great, thanks. and keep them coming!

hah found yet another one: I accidentially hit “Restructure Document” in SKShader forward patch at PerlinNoise, at 07_Gradient-and-Noise-Shaders help patch. and after VL froze for 20+ seconds it threw an exception:

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, Wiring wiring) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 295
   at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 270
   at VL.Lang.Symbols.PatchSymbol.EnsureUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 234
   at VL.Lang.Symbols.PatchSymbol.get_SymbolMap() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 122
   at VL.Lang.Symbols.PatchedCompoundSymbol.<>c__DisplayClass9_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 114
   at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
   at VL.Lang.Symbols.PatchedCompoundSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 120
   at VL.Lang.Symbols.PatchSymbol.GetUpdatedElementCore(CancellationToken token)
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
   at VL.Lang.Symbols.DocSymbols.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\DocSymbols.cs:line 485
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Lang.Symbols.PreCompilation.<>c__DisplayClass92_1.<GetUpdatedElementCore>b__3(Element e, ParallelLoopState ls, Int64 i) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 357
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )

actually this happens everywhere I hit layout -> restructure

good find, that’s a devvvv function, shouldn’t be in release builds.

I found yet another one, probably related to the restructuring thing one should not suppose to click. Now I can’t create any nodes: (restarting vvvv gamma fixed it)
v4g-bugs-cantcreatenodes

System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, Wiring wiring) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 295
   at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 270
   at VL.Lang.Symbols.PatchSymbol.EnsureUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 234
   at VL.Lang.Symbols.PatchSymbol.get_SymbolMap() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 122
   at VL.Lang.Symbols.PatchedCompoundSymbol.<>c__DisplayClass9_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 114
   at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
   at VL.Lang.Symbols.PatchedCompoundSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 120
   at VL.Lang.Symbols.PatchSymbol.GetUpdatedElementCore(CancellationToken token)
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
   at VL.Lang.Symbols.DocSymbols.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\DocSymbols.cs:line 485
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Lang.Symbols.PreCompilation.<>c__DisplayClass92_1.<GetUpdatedElementCore>b__3(Element e, ParallelLoopState ls, Int64 i) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 357
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
   --- End of inner exception stack trace ---
   at System.AggregateException.Handle(Func`2 predicate)
   at VL.Lang.Symbols.PreCompilation.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 369
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Lang.Symbols.PreCompilation..ctor(Solution solution, PreCompilation previousCompilation, CancellationToken token, IProgress`1 progress, SyncToSymbolOptions syncOptions) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 98
   at VL.Lang.Symbols.PreCompilation.Create(Solution solution, PreCompilation previous, CancellationToken token, IProgress`1 progress) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 39
   at VL.Model.Solution.WithTempCompilation() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Basics.cs:line 848
   at VL.Model.ModelExtensions.AddNode[TNodeOrPatch](TNodeOrPatch nodeOrPatch, Point2 position, ChoiceBasedNodeReference nodeReference, INodeDefinitionSymbol nodeDef, Canvas canvas, NameAndVersion name, Category category, INameProvider nameProvider, Boolean assignToLayer) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\ModelExtensions.cs:line 1571
   at VL.Lang.View.CanvasView.<>c__DisplayClass236_0.<OpenNodeBrowser>b__1(Object _, ReferenceEventArgs args) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.Forms\PatchEditor\ModelViews\CanvasView.NodeBrowserInteraction.cs:line 188
   at VL.HDE.SymbolBrowsers.NodeBrowser.<>c__DisplayClass53_0.<Show>b__1(Object sender, ReferenceEventArgs ea) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\NodeBrowser.cs:line 195
   at VL.HDE.SymbolBrowsers.NodeBrowser.DoCreateApplication() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\NodeBrowser.cs:line 394
   at VL.HDE.SymbolBrowsers.NodeBrowser.OK(Object sender) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\NodeBrowser.cs:line 376
   at VL.HDE.SymbolBrowsers.SymbolBrowser.choice_Clicked(Object sender) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.NodeBrowser\SymbolBrowser.cs:line 395
   at VL.HDE.Button.MouseClick[TState](TState state, Vector2 p) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.PatchEditor.Utils\Interaction\Button.cs:line 96
   at VL.HDE.ActiveControlManager.OnMouseUp(MouseUpNotification e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.UI.PatchEditor.Utils\Interaction\ActiveControlManager.cs:line 260
   at System.Reactive.AnonymousSafeObserver`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\AnonymousSafeObserver.cs:line 46
   at System.Reactive.Linq.ObservableImpl.OfType`2._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\OfType.cs:line 33
   at System.Reactive.Observer`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\Observers.cs:line 80
   at System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Merge.cs:line 250
   at System.Reactive.Linq.ObservableImpl.Do`1.OnNext._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Do.cs:line 48
   at System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Merge.cs:line 250
   at System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Merge.cs:line 250
   at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Select.cs:line 49
   at System.Reactive.Observer`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\Observers.cs:line 80
   at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
---> (Inner Exception #0) System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols(Builder symbols, Dictionary`2 symbolMap, Wiring wiring) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 295
   at VL.Lang.Symbols.PatchSymbol.CreateUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 270
   at VL.Lang.Symbols.PatchSymbol.EnsureUserSymbols() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 234
   at VL.Lang.Symbols.PatchSymbol.get_SymbolMap() in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Patches.cs:line 122
   at VL.Lang.Symbols.PatchedCompoundSymbol.<>c__DisplayClass9_0.<GetUpdatedElementCore>b__0(Element e) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 114
   at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
   at VL.Lang.Symbols.PatchedCompoundSymbol.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 120
   at VL.Lang.Symbols.PatchSymbol.GetUpdatedElementCore(CancellationToken token)
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Model.Internal.ModelExtensions.UpdateChildren[TCompound](TCompound compound, CancellationToken token, Func`2 update) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Internal\ModelExtensions.cs:line 76
   at VL.Lang.Symbols.DocSymbols.GetUpdatedElementCore(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\DocSymbols.cs:line 485
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\ImmutableModel\Helper\Interlocked.cs:line 56
   at VL.Lang.Symbols.PatchedSymbol.GetUpdatedElement(CancellationToken token) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\PatchedImplementation\Basics.cs:line 42
   at VL.Lang.Symbols.PreCompilation.<>c__DisplayClass92_1.<GetUpdatedElementCore>b__3(Element e, ParallelLoopState ls, Int64 i) in C:\BuildAgent\work\95074898639d5736\vvvv50\VL.Lang\src\Symbols\Compilation.cs:line 357
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---

Script region works again in preview 139 - updated download link is in blog post.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.