sonic-pi-net / sonic-pi

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

Sonic Pi Boot Error on Ubuntu18.04 #1989

Closed AJFaraday closed 2 years ago

AJFaraday commented 6 years ago

Sonic Pi Boot Error Report

System Information

GUI Log

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

[GUI] - using default editor colours
[GUI] - shutting down any old audio servers...
[GUI] - starting UDP OSC Server on port 4558...
[GUI] - UDP OSC Server ready and listening
[GUI] - booting live coding server
[GUI] - waiting for server to boot...
............................................................
[GUI] - Critical error! Could not boot server.

Server Errors

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

Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
JackClient::AcquireSelfRealTime error
Failed to start server: Unable to boot SuperCollider - boot server log did not report server ready
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:257:in `boot_and_wait'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:392:in `boot_server_linux'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:181:in `boot'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:29:in `initialize'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/server.rb:73:in `new'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/server.rb:73:in `initialize'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/studio.rb:102:in `new'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/studio.rb:102:in `init_studio'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/studio.rb:43:in `initialize'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/lang/sound.rb:123:in `new'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/lang/sound.rb:123:in `block (2 levels) in included'
/usr/lib/sonic-pi/server/bin/sonic-pi-server.rb:99:in `new'
/usr/lib/sonic-pi/server/bin/sonic-pi-server.rb:99:in `<main>'

Server Output

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

Sonic Pi server booting...
Using protocol: udp
Server is exiting.
Shutting down GUI...
Goodbye :-)

Scsynth Output

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

# Starting SuperCollider 2018-11-17 09:22:03
Found 72 LADSPA plugins
JackDriver: client name is 'SuperCollider-01'
SC_AudioDriver: sample rate = 48000.000000, driver's block size = 1024
Exception in World_OpenUDP: bind: Address already in use
Mec-iS commented 5 years ago

what it the output for ~$ ulimit -r -l -m?

It should be

real-time priority              (-r) 95
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited

If it is not, check this post on Ubuntu forum

samaaron commented 2 years ago

We have completely overhauled the building and booting systems in the recently released v4 of Sonic Pi:

https://github.com/sonic-pi-net/sonic-pi/releases

Please do give v4 a try and feel free to create a new issue if you're still having problems. If there isn't a package available for your Linux distribution, then you should be able to self-compile using the following instructions:

https://github.com/sonic-pi-net/sonic-pi/blob/dev/BUILD-LINUX.md