Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

2.0.0a14

Issue ID

UVSB-954

Regression

Yes

Private variables brake flow graphs

Package: Visual Scripting Bugs

-

When trying to set a private variable in a flow graph the graph brakes.

The following errors appear on the nodes.
{code:java}
You can't cancel if there is no cancellation callback registered
{code}
{code:java}
ThreadAbortException
Unity.Bolt.ExtractionWorkflow.Load (Unity.Bolt.IExtractor extractor) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Core/Extraction/ExtractionWorkflow.cs:204)
Unity.Bolt.ExtractionWorkflow.EnsureStartedLoading[TExtractor] (System.Boolean compare) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Core/Extraction/ExtractionWorkflow.cs:256)
Unity.Bolt.UnitOptionTree.Prewarm () (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Flow/Options/UnitOptionTree.cs:59)
Unity.Bolt.FuzzyWindow+<>c__DisplayClass19_0.<Initialize>b__0 () (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Core/Interface/Fuzzy/FuzzyWindow.cs:419)
Unity.Bolt.FuzzyWindow.RunTaskSynchronous (System.Action task) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Core/Interface/Fuzzy/FuzzyWindow.cs:1410)
UnityEngine.Debug:LogException(Exception)
Unity.Bolt.FuzzyWindow:RunTaskSynchronous(Action) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Core/Interface/Fuzzy/FuzzyWindow.cs:1415)
Unity.Bolt.FuzzyWindow:Work() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Editor/Bolt.Core/Interface/Fuzzy/FuzzyWindow.cs:1444)
System.Threading.ThreadHelper:ThreadStart()
{code}
{code:java}
Failed to add element to graph: SetFlowGraphVariable#afe09
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0
at System.Collections.ObjectModel.ReadOnlyDictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at Unity.Bolt.XBoltClassGraph.TryGetClassReference (Unity.Bolt.IGraph graph, Unity.Bolt.GraphReference& reference) [0x00078] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/BTS/IBoltClassGraph.cs:124
at Unity.Bolt.Unit`1[TFlowGraph].Define () [0x00067] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Flow/Units/Unit.cs:216
at Unity.Bolt.Unit`1[TFlowGraph].AfterAdd (TFlowGraph graph) [0x00000] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Flow/Units/Unit.cs:97
at Unity.Bolt.FlowGraphVariableUnit.AfterAdd (Unity.Bolt.FlowGraph graph) [0x00000] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Flow/Units/BTS/FlowGraphVariableUnit.cs:46
at Unity.Bolt.GraphElement`1[TGraph].Unity.Bolt.INotifiedCollectionChild<Unity.Bolt.IGraph>.AfterAdd (Unity.Bolt.IGraph graph) [0x00000] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Graphs/GraphElement.cs:48
at Unity.Bolt.ParentCollection`3[TParent,TKey,TItem].AfterAdd (TItem item) [0x0000f] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Collections/ParentCollection.cs:308
at Unity.Bolt.ParentCollection`3[TParent,TKey,TItem].InsertItem (System.Int32 index, TItem item) [0x00016] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Collections/ParentCollection.cs:97
at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in <fb001e01371b4adca20013e0ac763896>:0
at Unity.Bolt.VariantCollection`2[TBase,TImplementation].Add (TBase item) [0x00013] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Collections/VariantCollection.cs:42
at Unity.Bolt.MergedKeyedCollection`2[TKey,TItem].Add (TItem item) [0x00000] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Collections/MergedKeyedCollection.cs:168
at Unity.Bolt.GraphElementMergedCollection.Add (System.Collections.Generic.IEnumerable`1[T] elements) [0x0004d] in /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Graphs/GraphElementMergedCollection.cs:33
UnityEngine.Debug:LogWarning(Object)
Unity.Bolt.GraphElementMergedCollection:Add(IEnumerable`1) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Graphs/GraphElementMergedCollection.cs:37)
Unity.Bolt.Graph:OnAfterDependenciesDeserialized() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Graphs/Graph.cs:172)
Unity.Bolt.Serialization:CheckIfDependenciesMet(ISerializationDepender) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:906)
Unity.Bolt.Serialization:NotifyDependencyAvailable(ISerializationDependency) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:878)
Unity.Bolt.Serialization:NotifyDependencyDeserialized(ISerializationDependency) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:842)
Unity.Bolt.BoltType:OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/BTS/BoltType.cs:148)
Unity.Bolt.BoltClass:OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/BTS/BoltClass.cs:112)
Unity.Bolt.UnityAsset:Unity.Bolt.IUnityRootObject.OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Unity/UnityAsset.cs:47)
Unity.Bolt.Serialization:OnAfterDeserializeImplementation(UnityAsset, FullSerializationData, SerializationData, Boolean&) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:755)
Unity.Bolt.UnityAsset:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Unity/UnityAsset.cs:27)
{code}
{code:java}
Could not load connection between 'trigger' of 'Update#3cdda' and 'assign' of 'SetFlowGraphVariable#afe09'.
UnityEngine.Debug:LogWarning(Object, Object)
Unity.Bolt.UnitConnection`2:HandleDependencies() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Flow/Connections/UnitConnection.cs:190)
Unity.Bolt.GraphElementMergedCollection:Add(IEnumerable`1) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Graphs/GraphElementMergedCollection.cs:28)
Unity.Bolt.Graph:OnAfterDependenciesDeserialized() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Graphs/Graph.cs:172)
Unity.Bolt.Serialization:CheckIfDependenciesMet(ISerializationDepender) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:906)
Unity.Bolt.Serialization:NotifyDependencyAvailable(ISerializationDependency) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:878)
Unity.Bolt.Serialization:NotifyDependencyDeserialized(ISerializationDependency) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:842)
Unity.Bolt.BoltType:OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/BTS/BoltType.cs:148)
Unity.Bolt.BoltClass:OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/BTS/BoltClass.cs:112)
Unity.Bolt.UnityAsset:Unity.Bolt.IUnityRootObject.OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Unity/UnityAsset.cs:47)
Unity.Bolt.Serialization:OnAfterDeserializeImplementation(UnityAsset, FullSerializationData, SerializationData, Boolean&) (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Serialization/Serialization.cs:755)
Unity.Bolt.UnityAsset:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize() (at /Users/johncrowe/WORKSPACE/GITPROJECTS/com.unity.bolt/Packages/com.unity.bolt/Runtime/Bolt.Core/Unity/UnityAsset.cs:27)
{code}
* Steps to reproduce
* Add a Bolt component to a game object
* Create a new flow graph on the game object
* Create a private variable in the flow graph
* Alt + Drag the private variable into the graph
* Attach it to the update function
* Play the scene
Notice issue >> Nodes brake, turn red, display errors.

This is a regression on 2.0.0a13

Video attached
Tested: Unity 2020.1.0f1, Bolt release/2.0.0.a14, macOS

  1. Resolution Note:

    Unable to the repo in the latest development branch or release/a14 branch. macOs 2020.1f1

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.