Skip to Content

Segmentation fault

3 replies [Last post]
yervah
Offline
Joined: 04/17/2010

I've posted this a few days or weeks ago and no reply so maybe no one has this issue but ever since Hydrogen 9.4 went beta, I get Segmentation fault.
When it works, the sound is distorted and the xruns are way too many. After many tries of launching it, it will work. I've just updated to 487.
Thinking about it, this started when I couldn't use ./configure and had to use scons.

is something wrong here?:

Hydrogen build script

Revision: 487
Platform: linux2
Release build
Prefix: /usr
Destdir:

(E) void H2Core::audioEngine_startAudioDrivers() Error the audio engine is not in INITIALIZED state. state=3
Segmentation fault

aikie
Offline
Joined: 04/17/2010

can you give us more info about this? try running hydrogen from the command line with the option -V and post the output here?

mixandgo
Offline
Joined: 04/17/2010

I've attached the verbose output

paugh
Offline
Joined: 04/17/2010

the millo drums xml file contains entries for files that don't
actually exist in the drumkit.

when hydrogen hits one of these it blows up rather than
handling it gracefully.
i'm pretty sure that this wasn't the case in previous releases
so this looks like a regression.

paugh
Offline
Joined: 04/17/2010

as temporary work around, link the following files in
~/.hydrogen/data/Millo_MultiLayered2
to an existing sample file in there.

misc_Cowbell.flac
emptySample.flac

green
Offline
Joined: 04/17/2010

Here's a patch. My C++ is rusty, so perhaps this introduces a memory leak, however, it does fix the bug.

mauser
Offline
Joined: 03/30/2010

hi!

hm, sounds not good..

Can you make a backtrace (please make a clean checkout first) and send it to our development mailinglist ?

How to make a backtrace:

1. go to your svn folder
2. run "gdb ./hydrogen"
3. a prompt appears, type "run"
4. when it crashs, type "bt" and send us the result

yervah
Offline
Joined: 04/17/2010

I just did that but got this back from the mailing list:

Your mail to 'Hydrogen-devel' with the subject

Segmentation fault

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator's decision. If you would like to cancel
this posting, please visit the following URL:

Is that cool?

https://lists.sourceforge.net/lists/confirm/hydrogen-devel/b750cff45c334...

mauser
Offline
Joined: 03/30/2010

Hi,

that's pretty normal when sending to a members-only list as a non-member.
You can subscribe here:

https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

shanerich
Offline
Joined: 04/17/2010

Same here, I find I need to start svn hydrogen about 3-4 times before it works.

I notice this error message always comes up, regardless of successful/unsuccessful startup:

(E) void H2Core::audioEngine_init() Error the audio engine is not in UNINITIALIZED state
(E) void H2Core::audioEngine_startAudioDrivers() Error the audio engine is not in INITIALIZED state. state=3

gdb doesn't give any useful info

It doesn't play nice with other jack apps either. I find many apps disconnect/crash when hydrogen tries to auto-connect. Especially jack-rack, for some reason.