hydrogen-music / hydrogen

The advanced drum machine for Linux, macOS, and Windows
http://www.hydrogen-music.org
GNU General Public License v2.0
1.06k stars 173 forks source link

Cannot connect to server socket err = Нет такого файла или каталога #2002

Open krotesk opened 3 months ago

krotesk commented 3 months ago

The program terminated after attempting to save the project.

Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
Automatic start of JACK server is disabled at configure time
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Hydrogen 1.2.3- [Jan 13 2024]  [http://www.hydrogen-music.org]
Copyright 2002-2008 Alessandro Cominu
Copyright 2008-2024 The hydrogen development team
Hydrogen comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details.
(E) JackAudioDriver::init Unknown status with JACK server.
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
Automatic start of JACK server is disabled at configure time
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
(E) JackAudioDriver::init Unknown status with JACK server.
(E) AudioEngine::createAudioDriver Error code [-1] while initializing audio driver [JACK].
krotesk commented 3 months ago
(E) JackAudioDriver::init Unknown status with JACK server.
(E) JackAudioDriver::init Unknown status with JACK server.
(E) AudioEngine::createAudioDriver Error code [-1] while initializing audio driver [JACK].
theGreatWhiteShark commented 3 months ago

Hey @krotesk ,

Terminated as in "there was a segfault"?

Could you attach the more verbose log created using hydrogen -VDebug?

krotesk commented 3 months ago
hydrogen -VDebug                                                IOT ✘ 

Hydrogen 1.2.3- [Jan 13 2024]  [http://www.hydrogen-music.org]
Copyright 2002-2008 Alessandro Cominu
Copyright 2008-2024 The hydrogen development team
Hydrogen comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details.
(I) Filesystem::check_sys_paths system wide data path /usr/share/hydrogen/data/ is usable.
(I) Filesystem::check_usr_paths user path /home/dmitriy/.hydrogen/data/ is usable.
(I) Filesystem::info Tmp dir                    : /tmp/hydrogen/
(I) Filesystem::info Click file                 : /usr/share/hydrogen/data/click.wav
(I) Filesystem::info Empty song                 : /home/dmitriy/.hydrogen/data/emptySong.h2song
(I) Filesystem::info Demos dir                  : /usr/share/hydrogen/data/demo_songs/
(I) Filesystem::info Documentation dir          : /usr/share/hydrogen/data/doc/
(I) Filesystem::info System drumkit dir         : /usr/share/hydrogen/data/drumkits/
(I) Filesystem::info Empty sample               : /usr/share/hydrogen/data/emptySample.wav
(I) Filesystem::info Default config             : /usr/share/hydrogen/data/hydrogen.default.conf
(I) Filesystem::info Internationalization dir   : /usr/share/hydrogen/data/i18n/
(I) Filesystem::info Images dir                 : /usr/share/hydrogen/data/img/
(I) Filesystem::info XSD dir                    : /usr/share/hydrogen/data/xsd/
(I) Filesystem::info drumkit pattern XSD        : /usr/share/hydrogen/data/xsd/drumkit_pattern.xsd
(I) Filesystem::info drumkit XSD                : /usr/share/hydrogen/data/xsd/drumkit.xsd
(I) Filesystem::info drumkit XSD                : /usr/share/hydrogen/data/xsd/playlist.xsd
(I) Filesystem::info User config                : /home/dmitriy/.hydrogen/hydrogen.conf
(I) Filesystem::info User Click file            : /usr/share/hydrogen/data/click.wav
(I) Filesystem::info Cache dir                  : /home/dmitriy/.hydrogen/data/cache/
(I) Filesystem::info Reporitories Cache dir     : /home/dmitriy/.hydrogen/data/cache/repositories/
(I) Filesystem::info User drumkit dir           : /home/dmitriy/.hydrogen/data/drumkits/
(I) Filesystem::info Patterns dir               : /home/dmitriy/.hydrogen/data/patterns/
(I) Filesystem::info Playlist dir               : /home/dmitriy/.hydrogen/data/playlists/
(I) Filesystem::info Plugins dir                : /home/dmitriy/.hydrogen/data/plugins/
(I) Filesystem::info Scripts dir                : /home/dmitriy/.hydrogen/data/scripts/
(I) Filesystem::info Songs dir                  : /home/dmitriy/.hydrogen/data/songs/
(I) Preferences::loadPreferences Loading preferences file (SYS) [/usr/share/hydrogen/data/hydrogen.default.conf]
(W) Preferences::readWindowProperties Error reading configuration file: playlistDialog_properties node not found
(W) Preferences::readWindowProperties Error reading configuration file: director_properties node not found
(W) XMLNode::read_bool Using default value 1 for showExportDrumkitLicenseWarning
(W) XMLNode::read_bool Using default value 1 for showExportDrumkitCopyleftWarning
(W) XMLNode::read_bool Using default value 1 for showExportDrumkitAttributionWarning
(W) XMLNode::read_child_node XML node songEditor->virtualRowColor should exists.
(W) XMLNode::read_color Using default value [#787061] for node [virtualRowColor]
(I) Preferences::loadPreferences Loading preferences file (USER) [/home/dmitriy/.hydrogen/hydrogen.conf]
(I) ::int main(int, char**) Using QT version 5.15.14
(I) ::int main(int, char**) Using data path: /usr/share/hydrogen/data/
qt.core.logging: Ignoring malformed logging rule: '*=false''
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
(I) ::int main(int, char**) Using locale: /usr/share/hydrogen/data/i18n/
(I) Hydrogen::Hydrogen [Hydrogen]
(I) Effects::getPluginList *** [getPluginList] reading directory: /home/dmitriy/.hydrogen/data/plugins/
(I) Effects::getPluginList Loaded 0 LADSPA plugins
(I) AudioEngine::startAudioDrivers 
(I) AudioEngine::createAudioDriver Creating driver [PulseAudio]
(I) ::void* H2Core::alsaMidiDriver_thread(void*) starting
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI input port name: None
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI input addr client: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI input addr port: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) Midi input port at 128:0
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI output port name: None
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI output addr client: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI output addr port: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) Midi output port at 128:1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI Thread INIT
(I) SoundLibraryDatabase::updateDrumkits Drumkit [GMRockKit] loaded from [/usr/share/hydrogen/data/drumkits/GMRockKit]
(I) SoundLibraryDatabase::updateDrumkits Drumkit [TR808EmulationKit] loaded from [/usr/share/hydrogen/data/drumkits/TR808EmulationKit]
(W) ::void NsmClient::createInitialClient() No NSM URL available: no NSM management

(I) Song::Song INIT 'Untitled Song'
(I) Song::setDrumkit Loading instrument (1 of 18) [Kick]
(I) Song::setDrumkit Loading instrument (2 of 18) [Stick]
(I) Song::setDrumkit Loading instrument (3 of 18) [Snare]
(I) Song::setDrumkit Loading instrument (4 of 18) [Hand Clap]
(I) Song::setDrumkit Loading instrument (5 of 18) [Snare Rimshot]
(I) Song::setDrumkit Loading instrument (6 of 18) [Floor Tom]
(I) Song::setDrumkit Loading instrument (7 of 18) [Hat Closed]
(I) Song::setDrumkit Loading instrument (8 of 18) [Tom 2]
(I) Song::setDrumkit Loading instrument (9 of 18) [Hat Pedal]
(I) Song::setDrumkit Loading instrument (10 of 18) [Tom 1]
(I) Song::setDrumkit Loading instrument (11 of 18) [Hat Open]
(I) Song::setDrumkit Loading instrument (12 of 18) [Cowbell]
(I) Song::setDrumkit Loading instrument (13 of 18) [Ride]
(I) Song::setDrumkit Loading instrument (14 of 18) [Crash]
(I) Song::setDrumkit Loading instrument (15 of 18) [Ride 2]
(I) Song::setDrumkit Loading instrument (16 of 18) [Splash]
(I) Song::setDrumkit Loading instrument (17 of 18) [Hat Semi-Open]
(I) Song::setDrumkit Loading instrument (18 of 18) [Bell]
(I) AudioEngine::setSong Set song: Untitled Song
(I) Preferences::savePreferences Saving preferences file /home/dmitriy/.hydrogen/hydrogen.conf
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
(I) AudioEngine::startPlayback 
(I) Song::save Saving song to [/home/dmitriy/.hydrogen/data/.emptySong.autosave.h2song]
(I) Song::save Save was successful.
(I) Song::save Saving song to [/home/dmitriy/.hydrogen/data/.emptySong.autosave.h2song]
(I) Song::save Save was successful.
(I) AudioEngine::stopPlayback 
qt.core.logging: Ignoring malformed logging rule: '*=false''
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
krotesk commented 3 months ago
env | grep QT                                                       ✔ 
QT_IM_MODULE=ibus
QT_AUTO_SCREEN_SCALE_FACTOR=1
QT_LOGGING_RULES=*=false' 
QT_QPA_PLATFORM=wayland
QT_QPA_PLATFORMTHEME=qt5ct
theGreatWhiteShark commented 3 months ago

hydrogen -VDebug  IOT ✘

env | grep QT  ✔

Hmm. From the look of your two latter logs everything works just fine.

Cannot connect to server socket err = Нет такого файла или каталога Cannot connect to server request channel

The first log indicated that JACK is not properly set up on your system and Hydrogen can not connect to it. When starting Hydrogen with -d jack or selecting JACK as audio driver in the Preferences, this could result in no audio driver being present at all. Hydrogen might misbehave in such a scenario. Selecting driver Auto instead is often a better choice. It will make Hydrogen fall back to another driver in case the JACK one did not work.

What was the behavior you considered a bug?

krotesk commented 3 months ago

OK, I selected auto in driver selection (I restarted the program after that). I make one change in the project and try to save - the program just terminates with an error.

(E) JackAudioDriver::init Unknown status with JACK server.
(E) JackAudioDriver::init Unknown status with JACK server.
(E) AudioEngine::createAudioDriver Error code [-1] while initializing audio driver [JACK].
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
Automatic start of JACK server is disabled at configure time
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Hydrogen 1.2.3- [Jan 13 2024]  [http://www.hydrogen-music.org]
Copyright 2002-2008 Alessandro Cominu
Copyright 2008-2024 The hydrogen development team
Hydrogen comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details.
(E) JackAudioDriver::init Unknown status with JACK server.
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
Automatic start of JACK server is disabled at configure time
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
(E) JackAudioDriver::init Unknown status with JACK server.
(E) AudioEngine::createAudioDriver Error code [-1] while initializing audio driver [JACK].
theGreatWhiteShark commented 3 months ago

OK, I selected auto in driver selection (I restarted the program after that). I make one change in the project and try to save - the program just terminates with an error.

Hmm. That's very odd.

Especially since in one of your logs Hydrogen saved the project without any problems

hydrogen -VDebug  IOT ✘

Hydrogen 1.2.3- [Jan 13 2024] [http://www.hydrogen-music.org] Copyright 2002-2008 Alessandro Cominu Copyright 2008-2024 The hydrogen development team Hydrogen comes with ABSOLUTELY NO WARRANTY [...]

Could you run it in verbose mode and make it terminate? hydrogen -VDebug -d auto

krotesk commented 3 months ago

Could you run it in verbose mode and make it terminate? hydrogen -VDebug -d auto

hydrogen -VDebug -d auto                                            ✔  26s  

Hydrogen 1.2.3- [Jan 13 2024]  [http://www.hydrogen-music.org]
Copyright 2002-2008 Alessandro Cominu
Copyright 2008-2024 The hydrogen development team
Hydrogen comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details.
(I) Filesystem::check_sys_paths system wide data path /usr/share/hydrogen/data/ is usable.
(I) Filesystem::check_usr_paths user path /home/dmitriy/.hydrogen/data/ is usable.
(I) Filesystem::info Tmp dir                    : /tmp/hydrogen/
(I) Filesystem::info Click file                 : /usr/share/hydrogen/data/click.wav
(I) Filesystem::info Empty song                 : /home/dmitriy/.hydrogen/data/emptySong.h2song
(I) Filesystem::info Demos dir                  : /usr/share/hydrogen/data/demo_songs/
(I) Filesystem::info Documentation dir          : /usr/share/hydrogen/data/doc/
(I) Filesystem::info System drumkit dir         : /usr/share/hydrogen/data/drumkits/
(I) Filesystem::info Empty sample               : /usr/share/hydrogen/data/emptySample.wav
(I) Filesystem::info Default config             : /usr/share/hydrogen/data/hydrogen.default.conf
(I) Filesystem::info Internationalization dir   : /usr/share/hydrogen/data/i18n/
(I) Filesystem::info Images dir                 : /usr/share/hydrogen/data/img/
(I) Filesystem::info XSD dir                    : /usr/share/hydrogen/data/xsd/
(I) Filesystem::info drumkit pattern XSD        : /usr/share/hydrogen/data/xsd/drumkit_pattern.xsd
(I) Filesystem::info drumkit XSD                : /usr/share/hydrogen/data/xsd/drumkit.xsd
(I) Filesystem::info drumkit XSD                : /usr/share/hydrogen/data/xsd/playlist.xsd
(I) Filesystem::info User config                : /home/dmitriy/.hydrogen/hydrogen.conf
(I) Filesystem::info User Click file            : /usr/share/hydrogen/data/click.wav
(I) Filesystem::info Cache dir                  : /home/dmitriy/.hydrogen/data/cache/
(I) Filesystem::info Reporitories Cache dir     : /home/dmitriy/.hydrogen/data/cache/repositories/
(I) Filesystem::info User drumkit dir           : /home/dmitriy/.hydrogen/data/drumkits/
(I) Filesystem::info Patterns dir               : /home/dmitriy/.hydrogen/data/patterns/
(I) Filesystem::info Playlist dir               : /home/dmitriy/.hydrogen/data/playlists/
(I) Filesystem::info Plugins dir                : /home/dmitriy/.hydrogen/data/plugins/
(I) Filesystem::info Scripts dir                : /home/dmitriy/.hydrogen/data/scripts/
(I) Filesystem::info Songs dir                  : /home/dmitriy/.hydrogen/data/songs/
(I) Preferences::loadPreferences Loading preferences file (SYS) [/usr/share/hydrogen/data/hydrogen.default.conf]
(W) Preferences::readWindowProperties Error reading configuration file: playlistDialog_properties node not found
(W) Preferences::readWindowProperties Error reading configuration file: director_properties node not found
(W) XMLNode::read_bool Using default value 1 for showExportDrumkitLicenseWarning
(W) XMLNode::read_bool Using default value 1 for showExportDrumkitCopyleftWarning
(W) XMLNode::read_bool Using default value 1 for showExportDrumkitAttributionWarning
(W) XMLNode::read_child_node XML node songEditor->virtualRowColor should exists.
(W) XMLNode::read_color Using default value [#787061] for node [virtualRowColor]
(I) Preferences::loadPreferences Loading preferences file (USER) [/home/dmitriy/.hydrogen/hydrogen.conf]
(I) ::int main(int, char**) Using QT version 5.15.14
(I) ::int main(int, char**) Using data path: /usr/share/hydrogen/data/
qt.core.logging: Ignoring malformed logging rule: '*=false''
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
(I) ::int main(int, char**) Using locale: /usr/share/hydrogen/data/i18n/
(I) Hydrogen::Hydrogen [Hydrogen]
(I) Effects::getPluginList *** [getPluginList] reading directory: /home/dmitriy/.hydrogen/data/plugins/
(I) Effects::getPluginList Loaded 0 LADSPA plugins
(I) AudioEngine::startAudioDrivers 
(I) AudioEngine::createAudioDriver Creating driver [JACK]
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
Automatic start of JACK server is disabled at configure time
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
(E) JackAudioDriver::init Unknown status with JACK server.
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
Automatic start of JACK server is disabled at configure time
jack server is not running or cannot be started
(E) JackAudioDriver::init Unknown status with JACK server.
(E) AudioEngine::createAudioDriver Error code [-1] while initializing audio driver [JACK].
(I) JackAudioDriver::disconnect disconnect
(I) AudioEngine::createAudioDriver Creating driver [PulseAudio]
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
(I) ::void* H2Core::alsaMidiDriver_thread(void*) starting
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI input port name: None
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI input addr client: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI input addr port: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) Midi input port at 128:0
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI output port name: None
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI output addr client: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI output addr port: -1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) Midi output port at 128:1
(I) ::void* H2Core::alsaMidiDriver_thread(void*) MIDI Thread INIT
(I) SoundLibraryDatabase::updateDrumkits Drumkit [GMRockKit] loaded from [/usr/share/hydrogen/data/drumkits/GMRockKit]
(I) SoundLibraryDatabase::updateDrumkits Drumkit [TR808EmulationKit] loaded from [/usr/share/hydrogen/data/drumkits/TR808EmulationKit]
(W) ::void NsmClient::createInitialClient() No NSM URL available: no NSM management

(I) Song::Song INIT 'Untitled Song'
(I) Song::setDrumkit Loading instrument (1 of 18) [Kick]
(I) Song::setDrumkit Loading instrument (2 of 18) [Stick]
(I) Song::setDrumkit Loading instrument (3 of 18) [Snare]
(I) Song::setDrumkit Loading instrument (4 of 18) [Hand Clap]
(I) Song::setDrumkit Loading instrument (5 of 18) [Snare Rimshot]
(I) Song::setDrumkit Loading instrument (6 of 18) [Floor Tom]
(I) Song::setDrumkit Loading instrument (7 of 18) [Hat Closed]
(I) Song::setDrumkit Loading instrument (8 of 18) [Tom 2]
(I) Song::setDrumkit Loading instrument (9 of 18) [Hat Pedal]
(I) Song::setDrumkit Loading instrument (10 of 18) [Tom 1]
(I) Song::setDrumkit Loading instrument (11 of 18) [Hat Open]
(I) Song::setDrumkit Loading instrument (12 of 18) [Cowbell]
(I) Song::setDrumkit Loading instrument (13 of 18) [Ride]
(I) Song::setDrumkit Loading instrument (14 of 18) [Crash]
(I) Song::setDrumkit Loading instrument (15 of 18) [Ride 2]
(I) Song::setDrumkit Loading instrument (16 of 18) [Splash]
(I) Song::setDrumkit Loading instrument (17 of 18) [Hat Semi-Open]
(I) Song::setDrumkit Loading instrument (18 of 18) [Bell]
(I) AudioEngine::setSong Set song: Untitled Song
(I) Preferences::savePreferences Saving preferences file /home/dmitriy/.hydrogen/hydrogen.conf
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.core.logging: Ignoring malformed logging rule: '*=false''
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
theGreatWhiteShark commented 3 months ago

Hmm. Hydrogen's part of the log looks just fine. But maybe the ones created by Qt itself - our underlying framework - give a clue.

Does the crash happen to when using "Project" > "Open Pattern" or "Project" > "Export Pattern As"? Maybe the windowing system is not able to create a dialog.

Which OS (incl. version) and window manager are you using?

krotesk commented 3 months ago

Does the crash happen to when using "Project" > "Open Pattern" or "Project" > "Export Pattern As"? Maybe the windowing system is not able to create a dialog.

Yes - the same as when I save a file. Manjaro Linux 24.0.5 Kernel 6.6.41-1-MANJARO GNOME Shell 46.3.1

theGreatWhiteShark commented 3 months ago

Yes - the same as when I save a file. Manjaro Linux 24.0.5 Kernel 6.6.41-1-MANJARO GNOME Shell 46.3.1

That's definitely a lead! I'll set up a Manjaro system locally and try to reproduce it.

Do you use a version of Hydrogen which comes with Manjaro's package repositories, our official AppImage, or did you compiled it yourself?

theGreatWhiteShark commented 3 months ago

Manjaro Linux 24.0.5 Kernel 6.6.41-1-MANJARO GNOME Shell 46.3.1

I just downloaded

https://download.manjaro.org/gnome/24.0.5/manjaro-gnome-24.0.5-240730-linux69.iso

ran it using a live USB stick, and tried both hydrogen from the Manjaro pacman repos as well as our official AppImage and in both I was able to save a song and open a pattern.

In order to dissect the problem: could you prepare a live USB stick too and check whether you have the same problems in there too? If so, it might be hardware related (which is bad). If not, there might be a package mismatch or something else is wrong with the current configuration of your computer (which is slightly better).