Skip to content

Socket -14 created // Failed to create socket: -14 #12

@trwnh

Description

@trwnh

Describe the bug
The pipe appears to be created successfully, but the socket always fails

To Reproduce

  1. Run WINEPREFIX=/home/a/.local/share/wineprefixes/foobar2000/ wine bridge.exe
  2. Click "Install"
  3. Launch foobar2000
  4. Launch discord
  5. Ensure that the foo_discord_rich component is installed (v2.0.2 as of this writing)
  6. Play a track in foobar2000

Log File

Running as service
Starting service
Service started
Pipe \\.\pipe\discord-ipc-0(0x74) created
Waiting for pipe connection
Pipe connected
Socket -14 created
Failed to create socket: -14

Device (please complete the following information):

  • Arch Linux (Linux desktop 6.13.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000 x86_64 GNU/Linux)
  • Wine 10.3

Context

Probably happening somewhere here?

rpc-bridge/bridge.c

Lines 547 to 559 in 9d2440f

int fd;
if (IsLinux)
{
unsigned long socketArgs[] = {
(unsigned long)AF_UNIX,
(unsigned long)SOCK_STREAM,
0};
fd = sys_socketcall(SYS_SOCKET, socketArgs);
}
else
fd = sys_socket(AF_UNIX, SOCK_STREAM, 0);
print("Socket %d created\n", fd);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions