r/supercollider • • Sep 16 '21

ERROR: failed to open UDP socket: address in use.

Post image
1 Upvotes

8 comments sorted by

1

u/Perrin_Barclay Sep 16 '21

*** ERROR: failed to open UDP socket: address in use.

This could be because another instance of scsynth is already using it.

You can use SuperCollider (sclang) to kill all running servers by running `Server.killAll`.

You can also kill scsynth using a terminal or your operating system's task manager.

Server 'localhost' exited with exit code -1073740791.

I am at my wits end with sc. I have uninstalled it, installed older versions, run the sclang from the command line, run it from inside the wsl2 on ubuntu. Nothing works. It used to work perfectly but then I have no idea why it just stopped working. Leaving me with an unresponsive server every time I try and use it.

3

u/albertojgomez Sep 16 '21 edited Sep 16 '21

Does this happen every time you open it? even after restarting your computer?

The reason this is happening is because there is already an instance of scsynth (the part of supercollider that makes the sound and other things, also known as the server) running on your laptop.

I see you are running windows, can you check if there is some process called "scsynth" in task manager and try to kill manually?

EDIT: Also I feel you when you say "I am at my wits end with sc." It can be really frustrating and sometimes one seems to be spending more time dealing with technical issues than making nice sounds. If you manage to power through it can be very rewarding, but it might not be the best tool for you, consider that too

1

u/Perrin_Barclay Sep 17 '21

Every time! I open sc and pretty much do all the usual s.boot, or Server.killAll then try it again. My 'wits end' was just me at breaking point with this software after trying and failing to get it work for a whole day... I am calmer today after a good nights sleep and see if I can get it working again.

1

u/greyk47 Sep 17 '21

Have you tried doing the things the error message mentions, like Server.killAll?

1

u/Perrin_Barclay Sep 17 '21

from the within the ide and sclang just for good measure. I even installed it on ubuntu and ran it from the wsl just to see if it was a windows thing.

1

u/greyk47 Sep 17 '21

Have you tried to find whatever process is running on that port? I know how to do it in Linux, not sure about windows.

1

u/Perrin_Barclay Sep 18 '21

I GOT IT WORKING !!!!!!!

I have no idea why it has started working. I just did everything that I had done before.... maybe sc just needed to test me... maybe it was the 50th time I of Server.killall. I don't know, but I won't question it.