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

Closed
Iryn-e opened this issue Oct 18, 2021 · 2 comments
Closed

Critical error. Could not boot Sonic Pi Server #2891

Iryn-e opened this issue Oct 18, 2021 · 2 comments

Comments

@Iryn-e
Copy link

Iryn-e commented Oct 18, 2021

Sonic Pi Boot Error Report
==================


System Information
----------------

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


GUI Log
-------

**`C:\Users\Joey.Joey-PC\.sonic-pi\log\gui.log`**

[GUI] -
[GUI] -
[GUI] -
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -
[GUI] - {1c2eff99-8bb2-43c7-ae22-7c96a2b599ec}
[GUI] - ui locale: fr-FR
[GUI] - sys locale: fr_FR
[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: 8744
[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\Joey.Joey-PC\.sonic-pi\log\server-errors.log`**


Server Output
-------------

**`C:\Users\Joey.Joey-PC\.sonic-pi\log\server-output.log`**

Sonic Pi server booting...
The time is 2021-10-18 20:37:12 +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 3168 to path C:/Users/JOEY~1.JOE/AppData/Local/Temp/sonic-pi-pids/3168!
    undefined method `cmdline' for nil:NilClass


Scsynth Output
--------------

**`C:\Users\Joey.Joey-PC\.sonic-pi\log\scsynth.log`**

Starting SuperCollider 2021-10-18 20:37:13

Device options:

Requested devices:
In:

  • (default)
    Out:
  • (default)

Selecting default system input/output devices

Booting with:
In: MME : Microphone (Avnex Virtual Audio
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\Joey.Joey-PC\.sonic-pi\log\processes.log`**
ask-clear.rb

Clearing pids: []
No pids to clear :-)
Started [8744] [-] "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/JOEY1.JOE/AppData/Local/Temp/sonic-pi-pids/8744
ERROR: Unable to write information for PID 3168 to path C:/Users/JOEY
1.JOE/AppData/Local/Temp/sonic-pi-pids/3168!
undefined method `cmdline' for nil:NilClass

How do I fix this problem? What's this 'cmdline' method I'm supposed to have, how can I fix this?

Edit: If there is additional information you require, please let me know so I can provide them. all I did is copy-paste the logs, not sure if that's all that was needed to be done, nonetheless I really appreciate the help!

@ethancrawford
Copy link
Collaborator

Hey @Iryn-e,

The cmdline error is a side effect of some of our code for handling the Sonic Pi boot up process, only vaguely related to your particular problem. It is generally harmless. (Thankfully also, it will no longer be a problem in the upcoming v4.0 release of Sonic Pi, as we have completely rewritten that part of the system 😄 )

Looking at the log files above, it seems that PortAudio (the audio driver that Windows is using) is unable to successfully open the mentioned devices for input and output.
Unfortunately PortAudio is not always smart enough to work with diverse combinations of devices like this... and it doesn't really provide very helpful error messages either!
There is something that you can try: if you are willing to test booting Sonic Pi with alternate input/output devices - you can edit a config file we have, which will tell Sonic Pi to try to connect to specific audio devices.
See an example of the config file here:
https://github.com/sonic-pi-net/sonic-pi/blob/dev/app/config/user-examples/audio-settings.toml
(The real version belongs in your .sonic-pi\config folder, found from your home folder).

You could try changing this line:


to say:

 sound_card_name = "ASIO"

Which would tell Sonic Pi to attempt to boot up and connect to your sound hardware via the generic ASIO interface.

Let us know how it goes if you try this - or if you have any further questions 👍

@samaaron
Copy link
Collaborator

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

3 participants