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 #2512

Closed
kajusorz opened this issue Oct 5, 2020 · 2 comments
Closed

Critical error #2512

kajusorz opened this issue Oct 5, 2020 · 2 comments

Comments

@kajusorz
Copy link

kajusorz commented Oct 5, 2020

I cannot launch Sonic Pi, when it fails to launch I get this message -

Sonic Pi Boot Error Report

System Information

  • Sonic Pi version: 3.2.2
  • OS: Windows 10 Version 1903

GUI Log

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

[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {bc7e5eea-4fa7-496b-9a78-1607b5a4d2dc}
[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: 17532
[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\Kajus\.sonic-pi\log\server-errors.log


Server Output

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

Sonic Pi server booting...
This is version 3.2.0 running on Ruby 2.7.1.
The time is 2020-10-05 13:23:37 +0200
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
Started [19760] [-] "C:\Program Files\Sonic Pi\app\server\native\scsynth.exe" -u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program Files/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-] C:/Users/Kajus/AppData/Local/Temp/sonic-pi-pids/19760

Scsynth Output

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

# Starting SuperCollider 2020-10-05 13:23:37

Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Microphone (Realtek High Defini   (device #1 with 2 ins 0 outs)
  - MME : Microphone (Steam Streaming Mic   (device #2 with 8 ins 0 outs)
  - MME : Microphone Array (Realtek High    (device #3 with 2 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #4 with 0 ins 2 outs)
  - MME : Speakers (Realtek High Definiti   (device #5 with 0 ins 2 outs)
  - MME : Speakers (Steam Streaming Speak   (device #6 with 0 ins 8 outs)
  - MME : Speakers (Steam Streaming Micro   (device #7 with 0 ins 8 outs)
  - Windows DirectSound : Primary Sound Capture Driver   (device #8 with 2 ins 0 outs)
  - Windows DirectSound : Microphone (Realtek High Definition Audio)   (device #9 with 2 ins 0 outs)
  - Windows DirectSound : Microphone (Steam Streaming Microphone)   (device #10 with 8 ins 0 outs)
  - Windows DirectSound : Microphone Array (Realtek High Definition Audio)   (device #11 with 2 ins 0 outs)
  - Windows DirectSound : Primary Sound Driver   (device #12 with 0 ins 2 outs)
  - Windows DirectSound : Speakers (Realtek High Definition Audio)   (device #13 with 0 ins 2 outs)
  - Windows DirectSound : Speakers (Steam Streaming Speakers)   (device #14 with 0 ins 8 outs)
  - Windows DirectSound : Speakers (Steam Streaming Microphone)   (device #15 with 0 ins 8 outs)
  - ASIO : ASIO4ALL v2   (device #16 with 2 ins 2 outs)
  - ASIO : FL Studio ASIO   (device #17 with 2 ins 2 outs)
  - Windows WASAPI : Speakers (Realtek High Definition Audio)   (device #18 with 0 ins 2 outs)
  - Windows WASAPI : Speakers (Steam Streaming Speakers)   (device #19 with 0 ins 2 outs)
  - Windows WASAPI : Speakers (Steam Streaming Microphone)   (device #20 with 0 ins 2 outs)
  - Windows WASAPI : Microphone (Realtek High Definition Audio)   (device #21 with 2 ins 0 outs)
  - Windows WASAPI : Microphone (Steam Streaming Microphone)   (device #22 with 1 ins 0 outs)
  - Windows WASAPI : Microphone Array (Realtek High Definition Audio)   (device #23 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone (Realtek HD Audio Mic input)   (device #24 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone Array (Realtek HD Audio Mic Array input)   (device #25 with 2 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #26 with 0 ins 2 outs)
  - Windows WDM-KS : Stereo Mix (Realtek HD Audio Stereo input)   (device #27 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone (Steam Streaming Microphone Wave)   (device #28 with 8 ins 0 outs)
  - Windows WDM-KS : Speakers (Steam Streaming Microphone Wave)   (device #29 with 0 ins 8 outs)
  - Windows WDM-KS : Input (Steam Streaming Speakers Wave)   (device #30 with 8 ins 0 outs)
  - Windows WDM-KS : Speakers (Steam Streaming Speakers Wave)   (device #31 with 0 ins 8 outs)
  - Windows WDM-KS : Speakers ()   (device #32 with 0 ins 2 outs)
  - Windows WDM-KS : Speakers ()   (device #33 with 0 ins 2 outs)

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

Selecting default system input/output devices

Booting with:
  In: MME : Microphone (Realtek High Defini
  Out: MME : Speakers (Realtek High Definiti
SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'
could not initialize audio.

Process Log

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



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



@xavriley
Copy link
Collaborator

xavriley commented Nov 3, 2020

Cross posting my response from the in-thread forum:

It looks like

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

is the problem. Sonic Pi uses the SuperCollider project for synthesis. SuperCollider on Windows relies on PortAudio. There's a (long) GitHub issue here about it supercollider/supercollider#3976 but it looks like they got it working eventually by updating their version of ASIO4ALL supercollider/supercollider#3976 (comment)


Could you check out that issue above and see if any of the proposed fixes work for you? I think this error might be specific to the combination of drivers and soundcards being used so it would be nice to figure it out for other users in future.

@samaaron
Copy link
Collaborator

Closing for now due to inactivity.

We have completely overhauled the process with which we boot the system, and it would still be really great to know if this has somehow not resolved your situation.

Therefore, please feel free to re-open if this is still an issue with the recently released v4 of Sonic Pi - https://github.com/sonic-pi-net/sonic-pi/releases

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

4 participants