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

[BUG] 3 errors when implementing Logger #136

Open
youknowedo opened this issue Mar 29, 2021 · 0 comments
Open

[BUG] 3 errors when implementing Logger #136

youknowedo opened this issue Mar 29, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@youknowedo
Copy link
Contributor

Describe the bug
Don't know if the ILogger is your work or not but when I copied your code into my own I got three errors from it. Rich Presence was working fine both before and after the Logger implementation but it still throws these errors:

<IPC> Unhandled Exception: System.Threading.ThreadAbortException
UnityEngine.Debug:LogError (object)
DiscordRPC.Unity.UnityLogger:Error (string,object[]) (at Assets/Discord RPC/Scripts/Control/UnityLogger.cs:34)
DiscordRPC.RPC.RpcConnection:MainLoop ()
System.Threading.ThreadHelper:ThreadStart ()
<IPC> 
UnityEngine.Debug:LogError (object)
DiscordRPC.Unity.UnityLogger:Error (string,object[]) (at Assets/Discord RPC/Scripts/Control/UnityLogger.cs:34)
DiscordRPC.RPC.RpcConnection:MainLoop ()
System.Threading.ThreadHelper:ThreadStart ()
<IPC>   at (wrapper managed-to-native) System.Threading.WaitHandle.Wait_internal(intptr*,int,bool,int)
  at System.Threading.WaitHandle.WaitOneNative (System.Runtime.InteropServices.SafeHandle waitableSafeHandle, System.UInt32 millisecondsTimeout, System.Boolean hasThreadAffinity, System.Boolean exitContext) [0x00019] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.WaitHandle.InternalWaitOne (System.Runtime.InteropServices.SafeHandle waitableSafeHandle, System.Int64 millisecondsTimeout, System.Boolean hasThreadAffinity, System.Boolean exitContext) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.WaitHandle.WaitOne (System.Int64 timeout, System.Boolean exitContext) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.WaitHandle.WaitOne (System.Int32 millisecondsTimeout, System.Boolean exitContext) [0x00019] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Threading.WaitHandle.WaitOne (System.Int32 millisecondsTimeout) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at DiscordRPC.RPC.RpcConnection.MainLoop () [0x004a2] in <3d5974ee23484939992859c5cc569e99>:0 
UnityEngine.Debug:LogError (object)
DiscordRPC.Unity.UnityLogger:Error (string,object[]) (at Assets/Discord RPC/Scripts/Control/UnityLogger.cs:34)
DiscordRPC.RPC.RpcConnection:MainLoop ()
System.Threading.ThreadHelper:ThreadStart ()

Code
https://pastebin.com/rTbub8Xp

Expected behavior
I guess not spitting out errors and actually log Rich Presence

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: Latest
  • Unity: 2020.3.0f1

Additional context
idk..

@youknowedo youknowedo added the bug Something isn't working label Mar 29, 2021
@Lachee Lachee self-assigned this Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants