sonic-pi-net / sonic-pi

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

Sonic Pi Boot Error Critical Error! - Could not boot Sonic Pi Server. #2284

Closed aceadmin1 closed 2 years ago

aceadmin1 commented 4 years ago

We have installed onto 9 machines, 4 are working the other 5 are giving the following error. I've looked at other solutions but these machines do not have Jack audio installed?

Thanks for your help

Sonic Pi Boot Error Report

System Information

GUI Log

C:\Users\<Username>\.sonic-pi\log\gui.log

[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {6e94dfe7-84a7-4601-84c5-893013fec605}
[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: 8608
[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] - Critical error! Could not boot Sonic Pi Server.
[GUI] - stopping UDP OSC Server...
[GUI] - Critical Error. Unable to connect to server..
[GUI] - UDP OSC Server no longer listening

Server Errors

C:\Users\<username>\.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
C:/Program Files/Sonic Pi/app/server/ruby/vendor/sys-proctable-1.1.3/lib/windows/sys/proctable.rb:97: warning: constant ::Fixnum is deprecated

Server Output

C:\Users\<username>\.sonic-pi\log\server-output.log

Sonic Pi server booting...
This is version 3.2.0 running on Ruby 2.7.0.
The time is 2020-03-12 08:38:50 +0000
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

Scsynth Output

C:\Users\<username>\.sonic-pi\log\scsynth.log

# Starting SuperCollider 2020-03-12 08:38:51

Device options:

Requested devices:
  In (matching device NOT found):
  - (null)
  Out (matching device NOT found):
  - (null)

SC_PortAudioDriver: PortAudio failed at Pa_OpenDefaultStream with error: 'Device unavailable'
could not initialize audio.

Process Log

C:\Users\<username>\.sonic-pi\log\processes.log


Clearing pids: []
No pids to clear :-)
Started [8608] [-] "C:\Program Files\Sonic Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\native\ruby\bin\ruby.exe"  --enable-frozen-string-literal -E utf-8 "C:\Program Files\Sonic Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\ruby\bin\sonic-pi-server.rb" -u 51235 51236 51237 51237 4560 51240 51238 51239 51241 [-] C:/Users/<username>/AppData/Local/Temp/sonic-pi-pids/8608
samaaron commented 4 years ago

On the PCs that didn’t boot it appears that sonic pi can’t see their sound cards.

I’ve noticed this happen before and a solution was to put headphones in the audio jacks and then start sonic pi. Could you possibly try that?

obitodarky commented 4 years ago

@samaaron isnt there a fix for wireless headsets in that case?

bvvarma commented 4 years ago

@samaaron Facing the same issue. Tried with the headphones in the audio jack. That does not seem to help. see the same error. Appreciate any other suggestions please

obitodarky commented 4 years ago

@bvvarma can you send an error log when you try them with the audio jack?

bvvarma commented 4 years ago

@obitodarky Thanks for the response. Following is the error log.

System Information

GUI Log

C:\Users\Vivek\.sonic-pi\log\gui.log

[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {b4b46d92-2d7f-4b61-89e6-c518c6a3df6f}
[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: 9624
[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] - Critical error! Could not boot Sonic Pi Server.
[GUI] - stopping UDP OSC Server...
[GUI] - Critical Error. Unable to connect to server..
[GUI] - UDP OSC Server no longer listening

Server Errors

C:\Users\Vivek\.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
C:/Program Files/Sonic Pi/app/server/ruby/vendor/ffi-1.11.3/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library 'libaubio.4.2.2.dylib': The specified module could not be found.\r (LoadError)
.
Could not open library 'libaubio.4.2.2.dylib.dll': The specified module could not be found.\r
.
Could not open library 'libaubio.so.1': The specified module could not be found.\r
.
Could not open library 'libaubio.so.1.dll': The specified module could not be found.\r
.
Could not open library 'aubio1.dll': The specified module could not be found.\r
.
Could not open library 'libaubio-5.dll': The specified module could not be found.\r
    from C:/Program Files/Sonic Pi/app/server/ruby/vendor/ffi-1.11.3/lib/ffi/library.rb:99:in `map'
    from C:/Program Files/Sonic Pi/app/server/ruby/vendor/ffi-1.11.3/lib/ffi/library.rb:99:in `ffi_lib'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/gems/2.7.0/gems/aubio-0.3.3/lib/aubio/aubio-ffi.rb:9:in `<module:Api>'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/gems/2.7.0/gems/aubio-0.3.3/lib/aubio/aubio-ffi.rb:5:in `<top (required)>'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/gems/2.7.0/gems/aubio-0.3.3/lib/aubio.rb:2:in `require_relative'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/gems/2.7.0/gems/aubio-0.3.3/lib/aubio.rb:2:in `<top (required)>'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `require'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
    from C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/samplebuffer.rb:17:in `<top (required)>'
    from C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:16:in `require_relative'
    from C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:16:in `<top (required)>'
    from C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:20:in `require_relative'
    from C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:20:in `<main>'
C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- aubio (LoadError)
    from C:/Program Files/Sonic Pi/app/server/native/ruby/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
    from C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/samplebuffer.rb:17:in `<top (required)>'
    from C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:16:in `require_relative'
    from C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:16:in `<top (required)>'
    from C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:20:in `require_relative'
    from C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:20:in `<main>'

Server Output

C:\Users\Vivek\.sonic-pi\log\server-output.log

Scsynth Output

C:\Users\Vivek\.sonic-pi\log\scsynth.log

Process Log

C:\Users\Vivek\.sonic-pi\log\processes.log


Clearing pids: ["6572"]

Clearing [6572]
  -- command "C:\Program Files\Sonic Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\native\ruby\bin\ruby.exe"  --enable-frozen-string-literal -E utf-8 "C:\Program Files\Sonic Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\ruby\bin\sonic-pi-server.rb" -u 51235 51236 51237 51237 4560 51240 51238 51239 51241
  -- removing C:/Users/Vivek/AppData/Local/Temp/sonic-pi-pids/6572
  -- unable to get ProcTable info for: 6572
  -- process: 6572 not running

Finished clearing pids

Started [9624] [-] "C:\Program Files\Sonic Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\native\ruby\bin\ruby.exe"  --enable-frozen-string-literal -E utf-8 "C:\Program Files\Sonic Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\ruby\bin\sonic-pi-server.rb" -u 51235 51236 51237 51237 4560 51240 51238 51239 51241 [-] C:/Users/Vivek/AppData/Local/Temp/sonic-pi-pids/9624
samaaron commented 4 years ago

Hi, this is a known problem and will be fixed in 3.2.1. For now you can download and install the latest C++ redistributable from Microsoft to fix this error.

bvvarma commented 4 years ago

@samaaron Thanks so much. Installing the latest library from https://support.microsoft.com/en-in/help/2977003/the-latest-supported-visual-c-downloads fixed the issue. I am able to boot up and live code. Works without the headphones as well.