Valks-Games/sankari

Delegate 'System.Action<byte>' has some invalid arguments

valkyrienyanko opened this issue · 0 comments

Issue

E 0:01:01:0171   :0 @ System.Object <unknown>.CallSite.Target(System.Runtime.CompilerServices.Closure , System.Runtime.CompilerServices.CallSite , System.Object , System.Object[] ): Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Delegate 'System.Action<byte>' has some invalid arguments
  <C++ Error>    Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
  <C++ Source>   :0 @ System.Object <unknown>.CallSite.Target(System.Runtime.CompilerServices.Closure , System.Runtime.CompilerServices.CallSite , System.Object , System.Object[] )
  <Stack Trace>  :0 @ System.Object <unknown>.CallSite.Target(System.Runtime.CompilerServices.Closure , System.Runtime.CompilerServices.CallSite , System.Object , System.Object[] )
                 :0 @ TRet System.Dynamic.UpdateDelegates.UpdateAndExecute2<T0 , T1 , TRet >(System.Runtime.CompilerServices.CallSite , T0 , T1 )
                 :0 @ void <unknown>.CallSite.Target(System.Runtime.CompilerServices.Closure , System.Runtime.CompilerServices.CallSite , System.Object , System.Object[] )
                 EventManager.cs:79 @ void GodotUtils.EventManager`1.Notify(TEvent , System.Object[] )
                 SPacketGameInfo.cs:130 @ void Sankari.SPacketGameInfo.HandlePlayerJoinLeave()
                 SPacketGameInfo.cs:108 @ void Sankari.SPacketGameInfo+<Handle>d__34.MoveNext()
                 :0 @ void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task )
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task )
                 GodotCommands.cs:38 @ void Sankari.GodotCommands+<Update>d__4.MoveNext()
                 :0 @ void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task )
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task )
                 Net.cs:60 @ void Sankari.Netcode.Net+<Update>d__21.MoveNext()
                 :0 @ void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task )
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task )
                 GameManager.cs:61 @ void Sankari.GameManager+<Update>d__45.MoveNext()
                 :0 @ void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task )
                 :0 @ void System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task )
                 Linker.cs:87 @ void Sankari.Linker+<_Process>d__55.MoveNext()
                 :0 @ void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                 :0 @ void System.Threading.Tasks.Task+<>c.<ThrowAsync>b__128_0(System.Object )
                 GodotSynchronizationContext.cs:51 @ void Godot.GodotSynchronizationContext.ExecutePendingContinuations()
                 GodotTaskScheduler.cs:76 @ void Godot.GodotTaskScheduler.Activate()
                 ScriptManagerBridge.cs:81 @ void Godot.Bridge.ScriptManagerBridge.FrameCallback()

Steps to Reproduce

  1. Have 2 clients running
  2. Stop client B
  3. Stop client A
  4. The error happens on stopping client A. Not sure if this is a consistent error.