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

Sonic Pi - Server Boot Error... #2941

Closed
yerpdave opened this issue Nov 16, 2021 · 12 comments
Closed

Sonic Pi - Server Boot Error... #2941

yerpdave opened this issue Nov 16, 2021 · 12 comments

Comments

@yerpdave
Copy link

Hello! I'm looking to get started with Sonic Pi but unfortunately I keep getting this error after several attempts. Any help would be appreciated!

Sonic Pi Boot Error Report

System Information

  • Sonic Pi version: 3.3.1
  • OS: Windows 10 Version 2009

GUI Log

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

[GUI] -                            
[GUI] -                            
[GUI] -                            
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {02a5d1bc-2b40-4232-90b3-68de505d4cfa}
[GUI] - ui locale:  en-US
[GUI] - sys locale: en_US
[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 : 51239 : 51239
[GUI] - Port entry scsynth-send : 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 51239
[GUI] -    port: 51239 [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 51239
[GUI] -    port: 51239 [OK]
[GUI] - Erlang router port 51240
[GUI] -    port: 51240 [OK]
[GUI] - Websocket port 51241
[GUI] -    port: 51241 [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: 10548
[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:
 No such file or directory - wmic process where processid='8320' CALL setpriority "high priority"
 ["C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:234:in ``'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:234: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\David\.sonic-pi\log\server-errors.log


Server Output

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

Sonic Pi server booting...
The time is 2021-11-16 12:33:56 -0500
Using primary protocol: udp
Detecting port numbers...
Listen port: 51235
  - OK
Scsynth port: 51239
  - OK
Scsynth send port: 51239
  - OK
OSC cues port: 4560
  - OK
Erlang port: 51240
  - OK
Websocket port: 4562
  - OK
Opening UDP Server to listen to GUI on port: 51235
Starting Server Runtime
Booting server...


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

Booting on Windows
Boot - Starting the SuperCollider server...
Failed to start server: No such file or directory - wmic process where processid='8320' CALL setpriority "high priority"
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:234:in ``'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:234: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\David\.sonic-pi\log\scsynth.log

# Starting SuperCollider 2021-11-16 12:33:56

Process Log

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


	ask-clear.rb


Clearing pids: []
No pids to clear :-)
Started [10548] [-] "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 51239 51239 4560 51240 51241 [-] C:/Users/David/AppData/Local/Temp/sonic-pi-pids/10548



@ethancrawford
Copy link
Collaborator

Hi @yerpdave,

It seems your system is having difficulties trying to increase the priority of the Supercollider process. (We made Sonic Pi try to do this to improve performance in some cases). However, it has since appeared to cause problems with Sonic Pi starting up sometimes, as can be seen here.
We're not entirely sure why.
In any case, we have since removed that bit of code, and in Sonic Pi v4.0 (out in the hopefully not-too-distant future) this problem will no longer be around. (Or you can grab the most recent beta version before then if you are one of Sam's Patreon supporters).

@ghost
Copy link

ghost commented Nov 24, 2021

Wait so you are deliberatelly withholding a critical bug-fix for "open-source" software, under the condition of getting paid?

@sl4mmy
Copy link

sl4mmy commented Nov 24, 2021 via email

@ghost
Copy link

ghost commented Nov 24, 2021

Sure, wasnt obvious to me though. And dont tell me to "not be outraged"
I have plenty of reasons to be upset at devs these days, so mind your own business.

@leifnel
Copy link

leifnel commented Dec 9, 2021

I'm not sure if it's the same bug; I get this on windows 11 insider:

[GUI] - UDP OSC Server ready and listening
[GUI] - Ruby server pid registered: 32520
[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:
No such file or directory - wmic process where processid='30792' CALL setpriority "high priority"
["C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:234:in ``'", "C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/scsynthexternal.rb:234:in `boot_and_wait'", "C:/Program Files/Sonic

@ethancrawford
Copy link
Collaborator

@leifnel - yes indeed!
As mentioned above, the problematic code has now been removed 🙂 It might take a little more time before we're ready to release v4.0 with the fix in it, but you can certainly give it a go compiling your own build from source if you're prepared to do so - once you have a few dependencies downloaded, it's pretty straight forward. There's always the option of downloading the beta version too if you're one of Sam's Patreon supporters 👍

@yerpdave
Copy link
Author

@leifnel - yes indeed!

As mentioned above, the problematic code has now been removed 🙂 It might take a little more time before we're ready to release v4.0 with the fix in it, but you can certainly give it a go compiling your own build from source if you're prepared to do so - once you have a few dependencies downloaded, it's pretty straight forward. There's always the option of downloading the beta version too if you're one of Sam's Patreon supporters 👍

I installed the beta version after becoming a patreon supporter. Thankfully, Sonic Pi was able to load and open with that problematic code removed but unfortunately I'm faced with a new problem now. Once Sonic Pi loads and opens it closes immediately after running a few lines of codes. I'm not sure what's causing this issue.

@ethancrawford
Copy link
Collaborator

@yerpdave - sorry to hear that! I'm happy to try to troubleshoot that with you - are you able to provide log files again? there might be some helpful clues there 🙂

@yerpdave
Copy link
Author

yerpdave commented Dec 11, 2021

I appreciate the help Ethan! Here are my log files.

Daemon Log

[2021-12-11 07:10:08] Welcome to the Daemon Booter
[2021-12-11 07:10:08] checked port 32422, #<UDPSocket:0x0000021ad70de488>
[2021-12-11 07:10:08] checked port 32423, #<UDPSocket:0x0000021ad70dd9c0>
[2021-12-11 07:10:08] checked port 32424, #<UDPSocket:0x0000021ad70dd358>
[2021-12-11 07:10:08] checked port 32425, #<UDPSocket:0x0000021ad70dcca0>
[2021-12-11 07:10:08] checked port 4560, #<UDPSocket:0x0000021ad70c0370>
[2021-12-11 07:10:08] checked port 32426, #<UDPSocket:0x0000021ad70b3e68>
[2021-12-11 07:10:08] checked port 32427, #<UDPSocket:0x0000021ad70b14b0>
[2021-12-11 07:10:08] checked port 32428, #<UDPSocket:0x0000021ad70b08a8>
[2021-12-11 07:10:08] checked port 32429, #<UDPSocket:0x0000021ad70b0010>
[2021-12-11 07:10:08] Selected ports: 
[2021-12-11 07:10:08] {"daemon-keep-alive"=>32422, "server-listen-to-gui"=>32423, "gui-send-to-server"=>32423, "gui-listen-to-server"=>32424, "server-send-to-gui"=>32424, "scsynth"=>32425, "scsynth-send"=>32425, "osc-cues"=>4560, "tau"=>32426, "listen-to-tau"=>32427, "daemon-listen-to-tau"=>32428, "websocket"=>32429}
[2021-12-11 07:10:08] Booting Scsynth
[2021-12-11 07:10:08] Waiting for GUI on port 32422....
[2021-12-11 07:10:08] Connected to GUI!
[2021-12-11 07:10:08] Process Booter - booting C:/Program Files/Sonic Pi BETA/app/server/native/scsynth.exe with args ["-u", "32425", "-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 BETA/app/server/native/plugins"]
[2021-12-11 07:10:08] C:/Program Files/Sonic Pi BETA/app/server/native/scsynth.exe -u 32425 -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 BETA/app/server/native/plugins
[2021-12-11 07:10:08] Booting Tau
[2021-12-11 07:10:08] ----->   Accepting incoming connection from Tau
[2021-12-11 07:10:08] Process Booter - booting C:/Program Files/Sonic Pi BETA/app/server/beam/tau/boot-win.bat with args ["true", "false", "true", "true", "4560", "32426", "32427", "32428", "C:/Users/David/.sonic-pi/log/tau.log"]
[2021-12-11 07:10:08] C:/Program Files/Sonic Pi BETA/app/server/beam/tau/boot-win.bat true false true true 4560 32426 32427 32428 C:/Users/David/.sonic-pi/log/tau.log
[2021-12-11 07:10:08] Booting Spider Server
[2021-12-11 07:10:08] Process Booter - booting C:/Program Files/Sonic Pi BETA/app/server/native/ruby/bin/ruby.exe with args ["--enable-frozen-string-literal", "-E", "utf-8", "C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/sonic-pi-server.rb", "-u", "32423", "32424", "32425", "32425", "4560", "32426", "32427", "32429"]
[2021-12-11 07:10:08] C:/Program Files/Sonic Pi BETA/app/server/native/ruby/bin/ruby.exe --enable-frozen-string-literal -E utf-8 C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/sonic-pi-server.rb -u 32423 32424 32425 32425 4560 32426 32427 32429
[2021-12-11 07:22:05] Critical Error. Lost comms with GUI.
[2021-12-11 07:22:05] Daemon Booter is now exiting.
[2021-12-11 07:22:05] Cleaning up any running processes...
[2021-12-11 07:22:05] Process Booter - no need to kill C:/Program Files/Sonic Pi BETA/app/server/native/ruby/bin/ruby.exe with pid 27408 and args ["--enable-frozen-string-literal", "-E", "utf-8", "C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/sonic-pi-server.rb", "-u", "32423", "32424", "32425", "32425", "4560", "32426", "32427", "32429"] - already terminated, wait_thr status: #<Process::Waiter:0x0000021ad39b17a8 dead>, false
[2021-12-11 07:22:05] Process Booter - no need to kill C:/Program Files/Sonic Pi BETA/app/server/native/scsynth.exe with pid 26672 and args ["-u", "32425", "-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 BETA/app/server/native/plugins"] - already terminated, wait_thr status: #<Process::Waiter:0x0000021ad37cdfb8 dead>, false
[2021-12-11 07:22:05] Error attempting to kill process <ProcessBooter - cmd: C:/Program Files/Sonic Pi BETA/app/server/beam/tau/boot-win.bat, pid: 30564, args: ["true", "false", "true", "true", "4560", "32426", "32427", "32428", "C:/Users/David/.sonic-pi/log/tau.log"]>
[2021-12-11 07:22:05] NoMethodError
[2021-12-11 07:22:05] undefined method `kill' for nil:NilClass
[2021-12-11 07:22:05] ["C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/daemon.rb:666:in `kill'", "C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/daemon.rb:241:in `block (2 levels) in cleanup_any_running_processes'"]
[2021-12-11 07:22:05] Daemon Booter - Over and Out.

GUI Log

[API] [INFO ] : port: 32422
[API] [INFO ] : port: 32424
[API] [INFO ] : port: 32423
[API] [INFO ] : port: 32425
[API] [INFO ] : port: 4560
[API] [INFO ] : Setting up Boot Daemon keep alive loop
[API] [INFO ] : API Init Started...
[API] [INFO ] : API State set to: Initializing...
[API] [INFO ] : Going to start pinging server...
[GUI] [i18n] - Looping through preferred ui languages
[API] [INFO ] : Starting UDP OSC Server on port 32424...
[API] [INFO ] : Pinging Spider Server until a response is received...
[API] [INFO ] : Waiting for Sonic Pi Spider Server to respond...
[API] [INFO ] : UDP OSC Server ready and listening
[GUI] - Language setting: system_language
[GUI] - System language: en_US
[GUI] [i18n] - Looping through preferred ui languages
[GUI] - Using language: en
[GUI] [i18n] - Loading translations for en
[GUI] - translations available 
[GUI] - hiding main window
[GUI] - initialising toolbar icons
[GUI] - setting up window structure
[Debug] Adding language combo box entries...
2
[Debug] Adding language system_language to the combo box
[Debug] Adding language en_GB to the combo box
[GUI] - restoring scope states 
[GUI] - creating status bar
[GUI] - creating info panel
[GUI] - creating shortcuts
[GUI] - creating tool bar
[GUI] - initialising documentation window
[API] [ERROR] : Waiting Until Ready... 59
[API] [INFO ] : .
[API] [ERROR] : Waiting Until Ready... 58
[API] [INFO ] : .
[API] [ERROR] : Waiting Until Ready... 57
[API] [INFO ] : .
[API] [ERROR] : Waiting Until Ready... 56
[API] [INFO ] : .
[API] [INFO ] : Sonic Pi Server connection established in 4.01807s
[API] [INFO ] : API State set to: Created...
[GUI] - honour prefs
[GUI] - asking OSC server to start
[GUI] - cue port in internal mode
[GUI] - update prefs icon
[GUI] - toggle icons
[GUI] - full screen
[GUI] - load workspaces
[GUI] - loading workspaces
[GUI] - load request Version
[GUI] - Change Volume to 80
[GUI] - boot sequence completed.
[GUI] - asking OSC server to start
[GUI] - cue port in internal mode
[API] [INFO ] : UDP OSC Server no longer listening
[GUI] - writing settings
[GUI] - initiating Shutdown...
[GUI] - shutting down scope...
[GUI] - saving workspaces
[GUI] - exiting. Cheerio :-)
[API] [INFO ] : Initiating Shutdown
[API] [INFO ] : Shutting down with state: Created
[API] [INFO ] : Resetting audio processor...
[API] [INFO ] : Stopping OSC server...
[API] [INFO ] : Stopping UDP OSC Server...
[API] [INFO ] : Stopping daemon keep alive loop
[API] [INFO ] : Closing socket to Boot Daemon...
[API] [INFO ] : API State set to: Reset...
[API] [INFO ] : Waiting for Daemon keep alive loop to have stopped...
[API] [INFO ] : API Shutdown complete...

Server Errors

(file was empty)

Server Output

(file was empty)

Scsynth Output


Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Microphone in (Realtek(R) Audio   (device #1 with 2 ins 0 outs)
  - MME : Headphone (Realtek(R) Audio)   (device #2 with 2 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #3 with 0 ins 2 outs)
  - MME : Speaker / Headphone (Realtek(R)   (device #4 with 0 ins 2 outs)
  - Windows DirectSound : Primary Sound Capture Driver   (device #5 with 2 ins 0 outs)
  - Windows DirectSound : Microphone in (Realtek(R) Audio)   (device #6 with 2 ins 0 outs)
  - Windows DirectSound : Headphone (Realtek(R) Audio)   (device #7 with 2 ins 0 outs)
  - Windows DirectSound : Primary Sound Driver   (device #8 with 0 ins 2 outs)
  - Windows DirectSound : Speaker / Headphone (Realtek(R) Audio)   (device #9 with 0 ins 2 outs)
  - Windows WASAPI : Speaker / Headphone (Realtek(R) Audio)   (device #10 with 0 ins 2 outs)
  - Windows WASAPI : Headphone (Realtek(R) Audio)   (device #11 with 2 ins 0 outs)
  - Windows WASAPI : Microphone in (Realtek(R) Audio)   (device #12 with 2 ins 0 outs)
  - Windows WDM-KS : Stereo Mix (Realtek HD Audio Stereo input)   (device #13 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone Array (Realtek HD Audio Mic input)   (device #14 with 2 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #15 with 0 ins 2 outs)
  - Windows WDM-KS : Headphones ()   (device #16 with 0 ins 2 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(LE-Bose QC35 II))   (device #17 with 0 ins 1 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(LE-Bose QC35 II))   (device #18 with 1 ins 0 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(David’s AirPods Pro))   (device #19 with 0 ins 1 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(David’s AirPods Pro))   (device #20 with 1 ins 0 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(BeatsStudio Wireless))   (device #21 with 0 ins 1 outs)
  - Windows WDM-KS : Headset (@System32\drivers\bthhfenum.sys,#2;%1 Hands-Free AG Audio%0

;(BeatsStudio Wireless))   (device #22 with 1 ins 0 outs)
  - Windows WDM-KS : Headphones ()   (device #23 with 0 ins 2 outs)
  - Windows WDM-KS : Headphones ()   (device #24 with 0 ins 2 outs)
  - Windows WDM-KS : Line Out (SteelSeries_Sonar_VAD Chat Capture Wave)   (device #25 with 0 ins 2 outs)
  - Windows WDM-KS : SteelSeries Sonar - Microphone (SteelSeries_Sonar_VAD Chat Capture Wave)   (device #26 with 2 ins 0 outs)
  - Windows WDM-KS : Output (SteelSeries_Sonar_VAD Chat Wave Speaker)   (device #27 with 0 ins 2 outs)
  - Windows WDM-KS : Headphones (SteelSeries_Sonar_VAD Game Wave Speaker)   (device #28 with 0 ins 8 outs)

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

Selecting default system input/output devices

Booting with:
  In: MME : Microphone in (Realtek(R) Audio
  Out: MME : Speaker / Headphone (Realtek(R)
  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.
SC_UdpInPort: received error - No connection could be made because the target machine actively refused it

Process Log

(file was empty)

@ethancrawford
Copy link
Collaborator

ethancrawford commented Dec 11, 2021

Hmm.

There are only two things that stand out to me as being out-of-the-ordinary.
These few lines from daemon.log:

[2021-12-11 07:22:05] Error attempting to kill process <ProcessBooter - cmd: C:/Program Files/Sonic Pi BETA/app/server/beam/tau/boot-win.bat, pid: 30564, args: ["true", "false", "true", "true", "4560", "32426", "32427", "32428", "C:/Users/David/.sonic-pi/log/tau.log"]>
[2021-12-11 07:22:05] NoMethodError
[2021-12-11 07:22:05] undefined method kill' for nil:NilClass [2021-12-11 07:22:05] ["C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/daemon.rb:666:in kill'", "C:/Program Files/Sonic Pi BETA/app/server/ruby/bin/daemon.rb:241:in `block (2 levels) in cleanup_any_running_processes'"]

and this from scsynth.log:

SC_UdpInPort: received error - No connection could be made because the target machine actively refused it

The first of these I suspect is less related to your particular problem, or at least only a later symptom of it, as it appears to be during part of the shutdown process, not something that actually causes a crash.

The second is a little more suspicious, but I am not sure of the actual cause.

@samaaron do you have any suggestions?

@samaaron
Copy link
Collaborator

Looks like supercollider, the audio server isn't able to open the UDP port on the local loop back network it needs to communicate with the rest of the system. I've never seen this particular error before, perhaps might be due to some network security software/firewall the user has installed?

@yerpdave
Copy link
Author

Looks like supercollider, the audio server isn't able to open the UDP port on the local loop back network it needs to communicate with the rest of the system. I've never seen this particular error before, perhaps might be due to some network security software/firewall the user has installed?

That seems to have been in it. I disabled Windows Defender Firewall momentarily and tried running the Sonic Pi Beta again. It has been running smoothly as a result and hasn't closed out after running lines of code. Thank you for the insight, I greatly appreciate it!

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

5 participants