plugwash
Forum Moderator
Forum Moderator
Posts: 3439
Joined: Wed Dec 28, 2011 11:45 pm

sonic-pi 3.10 for buster available for testing.

Thu Jul 18, 2019 6:46 pm

Add

deb http://plugwash.raspbian.org/sonic-pi buster-sonicpi main

to your sources.list

apt-get update && apt-get install sonic-pi sonic-pi-server sonic-pi-samples

I have done a basic smoke test of running the application and trying out the first example in the tutorial, but i'm not a sonic-pi guy so feedback from people who actually use sonic-pi would be welcomed.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5854
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: sonic-pi 3.10 for buster available for testing.

Fri Aug 30, 2019 1:30 pm

Just tried building it for i386 and amd64:

Code: Select all

dh_auto_configure
        cd app/gui/qt && qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_LFLAGS_RELEASE=-Wl,-z,relro -Wl,-z,now" "QMAKE_LFLAGS_DEBUG=-Wl,-z,relro -Wl,-z,now" QMAKE_STRIP=: PREFIX=/usr
Info: creating stash file /<<PKGBUILDDIR>>/app/gui/qt/.qmake.stash
Project ERROR: Unknown module(s) in QT: opengl
dh_auto_configure: cd app/gui/qt && qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_LFLAGS_RELEASE=-Wl,-z,relro -Wl,-z,now" "QMAKE_LFLAGS_DEBUG=-Wl,-z,relro -Wl,-z,now" QMAKE_STRIP=: PREFIX=/usr returned exit code 3
make[1]: *** [debian/rules:19: override_dh_auto_configure] Error 3
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: build-arch] Error 2

plugwash
Forum Moderator
Forum Moderator
Posts: 3439
Joined: Wed Dec 28, 2011 11:45 pm

Re: sonic-pi 3.10 for buster available for testing.

Sat Aug 31, 2019 1:21 am

I'd guess it needs a build-dependency on libqt5opengl5-dev

User avatar
jamesrobinson
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 41
Joined: Fri Jul 20, 2012 9:12 am
Location: Cambridge

Re: sonic-pi 3.10 for buster available for testing.

Mon Sep 02, 2019 8:22 am

I have tested the install on a Pi 4 and everything I would usually use for a Picademy session is there and work's perfectly! Thanks so much

User avatar
Botspot
Posts: 154
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Yahoo Messenger

Re: sonic-pi 3.10 for buster available for testing.

Sat Sep 14, 2019 1:33 am

Worked last month, but today it wouldn't open. Strange.

Opened an issue on github, but error output is here also:

Code: Select all

Sonic Pi Boot Error Report
==================


System Information
----------------

* Sonic Pi version: 3.1.0
* OS: Raspbian GNU/Linux 10 (buster)


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



```
My doctor told me my brain is as useful as a Raspberry Pi. Is that a compliment?

plugwash
Forum Moderator
Forum Moderator
Posts: 3439
Joined: Wed Dec 28, 2011 11:45 pm

Re: sonic-pi 3.10 for buster available for testing.

Sat Sep 14, 2019 8:23 am

Botspot wrote:
Sat Sep 14, 2019 1:33 am

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
Seems like jack is failing to open the audio device. Are you running any other audio related stuff?

User avatar
Botspot
Posts: 154
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Yahoo Messenger

Re: sonic-pi 3.10 for buster available for testing.

Sat Sep 14, 2019 12:19 pm

plugwash wrote:
Sat Sep 14, 2019 8:23 am
Seems like jack is failing to open the audio device. Are you running any other audio related stuff?
Not that I'm aware of. How could I find out?
My doctor told me my brain is as useful as a Raspberry Pi. Is that a compliment?

Return to “Raspbian”