sonic-pi-net / sonic-pi

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

Critical error on boot in Windows 10 - version 3.3.1 #2964

Closed lawik closed 2 years ago

lawik commented 2 years ago

In case it matters, Bluetooth headphones, my locale (swedish) does have non-ascii characters in it. Seen both of those be asked about in other issues. Microphone permissions are set okay as well.

Hope the log helps.

Sonic Pi Boot Error Report

System Information

GUI Log

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

[GUI] -                            
[GUI] -                            
[GUI] -                            
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {1774db0f-d614-40cb-aa27-682a3daccf53}
[GUI] - ui locale:  en-US
[GUI] - sys locale: sv_SE
[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: 14376
[GUI] - wait for sync
[GUI] - waiting for Sonic Pi Server to boot...
................................
[GUI] - Sonic Pi Server failed to start with this error message: 
      > Server Exception:
 Boot - Unable to connect to SuperCollider
 ["C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:296:in `boot_and_wait'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:397:in `boot_server_windows'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:176:in `boot'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:58:in `initialize'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/server.rb:80:in `new'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/server.rb:80:in `initialize'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:117:in `new'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:117:in `init_scsynth'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:52:in `initialize'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `new'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `block (2 levels) in included'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/ixi.rb:72:in `block (2 levels) in included'", "C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:344:in `new'", "C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:344:in `<main>'"]
[GUI] - UDP OSC Server no longer 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

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

Server Output

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

Sonic Pi server booting...
The time is 2021-12-18 13:17:05 +0100
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
Started [4088] [-] "C:\Program Files\Sonic Pi\app\server\native\scsynth.exe" -u 51237 -a 1024 -m 131072 -D 0 -R 0 -l 1 -i 16 -o 16 -b 4096 -B 127.0.0.1 -U "C:/Program Files/Sonic Pi/app/server/native/plugins/" [-] C:/Users/lawik/AppData/Local/Temp/sonic-pi-pids/4088
Starting Server Runtime
Booting server...

Booting Sonic Pi
----------------

Booting on Windows
Boot - Starting the SuperCollider server...
Boot - SuperCollider booted successfully.
Boot - Connecting to the SuperCollider server...
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Sending /status to server: 127.0.0.1:51237
Boot - Unable to connect to SuperCollider
Failed to start server: Boot - Unable to connect to SuperCollider
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:296:in `boot_and_wait'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:397:in `boot_server_windows'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:176:in `boot'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:58:in `initialize'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/server.rb:80:in `new'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/server.rb:80:in `initialize'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:117:in `new'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:117:in `init_scsynth'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/studio.rb:52:in `initialize'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `new'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/sound.rb:89:in `block (2 levels) in included'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/ixi.rb:72:in `block (2 levels) in included'
C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:344:in `new'
C:/Program Files/Sonic Pi/app/gui/qt/build/Release/../../../../../app/server/ruby/bin/sonic-pi-server.rb:344:in `<main>'

Scsynth Output

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

# Starting SuperCollider 2021-12-18 13:17:05

Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Headset (Galaxy Buds+ (779D) Ha   (device #1 with 1 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #2 with 0 ins 2 outs)
  - MME : Headphones (Galaxy Buds+ (779D)   (device #3 with 0 ins 2 outs)
  - MME : DENON-AVAMP (Intel(R) Display A   (device #4 with 0 ins 8 outs)
  - MME : Headset (Galaxy Buds+ (779D) Ha   (device #5 with 0 ins 1 outs)
  - Windows DirectSound : Primary Sound Capture Driver   (device #6 with 2 ins 0 outs)
  - Windows DirectSound : Headset (Galaxy Buds+ (779D) Hands-Free AG Audio)   (device #7 with 1 ins 0 outs)
  - Windows DirectSound : Primary Sound Driver   (device #8 with 0 ins 2 outs)
  - Windows DirectSound : Headphones (Galaxy Buds+ (779D) Stereo)   (device #9 with 0 ins 2 outs)
  - Windows DirectSound : DENON-AVAMP (Intel(R) Display Audio)   (device #10 with 0 ins 8 outs)
  - Windows DirectSound : Headset (Galaxy Buds+ (779D) Hands-Free AG Audio)   (device #11 with 0 ins 1 outs)
  - ASIO : Realtek ASIO   (device #12 with 2 ins 8 outs)
  - Windows WASAPI : Headphones (Galaxy Buds+ (779D) Stereo)   (device #13 with 0 ins 2 outs)
  - Windows WASAPI : DENON-AVAMP (Intel(R) Display Audio)   (device #14 with 0 ins 2 outs)
  - Windows WASAPI : Headset (Galaxy Buds+ (779D) Hands-Free AG Audio)   (device #15 with 0 ins 1 outs)
  - Windows WASAPI : Headset (Galaxy Buds+ (779D) Hands-Free AG Audio)   (device #16 with 1 ins 0 outs)
  - Windows WDM-KS : Output (Intel(R) Display Audio Output 2)   (device #17 with 0 ins 8 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(Galaxy Buds+ (781C)))   (device #18 with 0 ins 1 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(Galaxy Buds+ (781C)))   (device #19 with 1 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #20 with 0 ins 8 outs)
  - Windows WDM-KS : Stereo Mix (Realtek HD Audio Stereo input)   (device #21 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone (Realtek HD Audio Mic input)   (device #22 with 2 ins 0 outs)
  - Windows WDM-KS : Line In (Realtek HD Audio Line input)   (device #23 with 2 ins 0 outs)
  - Windows WDM-KS : Headphones ()   (device #24 with 0 ins 2 outs)
  - Windows WDM-KS : Headphones ()   (device #25 with 0 ins 2 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(Galaxy Buds+ (779D)))   (device #26 with 0 ins 1 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(Galaxy Buds+ (779D)))   (device #27 with 1 ins 0 outs)

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

Selecting default system input/output devices

Booting with:
  In: MME : Headset (Galaxy Buds+ (779D) Ha
  Out: MME : Headphones (Galaxy Buds+ (779D)
  Sample rate: 44100.000
  Latency (in/out): 0.013 / 0.091 sec
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 64
SuperCollider 3 server ready.

Process Log

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


    ask-clear.rb

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

@lawik - out of curiosity, what happens when you change the default system audio devices to non-bluetooth devices and then start Sonic Pi up?

lawik commented 2 years ago

At this point I'm not entirely certain but I believe I tried that and it never did work. But my memory is foggy at this point.

ethancrawford commented 2 years ago

It would be nice to know for sure, and to see the log files if it is still unsuccessful 🙂

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