Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.4.145.4489] ChatManager reference no longer exists #29

Closed
Qonfused opened this issue Nov 17, 2024 · 0 comments · Fixed by #30
Closed

[3.4.145.4489] ChatManager reference no longer exists #29

Qonfused opened this issue Nov 17, 2024 · 0 comments · Fixed by #30
Assignees
Labels
status:done All issue tasks are completed. type:regression To spot regression issues in the latest version

Comments

@Qonfused
Copy link
Member

Qonfused commented Nov 17, 2024

Since the Thursday patch, ChatManager no longer is exposed in ISessionViewModel:
https://github.com/videre-project/MTGOSDK/actions/runs/11880905409/job/33104607510#step:10:46

  Failed Test_Channels("Main Lobby") [3 s]
  Error Message:
   System.AggregateException : One or more errors occurred. (Rethrown)
  ----> NUnit.Framework.Internal.NUnitException : Rethrown
  ----> System.TypeInitializationException : The type initializer for 'MTGOSDK.API.Chat.ChannelManager' threw an exception.
  ----> System.Exception : Could not dump remote object/type.
  ----> MTGOSDK.Core.Exceptions.RemoteException : Exception of type 'MTGOSDK.Core.Exceptions.RemoteException' was thrown.
  Stack Trace:
     at System.Threading.Tasks.Task`1.get_Result()
   at MTGOSDK.NUnit.Attributes.STACommand.Execute(TestExecutionContext context) in /_/MTGOSDK.Tests/src/NUnit/Attributes/STACommand.cs:line 41
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
--NUnitException
   at NUnit.Framework.Internal.Reflect.InvokeMethod(MethodInfo method, Object fixture, Object[] args)
   at NUnit.Framework.Internal.MethodWrapper.Invoke(Object fixture, Object[] args)
   at MTGOSDK.NUnit.Attributes.CustomAttributeMethodWrapper.Invoke(Object fixture, Object[] args) in /_/MTGOSDK.Tests/src/NUnit/Attributes/CustomAttributeMethodWrapper.cs:line 56
   at NUnit.Framework.Internal.Commands.TestMethodCommand.InvokeTestMethod(TestExecutionContext context, Boolean lastParameterAcceptsCancellationToken)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at MTGOSDK.NUnit.Attributes.STACommand.RunCommand(TestExecutionContext context) in /_/MTGOSDK.Tests/src/NUnit/Attributes/STACommand.cs:line 20
   at MTGOSDK.NUnit.Attributes.RateLimitAttribute.RateLimitCommand.RunCommand(TestExecutionContext context) in /_/MTGOSDK.Tests/src/NUnit/Attributes/RateLimitAttribute.cs:line 34
   at MTGOSDK.NUnit.Attributes.STACommand.<>c__DisplayClass3_0.<Execute>b__0() in /_/MTGOSDK.Tests/src/NUnit/Attributes/STACommand.cs:line 30
--TypeInitializationException
   at MTGOSDK.API.Chat.ChannelManager.GetChannel(String name)
   at MTGOSDK.Tests.MTGOSDK_API.Chat.Test_Channels(String name) in /_/MTGOSDK.Tests/src/Tests/MTGOSDK.API/Chat.cs:line 22
   at InvokeStub_Chat.Test_Channels(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--Exception
   at MTGOSDK.Core.Remoting.RemoteHandle.RemoteObjectsCollection.GetRemoteObjectUncached(UInt64 remoteAddress, String typeName, Nullable`1 hashCode)
   at MTGOSDK.Core.Remoting.RemoteHandle.RemoteObjectsCollection.GetRemoteObject(UInt64 address, String typeName, Nullable`1 hashcode)
   at MTGOSDK.Core.Remoting.RemoteHandle.GetRemoteObject(UInt64 remoteAddress, String typeName, Nullable`1 hashCode)
   at MTGOSDK.Core.Remoting.Interop.RemoteFunctionsInvokeHelper.Invoke(RemoteHandle app, Type declaringType, String funcName, Object obj, String[] genericArgsFullNames, Object[] parameters)
   at MTGOSDK.Core.Remoting.Interop.RemoteFunctionsInvokeHelper.Invoke(RemoteHandle app, Type declaringType, String funcName, Object obj, Type[] genericArgs, Object[] parameters)
   at MTGOSDK.Core.Remoting.Reflection.RemoteMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at MTGOSDK.Core.Remoting.RemoteClient.InvokeMethod(String queryPath, String methodName, Type[] genericTypes, Object[] args)
   at MTGOSDK.API.ObjectProvider.Get(String queryPath, Boolean useCache, Boolean useHeap, Boolean useLazy)
   at MTGOSDK.API.ObjectProvider.<>c__DisplayClass1_0.<Defer>b__0()
   at MTGOSDK.Core.Remoting.Reflection.LazyRemoteObject.<>c__DisplayClass8_0.<Set>b__0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at MTGOSDK.Core.Remoting.Reflection.LazyRemoteObject.get___type()
   at MTGOSDK.Core.Remoting.Types.DynamicRemoteObject.TryGetMember(GetMemberBinder binder, Object& result)
   at CallSite.Target(Closure, CallSite, Object)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at ActLike_IShellViewModel_19637105ae4947ed82c0b4bb685aab8c.get_ChatManager()
   at MTGOSDK.API.Chat.ChannelManager..cctor()
--RemoteException
   at ScubaDiver.Diver.QuickError(String error, String stackTrace)
   at ScubaDiver.Diver.MakeObjectResponse(HttpListenerRequest arg)
   at ScubaDiver.Diver.HandleDispatchedRequest(HttpListenerContext requestContext)
   at ScubaDiver.Diver.<Dispatcher>g__ListenerCallback|10_0(IAsyncResult result)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.ListenerAsyncResult.IOCompleted(ListenerAsyncResult asyncResult, UInt32 errorCode, UInt32 numBytes)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

--- End of remote exception stack trace ---
   at MTGOSDK.Core.Remoting.Interop.DiverCommunicator.SendRequest(String path, Dictionary`2 queryParams, String jsonBody)
   at MTGOSDK.Core.Remoting.Interop.DiverCommunicator.DumpObject(UInt64 address, String typeName, Boolean pinObject, Nullable`1 hashcode)
   at MTGOSDK.Core.Remoting.RemoteHandle.RemoteObjectsCollection.GetRemoteObjectUncached(UInt64 remoteAddress, String typeName, Nullable`1 hashCode)

  Standard Output Messages:
 ----------------------- MTGOSDK.Tests.MTGOSDK_API.Chat.Test_Channels("Main Lobby"):
 ----------------------- 
@Qonfused Qonfused added status:in-progress Implementation is in progress. type:regression To spot regression issues in the latest version labels Nov 17, 2024
@Qonfused Qonfused self-assigned this Nov 17, 2024
@Qonfused Qonfused linked a pull request Nov 18, 2024 that will close this issue
@Qonfused Qonfused added status:done All issue tasks are completed. and removed status:in-progress Implementation is in progress. labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:done All issue tasks are completed. type:regression To spot regression issues in the latest version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant