sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.77k stars 922 forks source link

Sonic Pi boot error on Pi 3 #2137

Closed Botspot closed 2 years ago

Botspot commented 5 years ago

Running plugwash's compilation of v3.0.1, see here: https://www.raspberrypi.org/forums/viewtopic.php?t=246172

`Sonic Pi Boot Error Report

System Information

GUI Log

/home/pi/.sonic-pi/log/gui.log

[GUI] - Detecting port numbers...
[GUI] - GUI OSC listen port 4558
[GUI] -    port: 4558 [OK]
[GUI] - Server OSC listen port 4557
[GUI] -    port: 4557 [OK]
[GUI] - Server incoming OSC cues port 4559
[GUI] -    port: 4559 [OK]
[GUI] - Scsynth port 4556
[GUI] -    port: 4556 [OK]
[GUI] - Server OSC out port 4558
[GUI] - GUI OSC out port 4557
[GUI] - Scsynth send port 4556
[GUI] - Erlang router port 4560
[GUI] -    port: 4560 [OK]
[GUI] - OSC MIDI out port 4561
[GUI] -    port: 4561 [OK]
[GUI] - OSC MIDI in port 4562
[GUI] -    port: 4562 [OK]
[GUI] - Init script completed
[GUI] - using default editor colours
[GUI] - launching Sonic Pi Server:
[GUI] - starting UDP OSC Server on port 4558...
[GUI] - UDP OSC Server ready and listening
[GUI] - Ruby server pid registered: 20853
[GUI] - waiting for Sonic Pi Server to boot...
............................................................
[GUI] - Critical error! Could not boot Sonic Pi Server.
[GUI] - stopping UDP OSC Server...
[GUI] - UDP OSC Server no longer listening

Server Errors

/home/pi/.sonic-pi/log/server-errors.log

Failed to load the fast_osc c-extension, falling back to pure Ruby version
Overriding fast_osc c-extension FastOsc::decode_single_message, falling back to pure Ruby version
control open "hw:0" (No such file or directory)
control open "hw:0" (No such file or directory)
control open "hw:0" (No such file or directory)
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
control open "hw:0" (No such file or directory)
control open "hw:0" (No such file or directory)
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server
ruby: No such file or directory -- /usr/app/server/ruby/bin/task-register.rb (LoadError)
ruby: No such file or directory -- /usr/app/server/ruby/bin/task-register.rb (LoadError)
ruby: No such file or directory -- /usr/app/server/ruby/bin/task-register.rb (LoadError)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
control open "hw:0" (No such file or directory)
control open "hw:0" (No such file or directory)
control open "hw:0" (No such file or directory)
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
JackTemporaryException : now quits...
control open "hw:0" (No such file or directory)
control open "hw:0" (No such file or directory)
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
terminate called without an active exception

Server Output

/home/pi/.sonic-pi/log/server-output.log

Sonic Pi server booting...
Using protocol: udp
Detecting port numbers...
Send port: 4558
Listen port: 4557
  - OK
Scsynth port: 4556
  - OK
Scsynth send port: 4556
  - OK
OSC cues port: 4559
  - OK
Erlang port: 4560
  - OK
OSC MIDI out port: 4561
  - OK
OSC MIDI in port: 4562
  - OK
Booting server...

Booting Sonic Pi
----------------

Booting on Raspberry Pi
Jackd not running on system. Starting...
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
creating alsa driver ... hw:0|hw:0|2048|3|44100|0|2|nomon|swmeter|-|32bit
Boot - Starting the SuperCollider server...
Boot - scsynth -u 4556 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 2 -o 2 -z 128 -c 128 -U /usr/lib/SuperCollider/plugins:/usr/app/server/native/extra-ugens/ -b 4096 -B 127.0.0.1

Scsynth Output

/home/pi/.sonic-pi/log/scsynth.log

# Starting SuperCollider 2019-09-13 20:26:16
Found 0 LADSPA plugins
*** ERROR: open directory failed '/usr/app/server/native/extra-ugens/': No such file or directory
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
could not initialize audio.

Process Log

/home/pi/.sonic-pi/log/processes.log


Clearing pids: []
No pids to clear :-)
Started [19014] [-] ruby -E utf-8 /opt/sonic-pi/app/gui/qt/../../../app/server/bin/sonic-pi-server.rb -u 4557 4558 4556 4556 4559 4560 4561 4562 [-] /tmp/sonic-pi-pids/19014
Started [19086] [-] sh [-] /tmp/sonic-pi-pids/19086
Started [19086] [-] sh [-] /tmp/sonic-pi-pids/19086
Started [19143] [-] scsynth -u 4556 -a 1024 -m 131072 -D 0 -R 0 -l 1 -z 128 -c 128 -U /usr/lib/SuperCollider/plugins:/opt/sonic-pi/app/server/native/raspberry/extra-ugens/ -i 2 -o 2 -b 4096 [-] /tmp/sonic-pi-pids/19143
Started [19214] [-] sh -c erl -pz "/opt/sonic-pi/app/server/erlang" -s pi_server start 4560 [-] /tmp/sonic-pi-pids/19214
Started [19268] [-] sh -c '/opt/sonic-pi/app/server/native/raspberry/osmid/o2m' -b -i 4561 -O 4562 -m 6 [-] /tmp/sonic-pi-pids/19268
Started [19299] [-] sh -c '/opt/sonic-pi/app/server/native/raspberry/osmid/m2o' -b -o 4562 -m 6 'Sonic Pi' [-] /tmp/sonic-pi-pids/19299

`

ethancrawford commented 4 years ago

Hi @Botspot,

It's worth trying out a more recent version of Sonic Pi to see if that works for you. Robin has very kindly put together a deb of v3.2.1 - see if that works for you. Details are at https://in-thread.sonic-pi.net/t/sonic-pi-3-2-1-released-for-mac-pc-and-raspberry-pi/3566 - it would be good if you can carry on the conversation over there if you still have any issues.

monojk commented 3 years ago

I am also experiencing boot errors on Raspian Buster. Therefore uninstalled the old and installed 3.2.1_3 but I am still getting boot errors: Linux rp3b 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux

gui.log processes.log scsynth.log server-errors.log server-output.log

samaaron commented 3 years ago

Hi @monojk - the latest release of Sonic Pi is v3.3.1 (https://github.com/sonic-pi-net/sonic-pi/releases/tag/v3.3.1).

Also you'll need a recent Raspberry Pi OS to run it though (January 11th 2021).

If you're, still having issues and have a spare SD card, we recommend trying with a fresh Raspberry Pi OS image.

monojk commented 3 years ago

Hi @samaaron - the v3.3.1 worked for me now. Thanks!

samaaron commented 3 years ago

@monojk - that's great news! Have a lot of fun on your live coding adventure :-)