SEE icon indicating copy to clipboard operation
SEE copied to clipboard

AssertionExceptions when starting SEEReflexion

Open m4xxed opened this issue 1 year ago • 0 comments

When starting up the scene SEEReflexion, sometimes I get a quick and nonstop succession of the following error:

AssertionException: Null value for Source_Dependency#Main#FrontEnd

... but the "Source_Dependency" values are different in each ErrorMessage until all Edges are named, and then it repeats.

Here is the full traceback of one of the errors:

AssertionException: Null value for Source_Dependency#Main#FrontEnd
Assertion failure. Value was Null
Expected: Value was not Null
UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) (at /home/bokken/build/output/unity/unity/Runtime/Export/Assertions/Assert/AssertBase.cs:29)
UnityEngine.Assertions.Assert.IsNotNull (UnityEngine.Object value, System.String message) (at /home/bokken/build/output/unity/unity/Runtime/Export/Assertions/Assert/AssertNull.cs:58)
UnityEngine.Assertions.Assert.IsNotNull[T] (T value, System.String message) (at /home/bokken/build/output/unity/unity/Runtime/Export/Assertions/Assert/AssertNull.cs:46)
SEE.Game.GraphElementIDMap.Find (System.String ID, System.Boolean mustFindElement) (at Assets/SEE/Game/GraphElementIDMap.cs:37)
SEE.Game.City.ReflexionVisualization.HandleEdgeChange (SEE.DataModel.EdgeChange edgeChange) (at Assets/SEE/Game/City/ReflexionVisualization.cs:298)
UnityEngine.Debug:LogException(Exception)
Cysharp.Threading.Tasks.UniTaskScheduler:PublishUnobservedTaskException(Exception) (at Library/PackageCache/com.cysharp.unitask@72e620d169/Runtime/UniTaskScheduler.cs:90)
SEE.Game.City.<HandleEdgeChange>d__19:MoveNext() (at Assets/SEE/Game/City/ReflexionVisualization.cs:327)
Cysharp.Threading.Tasks.CompilerServices.AsyncUniTaskVoidMethodBuilder:Start(<HandleEdgeChange>d__19&) (at Library/PackageCache/com.cysharp.unitask@72e620d169/Runtime/CompilerServices/AsyncUniTaskVoidMethodBuilder.cs:110)
SEE.Game.City.ReflexionVisualization:HandleEdgeChange(EdgeChange)
SEE.Game.City.ReflexionVisualization:OnNext(ChangeEvent) (at Assets/SEE/Game/City/ReflexionVisualization.cs:235)
SEE.DataModel.Observable`1:Notify(ChangeEvent) (at Assets/SEE/DataModel/Observable.cs:78)
SEE.Tools.ReflexionAnalysis.ReflexionGraph:Transition(Edge, State) (at Assets/SEE/Tools/ReflexionAnalysis/ReflexionAnalysis.cs:192)
SEE.Tools.ReflexionAnalysis.ReflexionGraph:CalculateAbsences() (at Assets/SEE/Tools/ReflexionAnalysis/ReflexionAnalysis.cs:947)
SEE.Tools.ReflexionAnalysis.ReflexionGraph:FromScratch() (at Assets/SEE/Tools/ReflexionAnalysis/ReflexionAnalysis.cs:840)
SEE.Tools.ReflexionAnalysis.ReflexionGraph:RunAnalysis() (at Assets/SEE/Tools/ReflexionAnalysis/ReflexionAnalysis.cs:132)
SEE.Game.City.ReflexionVisualization:StartFromScratch(ReflexionGraph, SEEReflexionCity) (at Assets/SEE/Game/City/ReflexionVisualization.cs:178)
SEE.Game.City.<<LoadData>g__LoadAllGraphs|11_0>d:MoveNext() (at Assets/SEE/Game/City/SEEReflexionCity.cs:137)
Cysharp.Threading.Tasks.CompilerServices.AsyncUniTaskVoidMethodBuilder:Start(<<LoadData>g__LoadAllGraphs|11_0>d&) (at Library/PackageCache/com.cysharp.unitask@72e620d169/Runtime/CompilerServices/AsyncUniTaskVoidMethodBuilder.cs:110)
SEE.Game.City.SEEReflexionCity:<LoadData>g__LoadAllGraphs|11_0()
SEE.Game.City.SEEReflexionCity:LoadData() (at Assets/SEE/Game/City/SEEReflexionCity.cs:93)
SEE.Game.City.SEECity:Start() (at Assets/SEE/Game/City/SEECity.cs:137)

The first error two errors that pop up are different: sometimes

NullReferenceException: Object reference not set to an instance of an object
Unity.Netcode.NetworkSceneManager.OnSceneLoaded (System.UInt32 sceneEventId) (at Library/PackageCache/[email protected]/Runtime/SceneManagement/NetworkSceneManager.cs:1371)
Unity.Netcode.SceneEventProgress.<SetAsyncOperation>b__37_0 (UnityEngine.AsyncOperation asyncOp2) (at Library/PackageCache/[email protected]/Runtime/SceneManagement/SceneEventProgress.cs:262)
UnityEngine.AsyncOperation.InvokeCompletionEvent () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/AsyncOperation.cs:21)

and

InvalidOperationException: No process is associated with this object.
System.Diagnostics.Process.EnsureState (System.Diagnostics.Process+State state) (at <d46c5ae75c754461a9c54e6fc90c0279>:0)
System.Diagnostics.Process.get_HasExited () (at <d46c5ae75c754461a9c54e6fc90c0279>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_HasExited()
Crosstales.RTVoice.Provider.VoiceProviderLinux+<getVoices>d__44.MoveNext () (at Assets/Plugins/crosstales/RTVoice/Scripts/Provider/VoiceProviderLinux.cs:440)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17)

and there is one error in between, that also differs:

ArgumentException: An item with the same key has already been added. Key: p1.c1.m1
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <d5d7e7a0664240ee8fa30276b58993c8>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <d5d7e7a0664240ee8fa30276b58993c8>:0)
SEE.Game.GraphElementIDMap.Add (UnityEngine.GameObject gameObject, System.Boolean ignoreDuplicate) (at Assets/SEE/Game/GraphElementIDMap.cs:106)
SEE.Game.GraphRenderer.CreateGameNode (SEE.DataModel.DG.Node node, System.Boolean addToGraphElementIDMap) (at Assets/SEE/Game/NodeRenderer.cs:67)
SEE.Game.GraphRenderer.DrawNode (SEE.DataModel.DG.Node node, UnityEngine.GameObject city) (at Assets/SEE/Game/NodeRenderer.cs:104)
SEE.Game.Evolution.ObjectManager.GetNode (SEE.DataModel.DG.Node node, UnityEngine.GameObject& gameNode) (at Assets/SEE/Game/Evolution/ObjectManager/ObjectManager.cs:166)
SEE.Game.Evolution.EvolutionRenderer.CalculateLayout (SEE.DataModel.DG.Graph graph) (at Assets/SEE/Game/Evolution/EvolutionRendererLayout.cs:96)
SEE.Game.Evolution.EvolutionRenderer+<>c__DisplayClass96_0.<CalculateAllGraphLayouts>b__0 (SEE.DataModel.DG.Graph graph) (at Assets/SEE/Game/Evolution/EvolutionRendererLayout.cs:51)
Sirenix.Utilities.LinqExtensions.ForEach[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Action`1[T] action) (at <d9bc681f70f2426daa493827dfaf804b>:0)
SEE.Game.Evolution.EvolutionRenderer.CalculateAllGraphLayouts (System.Collections.Generic.IList`1[T] graphs) (at Assets/SEE/Game/Evolution/EvolutionRendererLayout.cs:49)
SEE.Game.Evolution.EvolutionRenderer.ShowGraphEvolution () (at Assets/SEE/Game/Evolution/EvolutionRenderer.cs:374)
SEE.Game.City.SEECityEvolution.Start () (at Assets/SEE/Game/City/SEECityEvolution.cs:295)

I cannot consistently reproduce the error, but it happens rather frequently. I have no idea what causes it sometimes and why it doesn't happen on other times, when I did not change anything in between (restarting fixes it).

Operating system: Arch Linux (rolling release) Branch: 599-reflexion-sync-edges-from-implementation-to-architecture Last Master-Commit: 9382ff891bf53efc0aaad27ef69998c25575c327

m4xxed avatar May 25 '23 21:05 m4xxed