[BUG] Does not work on Godot 3 unless UnityNamedPipe is used
See original GitHub issueDescribe the bug DiscordRpcClient fails to connect in Godot normally without using UnityNamedPipe
Log output:
INFO: Attempting a new connection
INFO: RPC Connection Started
TRCE: ============================
TRCE: Assembly: DiscordRPC, Version=1.0.150.0, Culture=neutral, PublicKeyToken=null
TRCE: Enqueue Command: DiscordRPC.RPC.Commands.PresenceCommand
TRCE: Pipe: DiscordRPC.IO.ManagedNamedPipeClient
TRCE: Platform: Microsoft Windows NT 6.2.9200.0
TRCE: applicationID: 752376874339926187
TRCE: targetPipe: -1
TRCE: POLL_RATE: 1000
TRCE: _maxRtQueueSize: 512
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
ERR : Failed connection to discord-ipc-0. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 1 ()
INFO: Attempting to connect to discord-ipc-1
ERR : Failed connection to discord-ipc-1. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 2 ()
INFO: Attempting to connect to discord-ipc-2
ERR : Failed connection to discord-ipc-2. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 3 ()
INFO: Attempting to connect to discord-ipc-3
ERR : Failed connection to discord-ipc-3. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 4 ()
INFO: Attempting to connect to discord-ipc-4
ERR : Failed connection to discord-ipc-4. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 5 ()
INFO: Attempting to connect to discord-ipc-5
ERR : Failed connection to discord-ipc-5. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 6 ()
INFO: Attempting to connect to discord-ipc-6
ERR : Failed connection to discord-ipc-6. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 7 ()
INFO: Attempting to connect to discord-ipc-7
ERR : Failed connection to discord-ipc-7. The operation has timed out.
WARN: Tried to close a already closed pipe.
TRCE: Done. Result: True
TRCE: Skipping sandbox connection.
TRCE: Connection Attempt 8 ()
INFO: Attempting to connect to discord-ipc-8
ERR : Failed connection to discord-ipc-8. Thread was being aborted.
WARN: Tried to close a already closed pipe.
ERR : Unhandled Exception: System.Threading.ThreadAbortException
ERR : Thread was being aborted.
ERR : at DiscordRPC.IO.ManagedNamedPipeClient.AttemptConnection (System.Int32 pipe, System.Boolean isSandbox) [0x00168] in <be27f5d1995a470d9db1a68b5833f77c>:0
at DiscordRPC.IO.ManagedNamedPipeClient.Connect (System.Int32 pipe) [0x00059] in <be27f5d1995a470d9db1a68b5833f77c>:0
at DiscordRPC.RPC.RpcConnection.MainLoop () [0x001ee] in <be27f5d1995a470d9db1a68b5833f77c>:0
To Reproduce Steps to reproduce the behavior:
- Create an empty Node2D Scene
- Attach a C# script
- Initialize DiscordRpcClient somewhere in the script
Desktop (please complete the following information):
- OS: Windows 10 2004
- Framework: .NET Framework 4.7.2
- Version: 1.0.150
Additional context Godot 3.2.3 Mono RC; Haven’t tried in 3.2.2 but I think its the same case.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Why does my code not work even when I'm following ...
I type it like the documentation/tutorial says and it says I have a problem. I then try to add code to get rid...
Read more >button not responding to mouse
I have a button in my scene, it is set to the stop mode for the mouse filter (idk what ... is happening...
Read more >An error occurred today and I didn't do anything except for ...
I receive the same error message since upgrading to Godot 3.2.3. Strangely I get the error when starting up Godot, not related to...
Read more >what is wrong with this argument
1 Answer. by putting an underscore ahead of body it should remove the error. I actually found the tutorials on the godot engine...
Read more >XYZ is declared but never used in the script - Oh my, how ...
I am having problems with my singletons, which creates a var, but in that script, it does not adds nothing to it, but...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

lol nice
Hmm this might be a Mono Bug. So it works fine when using the UnityNamedPipe and the native dll with it? If so, then it might be wise to rename that class to MonoNamedPipe instead.