-
-
Notifications
You must be signed in to change notification settings - Fork 98
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] Discord is crashing when attempting to authenticate #203
Comments
Using better discord I was able to get the following log as it crashed. Hope this helps: |
|
It is a discord update. This worked in 1.0.9004 and below, I never tried on 1.0.9005 and now it crashes on 1.09006. |
This issue can close. The crashing was an issue on my end. However there is an issue with the WebClient in ExchangeCode function. Discord recently updated to use TLS 1.2 security protocol, so you just need to update the SecurityProtocolType to Tls12. In order to do this I also had to port the project over to the .net 4.5 framework. |
Yeah I have dropped support already on master for .NET Framework (master is .NET Standard 2.0*). What line / file you have to port specifically so I can look into those (feel free for a PR too :3) *I know .NET Standard 2.0 is depreciated but I still need to look into Unity 2018 support for .NET Standard 2.1 and Godots support |
In RpcConnection.cs around line 970, inside the ExchangeCode function and just under the validation check I added the following: However SecurityProtocolType of Tls12 is not available in net 3.5 and the rest of my project doesn't work with net 2.0 so I just switched the whole project over to .net 4.5 |
Describe the bug
After updating to v1.0.9006 Discord is crashing when my app is authenticating. The window that used to pop up and allow me to click the "Authorize" button is no longer there. Instead, discord crashes and says it was awkward.
To Reproduce
Authenticate application
Expected behavior
Would expect the authentication window to appear, allowing me to click the authorize button, which in turn will fire the OnAuthenticated event.
Desktop (please complete the following information):
Logs
INFO: Attempting a new connection
INFO: RPC Connection Started
TRCE: ============================
TRCE: Assembly: DiscordRPC, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
TRCE: Pipe: DiscordRPC.IO.ManagedNamedPipeClient
TRCE: Platform: Microsoft Windows NT 6.2.9200.0
TRCE: applicationID: 800373225032777738
TRCE: targetPipe: -1
TRCE: POLL_RATE: 750
TRCE: _maxRtQueueSize: 4096
TRCE: _maxRxQueueSize: 0
TRCE: ============================
TRCE: Connecting to the pipe through the DiscordRPC.IO.ManagedNamedPipeClient
TRCE: ManagedNamedPipeClient.Connection(-1)
TRCE: Connection Attempt 0 ()
INFO: Attempting to connect to discord-ipc-0
TRCE: Waiting for connection...
TRCE: Setting the auth state to WAITING_FOR_USER
TRCE: Enqueue Command: DiscordRPC.RPC.Commands.AuthorizeCommand
TRCE: Enqueue Command: DiscordRPC.RPC.Commands.PresenceCommand
INFO: Connected to discord-ipc-0
TRCE: Done. Result: False
TRCE: Begining Read of 16384 bytes
TRCE: Connected to the pipe. Attempting to establish handshake...
TRCE: Enqueued Message, but queue size is 0.1:29:59 PM
TRCE: Attempting to establish a handshake...
TRCE: Sending Handshake...
TRCE: Setting the connection state to CONNECTING
TRCE: Connection Established. Starting reading loop...
INFO: Checking command queue
TRCE: Ending Read
TRCE: Read 344 bytes
TRCE: Read a frame: Frame
TRCE: Starting another read
TRCE: Begining Read of 16384 bytes
TRCE: Read Payload: Frame
INFO: Handling Response. Cmd: Dispatch, Event: Ready
INFO: Connection established with the RPC
TRCE: Setting the connection state to CONNECTED
TRCE: Enqueued Message, but queue size is 0.1:30:01 PM
INFO: Checking command queue
TRCE: Attempting to send payload: Authorize
TRCE: Sending payload: Authorize
TRCE: Sent Successfully.
TRCE: Attempting to send payload: SetActivity
TRCE: Sending payload: SetActivity
TRCE: Sent Successfully.
TRCE: Ending Read
TRCE: Read 150 bytes
TRCE: Read a frame: Frame
TRCE: Starting another read
TRCE: Begining Read of 16384 bytes
TRCE: Read Payload: Frame
INFO: Handling Response. Cmd: SetActivity, Event:
TRCE: Enqueued Message, but queue size is 0.1:30:01 PM
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
TRCE: Ending Read
TRCE: Read 0 bytes
WARN: Empty frame was read. Please send report to Lachee.
TRCE: Starting another read
TRCE: Begining Read of 16384 bytes
TRCE: Ending Read
TRCE: Left main read loop for some reason. Aborting: False, Shutting Down: False
TRCE: Waiting 1095ms before attempting to connect again
TRCE: Setting the connection state to DISCONNECTED
TRCE: Connecting to the pipe through the DiscordRPC.IO.ManagedNamedPipeClient
TRCE: ManagedNamedPipeClient.Connection(-1)
TRCE: Connection Attempt 0 ()
INFO: Attempting to connect to discord-ipc-0
TRCE: Waiting for connection...
INFO: Connected to discord-ipc-0
TRCE: Done. Result: False
TRCE: Begining Read of 16384 bytes
TRCE: Connected to the pipe. Attempting to establish handshake...
TRCE: Enqueued Message, but queue size is 0.1:30:06 PM
TRCE: Attempting to establish a handshake...
TRCE: Sending Handshake...
TRCE: Setting the connection state to CONNECTING
TRCE: Connection Established. Starting reading loop...
INFO: Checking command queue
INFO: Checking command queue
TRCE: Ending Read
TRCE: Read 319 bytes
TRCE: Read a frame: Frame
TRCE: Starting another read
TRCE: Begining Read of 16384 bytes
TRCE: Read Payload: Frame
INFO: Handling Response. Cmd: Dispatch, Event: Ready
INFO: Connection established with the RPC
TRCE: Setting the connection state to CONNECTED
TRCE: Enqueued Message, but queue size is 0.1:30:07 PM
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
INFO: Checking command queue
The text was updated successfully, but these errors were encountered: