Skip to content

Sonic Pi Crashes on New Raspberry Pi 4 #2783

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

Closed
kevinhehee opened this issue Jun 9, 2021 · 1 comment
Closed

Sonic Pi Crashes on New Raspberry Pi 4 #2783

kevinhehee opened this issue Jun 9, 2021 · 1 comment

Comments

@kevinhehee
Copy link

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: 6325
[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
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 open SuperCollider client
Cannot read socket fd = 6 err = Success
CheckRes error
JackSocketClientChannel read fail
JackShmReadWritePtr1::~JackShmReadWritePtr1 - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
terminate called without an active exception
JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Driver is not running
Cannot create new client

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 already running. Not starting another server...
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 2021-06-08 16:33:58
Found 0 LADSPA plugins
*** ERROR: open directory failed '/usr/app/server/native/extra-ugens/': No such file or directory
could not initialize audio.
So 

Process Log

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




@ethancrawford
Copy link
Collaborator

Hi there,

The issue here is that the version of Sonic Pi (v3.1) that is bundled with the Raspberry Pi (and provided in the Raspberry Pi software repository) is a version that was built outside of our control, and is partially broken.
You can get a working version of Sonic Pi running on your Raspberry Pi, but in order to do so, here's what you need to do:

  • Uninstall the built-in Sonic Pi v3.1
  • Download the latest version from our own website: https://sonic-pi.net
  • Double click on the downloaded file to install it (and enter the Pi user's account password when prompted)
  • Reboot your Raspberry Pi

This should then mean you have a fully up-to-date and working Sonic Pi 👍

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

No branches or pull requests

2 participants