Skip to content
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

Critical Error could not boot Sonic Pi Server - Sonic Pi for Win ver 3.1.0 #1881

Open
alexzuki opened this issue Apr 17, 2018 · 9 comments

Comments

Projects
None yet
5 participants
@alexzuki
Copy link

commented Apr 17, 2018

#Error detail:
onic Pi Boot Error Report

System Information

  • Sonic Pi version: 3.1.0
  • OS: Windows 10

GUI Log

C:\Users\User\.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: 5084
[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

C:\Users\User\.sonic-pi\log\server-errors.log


Server Output

C:\Users\User\.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
Started [7696] [-] "C:\Program Files (x86)\Sonic Pi\app\server\native\scsynth.exe" -u 4556 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program Files (x86)/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-] C:/Users/User/AppData/Local/Temp/sonic-pi-pids/7696

Scsynth Output

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

# Starting SuperCollider 2018-04-16 23:52:12

Device options:
  - MME : Mapeador de som da Microsoft - Input   (device #0 with 2 ins 0 outs)
  - MME : Entrada (Scarlett 18i20 USB)   (device #1 with 18 ins 0 outs)
  - MME : Mapeador de som da Microsoft - Output   (device #2 with 0 ins 2 outs)
  - MME : Saída de Linha (Scarlett 18i20    (device #3 with 0 ins 20 outs)
  - MME : Alto-falantes (Realtek High Def   (device #4 with 0 ins 8 outs)
  - Windows DirectSound : Driver de captura de som primário   (device #5 with 2 ins 0 outs)
  - Windows DirectSound : Entrada (Scarlett 18i20 USB)   (device #6 with 18 ins 0 outs)
  - Windows DirectSound : Driver de som primário   (device #7 with 0 ins 2 outs)
  - Windows DirectSound : Saída de Linha (Scarlett 18i20 USB)   (device #8 with 0 ins 20 outs)
  - Windows DirectSound : Alto-falantes (Realtek High Definition Audio)   (device #9 with 0 ins 8 outs)
  - ASIO : ASIO4ALL v2   (device #10 with 2 ins 8 outs)
  - ASIO : Focusrite USB 2.0 Audio Driver   (device #11 with 18 ins 20 outs)
  - Windows WASAPI : Saída de Linha (Scarlett 18i20 USB)   (device #12 with 0 ins 2 outs)
  - Windows WASAPI : Alto-falantes (Realtek High Definition Audio)   (device #13 with 0 ins 2 outs)
  - Windows WASAPI : Entrada (Scarlett 18i20 USB)   (device #14 with 2 ins 0 outs)
  - Windows WDM-KS : Mixagem estéreo (Realtek HD Audio Stereo input)   (device #15 with 2 ins 0 outs)
  - Windows WDM-KS : Microfone (Realtek HD Audio Mic input)   (device #16 with 2 ins 0 outs)
  - Windows WDM-KS : Entrada (Realtek HD Audio Line input)   (device #17 with 2 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #18 with 0 ins 8 outs)
  - Windows WDM-KS : Output (Scarlett 18i20 USB)   (device #19 with 0 ins 20 outs)
  - Windows WDM-KS : Input (Scarlett 18i20 USB)   (device #20 with 18 ins 0 outs)

Booting with:
  In: MME : Entrada (Scarlett 18i20 USB)
  Out: MME : Saída de Linha (Scarlett 18i20 
SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'
could not initialize audio.

Process Log

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



Clearing pids: []
No pids to clear :-)
Started [5084] [-] "C:\Program Files (x86)\Sonic Pi\app\gui\qt\release\..\..\..\..\app\server\native\ruby\bin\ruby.exe"  --enable-frozen-string-literal -E utf-8 "C:\Program Files (x86)\Sonic Pi\app\gui\qt\release\..\..\..\..\app\server\ruby\bin\sonic-pi-server.rb" -u 4557 4558 4556 4556 4559 4560 4561 4562 [-] C:/Users/User/AppData/Local/Temp/sonic-pi-pids/5084
Started [7696] [-] "C:\Program Files (x86)\Sonic Pi\app\server\native\scsynth.exe" -u 4556 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program Files (x86)/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-] C:/Users/User/AppData/Local/Temp/sonic-pi-pids/7696

@SunderB

This comment has been minimized.

Copy link
Contributor

commented Apr 18, 2018

SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error' could not initialize audio. hmm... Maybe Supercollider could be having an issue with some audio drivers?

Could you tell us more about your audio hardware (speakers, microphones, headsets, etc.), and could you tell us what Saída de Linha (Scarlett 18i20 is?

Maybe you're having a similar issue as #1362?

@spookymattress

This comment has been minimized.

Copy link

commented May 4, 2018

Same issue here. Windows 10, Sonic PI 3.1.0. Cannot load and crashes with error.

Logs

Sonic Pi Boot Error Report

System Information

  • Sonic Pi version: 3.1.0
  • OS: Windows 8

GUI Log

C:\Users\tgu\.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: 15188
[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

C:\Users\tgu\.sonic-pi\log\server-errors.log


Server Output

C:\Users\tgu\.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

Scsynth Output

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

# Starting SuperCollider 2018-05-04 12:24:45

Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Microphone Array (Realtek High    (device #1 with 2 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #2 with 0 ins 2 outs)
  - MME : Højtaler/Hovedtelefoner (Realte   (device #3 with 0 ins 2 outs)
  - Windows DirectSound : Primary Sound Capture Driver   (device #4 with 2 ins 0 outs)
  - Windows DirectSound : Microphone Array (Realtek High Definition Audio)   (device #5 with 2 ins 0 outs)
  - Windows DirectSound : Primary Sound Driver   (device #6 with 0 ins 2 outs)
  - Windows DirectSound : Højtaler/Hovedtelefoner (Realtek High Definition Audio)   (device #7 with 0 ins 2 outs)
  - Windows WASAPI : Højtaler/Hovedtelefoner (Realtek High Definition Audio)   (device #8 with 0 ins 2 outs)
  - Windows WASAPI : Microphone Array (Realtek High Definition Audio)   (device #9 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone Array (Realtek HD Audio Mic input)   (device #10 with 2 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #11 with 0 ins 2 outs)

Booting with:
  In: MME : Microphone Array (Realtek High 
  Out: MME : Højtaler/Hovedtelefoner (Realte
**SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'
could not initialize audio.**

Process Log

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



Clearing pids: []
No pids to clear :-)
Started [15188] [-] "C:\Program Files (x86)\Sonic Pi\app\gui\qt\release\..\..\..\..\app\server\native\ruby\bin\ruby.exe"  --enable-frozen-string-literal -E utf-8 "C:\Program Files (x86)\Sonic Pi\app\gui\qt\release\..\..\..\..\app\server\ruby\bin\sonic-pi-server.rb" -u 4557 4558 4556 4556 4559 4560 4561 4562 [-] C:/Users/tgu/AppData/Local/Temp/sonic-pi-pids/15188



@samaaron

This comment has been minimized.

Copy link
Owner

commented May 4, 2018

@spookymattress sorry about this - looks like a weird Windows/SuperCollider error. Is there any chance you could try to boot a vanilla SuperCollider server and chat with their devs over on http://github.com/supercollider/supercollider/issues

@spookymattress

This comment has been minimized.

Copy link

commented May 4, 2018

Some debugging info that might help.

I just tried installing SuperCollider as stand-alone. Got the exact same error message, when I selected "boot server".

After googling I came by this post (http://superdupercollider.blogspot.dk/2013/10/installing-supercollider-on-windows-7.html), and installed ASIO4ALL as suggested, and created the startup.scd file, and then I could boot the server in SuperCollider. Wuhhuuu...

So, my question is now, if I can change the same for Sonic PI?? Any config file that I can change for SuperCollider in Sonic PI maybe?

(I'm all new to this, btw :)

@samaaron

This comment has been minimized.

Copy link
Owner

commented May 4, 2018

ah, very interesting !

unfortunately, the config you're looking to modify isn't yet modifiable without editing the source. However if you are willing to try then you just need to edit your local version of this file:

https://github.com/samaaron/sonic-pi/blob/master/app/server/ruby/lib/sonicpi/scsynthexternal.rb#L344

And add the line:

 "-H", "ASIO4ALL",

and then see if that fixes things :-)

@spookymattress

This comment has been minimized.

Copy link

commented May 4, 2018

Oh my, that did the trick!! :D - You are genius!

So, this could be the solution to the guy above!

So, if you experience an error like below

SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'
could not initialize audio.

try the following work-around:

  1. Install ASIO4ALL
  2. Add the line:
    "-H", "ASIO4ALL",
    to this file:
    https://github.com/samaaron/sonic-pi/blob/master/app/server/ruby/lib/sonicpi/scsynthexternal.rb#L344
@samaaron

This comment has been minimized.

Copy link
Owner

commented May 4, 2018

This is great to hear!

@alexzuki

This comment has been minimized.

Copy link
Author

commented May 4, 2018

@lilithlilithlilith

This comment has been minimized.

Copy link

commented May 24, 2019

Thanks a ton, this resolved the same issue for me \m/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.