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

Audio server failed to start #3405

Open
mickeymarse opened this issue Jun 30, 2024 · 2 comments
Open

Audio server failed to start #3405

mickeymarse opened this issue Jun 30, 2024 · 2 comments

Comments

@mickeymarse
Copy link

I have installed Sonic Pi version 4.5.1 via Flatpak (flathub) on my Linux Mint machine and, as I try to run is, I encounter this error (which seems a variation on an error many people are encountering lately):

Sorry, the Audio Server failed to start...
Please try changing your default OS audio input & outputs.
Note, the audio rate of the inputs & outputs must be the same.
For the curious among you, Sonic Pi uses the SuperCollider Audio Server to generate its sounds. By default it will connect to your default system audio input and outputs.
Unfortunately SuperCollider is having problems starting correctly. You can read the full error log below which should explain why.
To fix this you can try changing your default operating system audio inputs and outputs (ensuring they have the same audio rate).
Advanced Users - you may manually override this and further configure how SuperCollider boots by editing the file: /home/moka/.sonic-pi/config/audio-settings.toml
SuperCollider Log
Found 0 LADSPA plugins

Happy to share the logs.

daemon.log
[2024-06-30 15:41:08] Welcome to the Daemon Booter
[2024-06-30 15:41:08] ----------------------------
[2024-06-30 15:41:08] SuperCollider inputs disabled by GUI
[2024-06-30 15:41:08] checked port 30255, #
[2024-06-30 15:41:08] checked port 30256, #
[2024-06-30 15:41:08] checked port 30257, #
[2024-06-30 15:41:08] checked port 4560, #
[2024-06-30 15:41:08] checked port 30258, #
[2024-06-30 15:41:08] checked port 30259, #
[2024-06-30 15:41:08] checked port 30260, #
[2024-06-30 15:41:08] checked port 30261, #
[2024-06-30 15:41:08] checked port 30262, #
[2024-06-30 15:41:08] Selected ports: 
[2024-06-30 15:41:08] {"spider-listen-to-gui"=>30255, "gui-send-to-spider"=>30255, "gui-listen-to-spider"=>30256, "spider-send-to-gui"=>30256, "scsynth"=>30257, "scsynth-send"=>30257, "osc-cues"=>4560, "tau"=>30258, "spider"=>30259, "phx"=>30260, "daemon"=>30261, "spider-listen-to-tau"=>30262}
[2024-06-30 15:41:08] Booting Scsynth
[2024-06-30 15:41:08] ---- Audio Config Issue ----
[2024-06-30 15:41:08] Could not find /home/moka/.sonic-pi/config/audio-settings.toml - reverting to default audio options.
[2024-06-30 15:41:08] This is not critical - reverting to default audio options
[2024-06-30 15:41:08] ----------------------------
[2024-06-30 15:41:08] Got Audio Settings toml hash: {}
[2024-06-30 15:41:08] Unified Audio Settings toml hash: {}
[2024-06-30 15:41:08] Combined Audio Settings toml hash with GUI scsynth inputs hash: {"-i"=>"0"}
[2024-06-30 15:41:08] Merged Audio Settings toml hash: {"-u"=>30257, "-a"=>"1024", "-m"=>"131072", "-D"=>"0", "-R"=>"0", "-l"=>"1", "-i"=>"0", "-o"=>"16", "-b"=>"4096", "-B"=>"127.0.0.1"}
[2024-06-30 15:41:08] Using default pipewire buffsize of: 1024
[2024-06-30 15:41:08] Using default pipewire samplerate of: 48000
[2024-06-30 15:41:08] Starting scsynth with LD_LIBRARY_PATH set to "" so it uses pipewire's jack
[2024-06-30 15:41:08] No need to start Jackd, using pipewire instead
[2024-06-30 15:41:08] Process Booter - booting scsynth with args ["-u", "30257", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1"]
[2024-06-30 15:41:08] scsynth -u 30257 -a 1024 -m 131072 -D 0 -R 0 -l 1 -i 0 -o 16 -b 4096 -B 127.0.0.1
[2024-06-30 15:41:08] Waiting for the SuperCollider Server to have booted...
[2024-06-30 15:41:08] Sending /status to server: localhost:30257
[2024-06-30 15:41:08] [scsynth] Found 0 LADSPA plugins
[2024-06-30 15:41:09] Sending /status to server: localhost:30257
[2024-06-30 15:41:10] Sending /status to server: localhost:30257
[2024-06-30 15:41:11] Sending /status to server: localhost:30257
[2024-06-30 15:41:12] Sending /status to server: localhost:30257
[2024-06-30 15:41:13] Sending /status to server: localhost:30257
[2024-06-30 15:41:14] Sending /status to server: localhost:30257
[2024-06-30 15:41:15] Sending /status to server: localhost:30257
[2024-06-30 15:41:16] Sending /status to server: localhost:30257
[2024-06-30 15:41:17] Sending /status to server: localhost:30257
[2024-06-30 15:41:18] Sending /status to server: localhost:30257
[2024-06-30 15:41:19] Sending /status to server: localhost:30257
[2024-06-30 15:41:20] Sending /status to server: localhost:30257
[2024-06-30 15:41:21] Sending /status to server: localhost:30257
[2024-06-30 15:41:22] Sending /status to server: localhost:30257
[2024-06-30 15:41:23] Sending /status to server: localhost:30257
[2024-06-30 15:41:24] Sending /status to server: localhost:30257
[2024-06-30 15:41:25] Sending /status to server: localhost:30257
[2024-06-30 15:41:26] Sending /status to server: localhost:30257
[2024-06-30 15:41:27] Sending /status to server: localhost:30257
[2024-06-30 15:41:28] Sending /status to server: localhost:30257
[2024-06-30 15:41:29] Sending /status to server: localhost:30257
[2024-06-30 15:41:30] Sending /status to server: localhost:30257
[2024-06-30 15:41:31] Sending /status to server: localhost:30257
[2024-06-30 15:41:32] Sending /status to server: localhost:30257
[2024-06-30 15:41:33] Sending /status to server: localhost:30257
[2024-06-30 15:41:34] Sending /status to server: localhost:30257
[2024-06-30 15:41:35] Sending /status to server: localhost:30257
[2024-06-30 15:41:36] Sending /status to server: localhost:30257
[2024-06-30 15:41:37] Sending /status to server: localhost:30257
[2024-06-30 15:41:38] Unable to connect to SuperCollider Audio Server (Promise timed out after 30 seconds.).
[2024-06-30 15:41:38] Extracting Scsynth info
[2024-06-30 15:41:38] sending ERROR to gui
[2024-06-30 15:41:38] Daemon Booter is now exiting.
[2024-06-30 15:41:38] Cleaning up any running processes...
[2024-06-30 15:41:38] Process Booter - killing scsynth with pid 25 and args ["-u", "30257", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1"], wait_thr status: #, sleep
[2024-06-30 15:41:38] Sending TERM kill command to 25
[2024-06-30 15:41:38] Process 25 still running, waiting for it to finish... [5]
[2024-06-30 15:41:39] Process 25 terminated
[2024-06-30 15:41:39] Daemon Booter - Over and Out.
gui.log
[API] [INFO ] : Starting...
[API] [INFO ] : Log Path: /home/moka/.sonic-pi/log
[API] [INFO ] : Launching Sonic Pi Boot Daemon:
[API] [INFO ] : Args: ruby /app/app/server/ruby/bin/daemon.rb --no-scsynth-inputs 
[API] [INFO ] : Started...
[API] [INFO ] : Reading Boot Daemon output...
[API] [ERROR] : SuperCollider Audio Server boot error detected
[API] [INFO ] : Attempting to start Boot Daemon failed....
[GUI] - API Scsynth Boot Failed
[GUI] - Error dialog OK button clicked
[GUI] - Aborting. Sorry about this.
scsynth.log
Found 0 LADSPA plugins
@idommason
Copy link

Hi

I think this is because, by default with Mint, you are not a member of the audio group

and I would also recommend installing wireplumber

If you read my post about building sonic-pi 4.50 on Mint it explains a lot of the issues where you have to tweak Mint, by doing things like disabling pulseaudio and making pipewire your default sound server, and doing those things might sort your problems out.

#3396

@mickeymarse
Copy link
Author

Oh, I missed that. Thank you very much for sharing. I will give it a go and report back to you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants