hydrogen-music / hydrogen

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

Ver. 1.2.2 won't open in Windows 11 #1893

Closed LHud closed 8 months ago

LHud commented 8 months ago

Hydrogen version * :1.2.2 Operating system + version :Windows 11 64b Audio driver + version : Focusrite Scarlet 2i2 driver ver. 4.65.5


I have recently gotten back in to Hydrogen drum machine and saw that there is an update to ver. 1.2.2 and I have ver. 1.1.1 and it works but figured getting the latest version from the Hydrogen website wouldn't hurt but it doesn't work. Basically it comes up for about a second and then disappears. I haven't fully investigated it as of yet, I did try to run it in compatibility mode to Windows 7 and 8 and as administrator but that didn't work. I am hoping someone here has experienced it and has a suggestion however mostly I am just posting the problem. I''m going to investigate further what the cause might be and if I find it I'll post that to help others who might experience this problem as well.

LHud commented 8 months ago

This has been resolved. Apparently this version, 1.2.2, will not open if Ableton Live 10 Standard is running in the background. The version I have before this one, 1.1.1, runs fine with Ableton up so didn't see that as a problem. Sorry for the alarm, guess it'll be one or the other from here on out. I'd say for now this is resolved.

theGreatWhiteShark commented 8 months ago

this version, 1.2.2, will not open if Ableton Live 10 Standard is running in the background.

Ah, okay. Seems like they are both fighting for the same audio device. But Hydrogen should nevertheless be able to start up. So, that's definitely a bug.

I just tried to reproduce it using a trial version of the most recent Ableton Live 11 but both applications could run side by side regardless of the audio settings. Which audio driver/device settings have you done in Ableton and Hydrogen (screenshot suffices)? Does the problem still occur when opening Hydrogen without Ableton, switching to a different PortAudio device or Host API, and trying to run both in parallel again?

And most importantly: could you paste the log message emitted by Hydrogen during startup in here?

LHud commented 8 months ago

Here is the contents of the log file: C:> Hydrogen 1.2.2 [Sep 9 2023] [http://www.hydrogen-music.org] Copyright 2002-2008 Alessandro Cominu Copyright 2008-2023 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 C:/Music Tools/Hydrogen 1.2.2/data/ is usable. (I) Filesystem::check_usr_paths user path C:/Users/Lou/.hydrogen/data/ is usable. (I) Filesystem::info Tmp dir : C:/Users/Lou/AppData/Local/Temp/hydrogen/ (I) Filesystem::info Click file : C:/Music Tools/Hydrogen 1.2.2/data/click.wav (I) Filesystem::info Empty song : C:/Users/Lou/.hydrogen/data/emptySong.h2song (I) Filesystem::info Demos dir : C:/Music Tools/Hydrogen 1.2.2/data/demo_songs/ (I) Filesystem::info Documentation dir : C:/Music Tools/Hydrogen 1.2.2/data/doc/ (I) Filesystem::info System drumkit dir : C:/Music Tools/Hydrogen 1.2.2/data/drumkits/ (I) Filesystem::info Empty sample : C:/Music Tools/Hydrogen 1.2.2/data/emptySample.wav (I) Filesystem::info Default config : C:/Music Tools/Hydrogen 1.2.2/data/hydrogen.default.conf (I) Filesystem::info Internationalization dir : C:/Music Tools/Hydrogen 1.2.2/data/i18n/ (I) Filesystem::info Images dir : C:/Music Tools/Hydrogen 1.2.2/data/img/ (I) Filesystem::info XSD dir : C:/Music Tools/Hydrogen 1.2.2/data/xsd/ (I) Filesystem::info drumkit pattern XSD : C:/Music Tools/Hydrogen 1.2.2/data/xsd/drumkit_pattern.xsd (I) Filesystem::info drumkit XSD : C:/Music Tools/Hydrogen 1.2.2/data/xsd/drumkit.xsd (I) Filesystem::info drumkit XSD : C:/Music Tools/Hydrogen 1.2.2/data/xsd/playlist.xsd (I) Filesystem::info User config : C:/Users/Lou/.hydrogen/hydrogen.conf (I) Filesystem::info User Click file : C:/Music Tools/Hydrogen 1.2.2/data/click.wav (I) Filesystem::info Cache dir : C:/Users/Lou/.hydrogen/data/cache/ (I) Filesystem::info Reporitories Cache dir : C:/Users/Lou/.hydrogen/data/cache/repositories/ (I) Filesystem::info User drumkit dir : C:/Users/Lou/.hydrogen/data/drumkits/ (I) Filesystem::info Patterns dir : C:/Users/Lou/.hydrogen/data/patterns/ (I) Filesystem::info Playlist dir : C:/Users/Lou/.hydrogen/data/playlists/ (I) Filesystem::info Plugins dir : C:/Users/Lou/.hydrogen/data/plugins/ (I) Filesystem::info Scripts dir : C:/Users/Lou/.hydrogen/data/scripts/ (I) Filesystem::info Songs dir : C:/Users/Lou/.hydrogen/data/songs/ (I) Preferences::loadPreferences Loading preferences file (SYS) [C:/Music Tools/Hydrogen 1.2.2/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) [C:/Users/Lou/.hydrogen/hydrogen.conf] (I) ::int main(int, char) Using QT version 5.15.10 (I) ::int main(int, char) Using data path: C:/Music Tools/Hydrogen 1.2.2/data/ (I) ::int main(int, char) Warning: No Qt translation for locale en_US found. (I) ::int main(int, char) Using locale: C:/Music Tools/Hydrogen 1.2.2/data/i18n/ (I) Hydrogen::Hydrogen [Hydrogen] (I) Effects::getPluginList *** [getPluginList] reading directory: C:/Users/Lou/.hydrogen/data/plugins/ (I) Effects::getPluginList Loaded 0 LADSPA plugins (I) AudioEngine::startAudioDrivers (I) AudioEngine::createAudioDriver Creating driver [PortAudio] (I) PortAudioDriver::connect [connect] (E) PortAudioDriver::connect Can't use device '', using default stream (E) PortAudioDriver::connect Can't use device '', using default stream F(atal error in: I) PortAudioDriver::connect Opened device '' I(nitialising HydrogenI) PortAudioDriver::connect PortAudio outpot latency: 0.182 s

(I) PortMidiDriver::open [open] (I) PortMidiDriver::open Found available output device called [Microsoft MIDI Mapper] using [MMSystem] MIDI API (I) PortMidiDriver::open Using input device called [KeyStudio] using [MMSystem] MIDI API (I) PortMidiDriver::open Found available output device called [Microsoft GS Wavetable Synth] using [MMSystem] MIDI API (E) ::void handleFatalSignal(int) Fatal signal 11

I've attached screenshots of the audio preferences of both Hydrogen 1.2.2 and Ableton Live 10.

theGreatWhiteShark commented 8 months ago

I've attached screenshots of the audio preferences of both Hydrogen 1.2.2 and Ableton Live 10.

I can not see any screenshots. But the logs show that this seems to be indeed an issue of conflicting device access. But of the MIDI device, not the audio one. Does the crash still happens when switching to another MIDI device?

With all your clues I will try to reproduce the crash locally next week and try to come up with a fix.

theGreatWhiteShark commented 8 months ago

Hey @LHud ,

I couldn't reproduce the crash but found some issues in the PortMidi driver and added some safeguards in the PortAudio one. Could you check whether this version of Hydrogen is able to start up?

LHud commented 8 months ago

Sorry about the late response, we are in the middle of buying a house so have been busy with that. I will give that a shot and post back. Strange those screen shots didn't translate from email, will respond directly in here from now on. Thank for you help too btw :)

Ableton Live 10 Audio Preferences Hydrogen 1 2 2 Audio Preferences

LHud commented 8 months ago

I have 1.2.2 v.64 already installed but here's the strange part. It's working. I have both up and functioning fine side by side. I didn't do anything or make any changes so can't say what is going on. I rebooted several times when it first occurred but that didn't fix it so I don't know what did, just that it's fixed. Thanks again for your help.

theGreatWhiteShark commented 8 months ago

I have 1.2.2 v.64 already installed

Point taken. Our build pipeline should mark develop builds by appending a suffix. I'll change that :D . But the exe I linked was a different version patched just for you. I hardened the code to hopefully fix the crash during startup.

here's the strange part. It's working

So, you didn't installed the patched version and it is working with the official 1.2.2 one too? Yeah. Fun on Windows.