discord-rpc-csharp icon indicating copy to clipboard operation
discord-rpc-csharp copied to clipboard

Newtonsoft JSON fails to initalize:

Open ghost opened this issue 5 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

ERR : Unhandled Exception: System.TypeInitializationException
ERR : The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception.
ERR :   at Newtonsoft.Json.JsonTextWriter..ctor (System.IO.TextWriter textWriter) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 
  at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00015] in <2676a2da6edc420e890ed28aa4572ee5>:0 
  at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00007] in <2676a2da6edc420e890ed28aa4572ee5>:0 
  at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 
  at DiscordRPC.IO.PipeFrame.SetObject (System.Object obj) [0x00000] in <be27f5d1995a470d9db1a68b5833f77c>:0 
  at DiscordRPC.IO.PipeFrame..ctor (DiscordRPC.IO.Opcode opcode, System.Object data) [0x0000e] in <be27f5d1995a470d9db1a68b5833f77c>:0 
  at DiscordRPC.RPC.RpcConnection.EstablishHandshake () [0x0006e] in <be27f5d1995a470d9db1a68b5833f77c>:0 
  at DiscordRPC.RPC.RpcConnection.MainLoop () [0x00236] in <be27f5d1995a470d9db1a68b5833f77c>:0 

Using Unity WITHOUT NativeNamedPipes because DLLImport isn't finding it.

ghost avatar Sep 05 '20 19:09 ghost

Possibly related to Lachee/discord-rpc-unity#6 ?

Lachee avatar Sep 09 '20 16:09 Lachee