sonic-pi-net / sonic-pi

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

Server cannot be started (on Win10) #2796

Closed chos82 closed 2 years ago

chos82 commented 3 years ago

Hey,

cannot start sonic-PI. Details show:

`Sonic Pi Boot Error Report

System Information

GUI Log

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

[GUI] -                            
[GUI] -                            
[GUI] -                            
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {fa4aa467-a99d-4b32-a99e-e47c8391b831}
[GUI] - ui locale:  de-DE
[GUI] - sys locale: de_DE
[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: 9236
[GUI] - wait for sync
[GUI] - waiting for Sonic Pi Server to boot...
............................................................
[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\choss\.sonic-pi\log\server-errors.log

Server Output

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

Sonic Pi server booting...
The time is 2021-07-09 19:20:04 +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: 51238
  - OK
Websocket port: 4562
  - OK
Opening UDP Server to listen to GUI on port: 51235
ERROR: Unable to write information for PID 4668 to path C:/Users/choss/AppData/Local/Temp/sonic-pi-pids/4668!
undefined method `cmdline' for nil:NilClass

Scsynth Output

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

# Starting SuperCollider 2021-07-09 19:20:04

Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Stereomix (Realtek High Definit   (device #1 with 2 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #2 with 0 ins 2 outs)
  - MME : E2350 (NVIDIA High Definition A   (device #3 with 0 ins 2 outs)
  - MME : Realtek Digital Output (Realtek   (device #4 with 0 ins 2 outs)
  - MME : LG Ultra HD (NVIDIA High Defini   (device #5 with 0 ins 2 outs)
  - Windows DirectSound : Primärer Soundaufnahmetreiber   (device #6 with 2 ins 0 outs)
  - Windows DirectSound : Stereomix (Realtek High Definition Audio)   (device #7 with 2 ins 0 outs)
  - Windows DirectSound : Primärer Soundtreiber   (device #8 with 0 ins 2 outs)
  - Windows DirectSound : E2350 (NVIDIA High Definition Audio)   (device #9 with 0 ins 2 outs)
  - Windows DirectSound : Realtek Digital Output (Realtek High Definition Audio)   (device #10 with 0 ins 2 outs)
  - Windows DirectSound : LG Ultra HD (NVIDIA High Definition Audio)   (device #11 with 0 ins 2 outs)
  - ASIO : Generic Low Latency ASIO Driver   (device #12 with 0 ins 2 outs)
  - ASIO : Virus USB ASIO driver   (device #13 with 2 ins 2 outs)
  - Windows WASAPI : Realtek Digital Output (Realtek High Definition Audio)   (device #14 with 0 ins 2 outs)
  - Windows WASAPI : LG Ultra HD (NVIDIA High Definition Audio)   (device #15 with 0 ins 2 outs)
  - Windows WASAPI : E2350 (NVIDIA High Definition Audio)   (device #16 with 0 ins 2 outs)
  - Windows WASAPI : Stereomix (Realtek High Definition Audio)   (device #17 with 2 ins 0 outs)
  - Windows WDM-KS : Output (NVIDIA High Definition Audio)   (device #18 with 0 ins 2 outs)
  - Windows WDM-KS : Output ()   (device #19 with 0 ins 2 outs)
  - Windows WDM-KS : Eingang (Realtek HD Audio Line input)   (device #20 with 2 ins 0 outs)
  - Windows WDM-KS : Mikrofon (Realtek HD Audio Mic input)   (device #21 with 2 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #22 with 0 ins 8 outs)
  - Windows WDM-KS : Stereomix (Realtek HD Audio Stereo input)   (device #23 with 2 ins 0 outs)
  - Windows WDM-KS : SPDIF Out (Realtek HDA SPDIF Out)   (device #24 with 0 ins 2 outs)
  - Windows WDM-KS : FrontMic (Realtek HD Audio Front Mic input)   (device #25 with 2 ins 0 outs)
  - Windows WDM-KS : Kopfhörer ()   (device #26 with 0 ins 2 outs)
  - Windows WDM-KS : Line ()   (device #27 with 2 ins 0 outs)
  - Windows WDM-KS : Output (@System32\drivers\bthhfenum.sys,#4;%1 Hands-Free HF Audio%0

;(motorola one vision))   (device #28 with 0 ins 1 outs)
  - Windows WDM-KS : Input (@System32\drivers\bthhfenum.sys,#4;%1 Hands-Free HF Audio%0

;(motorola one vision))   (device #29 with 1 ins 0 outs)
  - Windows WDM-KS : Kopfhörer (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(HDJ-X5BT))   (device #30 with 0 ins 1 outs)
  - Windows WDM-KS : Kopfhörer (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(HDJ-X5BT))   (device #31 with 1 ins 0 outs)

Requested devices:
  In:
  - (default)
  Out:
  - (default)

Selecting default system input/output devices

Booting with:
  In: MME : Stereomix (Realtek High Definit
  Out: MME : E2350 (NVIDIA High Definition A
SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'
could not initialize audio.

Process Log

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


    ask-clear.rb

Clearing pids: []
No pids to clear :-)
Started [9236] [-] "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 51238 51239 [-] C:/Users/choss/AppData/Local/Temp/sonic-pi-pids/9236
ERROR: Unable to write information for PID 4668 to path C:/Users/choss/AppData/Local/Temp/sonic-pi-pids/4668!
undefined method `cmdline' for nil:NilClass

    ask-clear.rb

Clearing pids: ["9236"]

Clearing [9236]
  -- 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 51238 51239
  -- removing C:/Users/choss/AppData/Local/Temp/sonic-pi-pids/9236

`

samaaron commented 2 years ago

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

chos82 commented 2 years ago

Hi Sam,

today I downloaded and installed the MSI again. Works like a charm out of the box :)

Cheers, Chris

Am Di., 19. Juli 2022 um 23:45 Uhr schrieb Sam Aaron < @.***>:

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

— Reply to this email directly, view it on GitHub https://github.com/sonic-pi-net/sonic-pi/issues/2796#issuecomment-1189580853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGMDKJ77TOWDLEQUYBNF6DVU4OWLANCNFSM5ADEZZ4A . You are receiving this because you authored the thread.Message ID: @.***>

samaaron commented 2 years ago

@chos82 - this is wonderful to hear! Thanks so much for letting me know.

Have lots of fun with Sonic Pi and please do consider sharing your adventure with us over here: https://in-thread.sonic-pi.net