sonic-pi
sonic-pi copied to clipboard
launch issue on rapsbian
I just tried open up sonicpi on a newly installed copy of raspbian but it did not launch and I got this message.
Sonic Pi Boot Error Report
System Information
- Sonic Pi version: 3.2.2
- OS: Debian GNU/Linux 11 (bullseye)
GUI Log
/home/tom/.sonic-pi/log/gui.log
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -
[GUI] - {5b42f932-0bce-469a-878d-de0d6c00539c}
[GUI] - Discovering port numbers...
[GUI] - Port entry server-listen-to-gui : 51235 : 51235
[GUI] - Port entry gui-send-to-server : 51235 : 51235
[GUI] - Port entry gui-listen-to-server : 51236 : 51236
[GUI] - Port entry server-send-to-gui : 51236 : 51236
[GUI] - Port entry scsynth : 51237 : 51237
[GUI] - Port entry scsynth-send : 51237 : 51237
[GUI] - Port entry osc-midi-out : 51238 : 51238
[GUI] - Port entry osc-midi-in : 51239 : 51239
[GUI] - Port entry server-osc-cues : 4560 : 4560
[GUI] - Port entry erlang-router : 51240 : 51240
[GUI] - Port entry websocket : 51241 : 51241
[GUI] - Detecting port numbers...
[GUI] - GUI listen to server port 51236
[GUI] - port: 51236 [OK]
[GUI] - Server listen to gui port 51235
[GUI] - port: 51235 [OK]
[GUI] - Server incoming OSC cues port 4560
[GUI] - port: 4560 [OK]
[GUI] - Scsynth port 51237
[GUI] - port: 51237 [OK]
[GUI] - Server send to GUI port 51236
[GUI] - port: 51236 [OK]
[GUI] - GUI send to server port 51235
[GUI] - port: 51235 [OK]
[GUI] - Scsynth send port 51237
[GUI] - port: 51237 [OK]
[GUI] - Erlang router port 51240
[GUI] - port: 51240 [OK]
[GUI] - OSC MIDI out port 51238
[GUI] - port: 51238 [OK]
[GUI] - OSC MIDI in port 51239
[GUI] - port: 51239 [OK]
[GUI] - Websocket port 51241
[GUI] - port: 51241 [OK]
[GUI] - All ports OK
[GUI] - launching Sonic Pi Runtime Server:
[GUI] - Ruby server pid registered: 14841
[GUI] - hiding main window
[GUI] - initialising toolbar icons
[GUI] - setting up window structure
[GUI] - restoring scope states
[GUI] - creating status bar
[GUI] - creating info panel
[GUI] - creating shortcuts
[GUI] - creating tool bar
[GUI] - initialising documentation window
[GUI] - wait for sync
[GUI] - waiting for Sonic Pi Server to boot...
[GUI] - starting UDP OSC Server on port 51236...
[GUI] - UDP OSC Server ready and listening
................................
[GUI] - Sonic Pi Server failed to start with this error message:
> Server Exception:
Boot - Unable to connect to SuperCollider
["/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:267:in `boot_and_wait'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:443:in `boot_server_linux'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:151:in `boot'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:37:in `initialize'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/server.rb:78:in `new'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/server.rb:78:in `initialize'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/studio.rb:192:in `new'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/studio.rb:192:in `init_scsynth'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/studio.rb:57:in `initialize'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `new'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `block (2 levels) in included'", "/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/lang/ixi.rb:72:in `block (2 levels) in included'", "/usr/lib/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb:302:in `new'", "/usr/lib/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb:302:in `<main>'"]
[GUI] - UDP OSC Server no longer listening
............................
[GUI] - Critical error! Could not boot Sonic Pi Server.
[GUI] - stopping UDP OSC Server...
[GUI] - Critical Error. Unable to connect to server..
Server Errors
/home/tom/.sonic-pi/log/server-errors.log
no message buffer overruns
no message buffer overruns
no message buffer overruns
jack_port_get_buffer called with an incorrect port 0
jack_port_get_buffer called with an incorrect port 0
jack_port_get_buffer called with an incorrect port 0
jack_port_get_buffer called with an incorrect port 0
Cannot read socket fd = 14 err = Connection reset by peer
Could not read notification result
ClientNotify fails name = SuperCollider notification = 18 val1 = 0 val2 = 0
Cannot write socket fd = 14 err = Broken pipe
CheckRes error
Could not write notification
ClientNotify fails name = SuperCollider notification = 18 val1 = 1 val2 = 0
Cannot write socket fd = 14 err = Broken pipe
CheckRes error
Could not write notification
ClientNotify fails name = SuperCollider notification = 4 val1 = 0 val2 = 0
Unknown error...
terminate called after throwing an instance of 'Jack::JackTemporaryException'
what():
Server Output
/home/tom/.sonic-pi/log/server-output.log
Sonic Pi server booting...
This is version 3.2.0 running on Ruby 2.7.4.
The time is 2023-08-24 15:50:11 +0100
Using primary protocol: udp
Detecting port numbers...
Listen port: 51235
- OK
Scsynth port: 51237
- OK
Scsynth send port: 51237
- OK
OSC cues port: 4560
- OK
Erlang port: 51240
- OK
OSC MIDI out port: 51238
- OK
OSC MIDI in port: 51239
- OK
Websocket port: 51241
- OK
Opening UDP Server to listen to GUI on port: 51235
Starting Server Runtime
Booting server...
Booting Sonic Pi
----------------
Booting on Linux
Jackd not running on system. Starting...
jackdmp 1.9.17
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2021 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"
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|2048|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 2048 frames (46.4 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 3 periods for playback
Started [14854] [-] jackd -R -T -p 32 -d alsa -n 3 -p 2048 -r 44100 [-] /tmp/sonic-pi-pids/14854
Boot - Starting the SuperCollider server...
Boot - scsynth -u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -b 4096 -B 127.0.0.1
Started [14864] [-] scsynth [-] /tmp/sonic-pi-pids/14864
Boot - SuperCollider booted successfully.
Boot - Connecting to the SuperCollider server...
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Unable to connect to SuperCollider
Failed to start server: Boot - Unable to connect to SuperCollider
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:267:in `boot_and_wait'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:443:in `boot_server_linux'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:151:in `boot'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:37:in `initialize'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/server.rb:78:in `new'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/server.rb:78:in `initialize'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/studio.rb:192:in `new'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/studio.rb:192:in `init_scsynth'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/studio.rb:57:in `initialize'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `new'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `block (2 levels) in included'
/usr/lib/sonic-pi/app/server/ruby/lib/sonicpi/lang/ixi.rb:72:in `block (2 levels) in included'
/usr/lib/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb:302:in `new'
/usr/lib/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb:302:in `<main>'
Scsynth Output
/home/tom/.sonic-pi/log/scsynth.log
# Starting SuperCollider 2023-08-24 15:50:12
Found 0 LADSPA plugins
JackDriver: client name is 'SuperCollider'
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 2048
SuperCollider 3 server ready.
Process Log
/home/tom/.sonic-pi/log/processes.log
Clearing pids: ["14754", "14744", "14731"]
Clearing [14754]
-- command scsynth -u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -b 4096 -B 127.0.0.1
-- removing /tmp/sonic-pi-pids/14754
-- unable to get ProcTable info for: 14754
-- process: 14754 not running
Clearing [14744]
-- command jackd -R -T -p 32 -d alsa -n 3 -p 2048 -r 44100
-- removing /tmp/sonic-pi-pids/14744
-- unable to get ProcTable info for: 14744
-- process: 14744 not running
Clearing [14731]
-- command /usr/bin/ruby -E utf-8 /usr/lib/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb -u 51235 51236 51237 51237 4560 51240 51238 51239 51241
-- removing /tmp/sonic-pi-pids/14731
-- unable to get ProcTable info for: 14731
-- process: 14731 not running
Finished clearing pids
Started [14841] [-] /usr/bin/ruby -E utf-8 /usr/lib/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb -u 51235 51236 51237 51237 4560 51240 51238 51239 51241 [-] /tmp/sonic-pi-pids/14841
Started [14854] [-] jackd -R -T -p 32 -d alsa -n 3 -p 2048 -r 44100 [-] /tmp/sonic-pi-pids/14854
Started [14864] [-] scsynth [-] /tmp/sonic-pi-pids/14864
I would try the later SP4.3 on 32bit Raspbian latest. https://sonic-pi.net/files/releases/v4.3.0/sonic-pi_4.3.0_1_bullseye.armhf.deb
Remove any existing version with sudo apt purge sonic-pi
before installing
After installing 4.3 restart the Pi before running it.
Hi Robin,
Thanks for getting back to me. I have tried a installing but have not been successful. If you have any suggestions it would be great to hear from you.
wget https://sonic-pi.net/files/releases/v4.3.0/sonic-pi_4.3.0_1_bullseye.armhf.deb
$ sudo apt install ./sonic-pi_4.3.0_1_bullseye.armhf.deb Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'sonic-pi:armhf' instead of './sonic-pi_4.3.0_1_bullseye.armhf.deb' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: sonic-pi:armhf : Depends: libatomic1:armhf (>= 4.8) but it is not installable Depends: libc6:armhf (>= 2.15) but it is not installable Depends: libgcc1:armhf (>= 1:3.5) but it is not installable Depends: libgles2:armhf but it is not installable Depends: libqt5concurrent5:armhf (>= 5.0.2) but it is not installable Depends: libqt5core5a:armhf (>= 5.6.0~beta) but it is not installable Depends: libqt5gui5:armhf (>= 5.8.0) but it is not installable Depends: libqt5network5:armhf (>= 5.0.2) but it is not installable Depends: libqt5opengl5:armhf (>= 5.0.2) but it is not installable Depends: libqt5printsupport5:armhf (>= 5.0.2) but it is not installable Depends: libqt5svg5:armhf (>= 5.6.0~beta) but it is not installable Depends: libqt5widgets5:armhf (>= 5.1.0) but it is not installable Depends: libstdc++6:armhf (>= 5.2) but it is not installable Depends: ruby:armhf but it is not installable Depends: jackd2:armhf but it is not installable Depends: supercollider-server:armhf but it is not installable Depends: sc3-plugins-server:armhf but it is not installable Depends: libqt5xml5:armhf but it is not installable Depends: pulseaudio-utils:armhf but it is not installable Depends: pulseaudio-module-jack:armhf but it is not installable Recommends: compton:armhf but it is not installable
my linux version is:
Linux version 5.10.0-25-amd64 @.***) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.191-1 (2023-08-16)
on a lenovo IdeaPad L340
Yours Sincerely,
Thomas Eley
On Tue, Sep 5, 2023 at 2:50 PM Robin Newman @.***> wrote:
I would try the later SP4.3 on 32bit Raspbian latest.
https://sonic-pi.net/files/releases/v4.3.0/sonic-pi_4.3.0_1_bullseye.armhf.deb
— Reply to this email directly, view it on GitHub https://github.com/sonic-pi-net/sonic-pi/issues/3319#issuecomment-1706664707, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3P3GV66WST2PD2RVFOQWTXY4U3XANCNFSM6AAAAAA35HCYOA . You are receiving this because you authored the thread.Message ID: @.***>
Ah! two issues. First you are not using a Raspberry Pi but are running Debian 11 on. Lenova by the look of it, and also you are running a 64bit version, which uses differnt pacakges. I suggest you try using the 64bit version of the 4.3 binary deb which you can download from https://sonic-pi.net/files/releases/v4.3.0/sonic-pi_4.3.0_1_bullseye.arm64.deb Hopefully this will work for you, but since your hardware is a bit different the audio setup may not connect up automatically. Give it a try and let me know how you get on. I have done a build on a virtual 64 bit Debian machine and got that working, but haven't produced an installation packaged for it. The binary debs I have e produced were specifically for raspberry pi hardware, but they can work on some other hardware.
Hi Robin,
Thanks, I will give it a try!
Thomas
On Wed, 6 Sept 2023, 23:03 Robin Newman, @.***> wrote:
Ah! two issues. First you are not using a Raspberry Pi but are running Debian 11 on. Lenova by the look of it, and also you are running a 64bit version, which uses differnt pacakges. I suggest you try using the 64bit version of the 4.3 binary deb which you can download from https://sonic-pi.net/files/releases/v4.3.0/sonic-pi_4.3.0_1_bullseye.arm64.deb Hopefully this will work for you, but since your hardware is a bit different the audio setup may not connect up automatically. Give it a try and let me know how you get on. I have done a build on a virtual 64 bit Debian machine and got that working, but haven't produced an installation packaged for it. The binary debs I have e produced were specifically for raspberry pi hardware, but they can work on some other hardware.
— Reply to this email directly, view it on GitHub https://github.com/sonic-pi-net/sonic-pi/issues/3319#issuecomment-1708551219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3P3GTNFOEEEAVPUGT2R3DXZCGENANCNFSM6AAAAAA35HCYOA . You are receiving this because you authored the thread.Message ID: @.***>
I was having the same issue on my Pi (64 bit,) and the fix specified @rbnpi fixed it. Make sure to reboot after installing.
Thanks will give it a try!
On Thu, 19 Oct 2023, 20:55 radeeyate, @.***> wrote:
I was having the same issue on my Pi (64 bit,) and the fix specified @rbnpi https://github.com/rbnpi fixed it. Make sure to reboot after installing.
— Reply to this email directly, view it on GitHub https://github.com/sonic-pi-net/sonic-pi/issues/3319#issuecomment-1770932231, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3P3GR2PIOWZJSJEIBYEQ3YAEPKNAVCNFSM6AAAAAA35HCYOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQHEZTEMRTGE . You are receiving this because you authored the thread.Message ID: @.***>