sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

Critical error! - Could not boot Sonic Pi Server.//http://github.com/samaaron/sonic-pi/issues

Open Qkehan opened this issue 1 year ago • 1 comments

linux manjaro kde X86

Sonic Pi Boot Error Report

System Information

  • Sonic Pi version: 3.3.1
  • OS: Manjaro Linux

GUI Log

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

[GUI] -                            
[GUI] -                            
[GUI] -                            
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {985a02d3-3241-4830-9f49-9e5d56b76fda}
[GUI] - ui locale:  zh-CN
[GUI] - sys locale: zh_CN
[GUI] - translations available 
[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 server-osc-cues : 4560 : 4560
[GUI] - Port entry erlang-router : 51238 : 51238
[GUI] - Port entry websocket : 51239 : 51239
[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 51238
[GUI] -    port: 51238 [OK]
[GUI] - Websocket port 51239
[GUI] -    port: 51239 [OK]
[GUI] - All ports OK
[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] - launching Sonic Pi Runtime Server:[GUI] - starting UDP OSC Server on port 



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


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

* Sonic Pi version: 3.3.1
* OS: Manjaro Linux


GUI Log
-------

**`/home/qkehan/.sonic-pi/log/gui.log`**

[GUI] -
[GUI] -
[GUI] -
[GUI] - Welcome to the Sonic Pi GUI [GUI] - =========================== [GUI] -
[GUI] - {985a02d3-3241-4830-9f49-9e5d56b76fda} [GUI] - ui locale: zh-CN [GUI] - sys locale: zh_CN [GUI] - translations available [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 server-osc-cues : 4560 : 4560 [GUI] - Port entry erlang-router : 51238 : 51238 [GUI] - Port entry websocket : 51239 : 51239 [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 51238 [GUI] - port: 51238 [OK] [GUI] - Websocket port 51239 [GUI] - port: 51239 [OK] [GUI] - All ports OK [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] - launching Sonic Pi Runtime Server: [GUI] - starting UDP OSC Server on port 51236... [GUI] - UDP OSC Server ready and listening [GUI] - Ruby server pid registered: 13068 [GUI] - wait for sync [GUI] - waiting for Sonic Pi Server to boot... . [GUI] - Sonic Pi Server failed to start with this error message: > Port unavailable: 51235, is Sonic Pi already running? [GUI] - UDP OSC Server no longer listening nger 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/qkehan/.sonic-pi/log/server-errors.log`**

Cannot connect to server socket err = No such file or directory Cannot connect to server request channel Automatic start of JACK server is disabled at configure time 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 Could not open component .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory Could not open component .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory jack_get_descriptor : dll jack_get_descriptor returns null for 'jack_firewire.so' jack_get_descriptor : dll jack_get_descriptor returns null for 'jack_intime.so' jack_get_descriptor : dll jack_get_descriptor returns null for 'jack_inprocess.so' jack_get_descriptor : dll jack_get_descriptor returns null for 'jack_internal_metro.so' Could not open component .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory Cannot lock down 39190460 byte memory area (Cannot allocate memory) Cannot use real-time scheduling (RR/10) (1: Operation not permitted) AcquireSelfRealTime error



Server Output
-------------

**`/home/qkehan/.sonic-pi/log/server-output.log`**

Sonic Pi server booting... The time is 2022-09-11 12:59:23 +0800 Using primary protocol: udp Detecting port numbers... Listen port: 51235 Port 51235 unavailable. Perhaps Sonic Pi is already running?

Qkehan avatar Sep 11 '22 05:09 Qkehan

I read "Automatic start of JACK server is disabled at configure time". Could you manually start JACK (if you're not sure how, look at the wiki) and see if that helps? Using qjackctl might help.


By the way. Since you're running version 3.3.1 on Manjaro/Arch, I'm assuming you've installed this through pacman, which contains an out-of-date (flagged as such) sonic-pi. It doesn't look actively maintained and might be removed at some point.

Would you be willing to build from source? Most of the information in the build instructions in this repo is accurate, but to make sure, I just whipped up a quick Dockerfile with a clean Arch image as base and I have verified that this succesfully builds Sonic Pi:

pacman -Suy git qt6 ruby elixir supercollider sc3-plugins cmake
.app/linux-build-all.sh

Obviously, if you already have Ruby and/or Elixir running for development, you might want to stay away from a pacman-based installation and just make sure your rbenv and/or kerl/kiex are setup in a way so that the build process can use it.

jhaagmans avatar Sep 11 '22 10:09 jhaagmans