Skip to Content

Bad alloc

6 replies [Last post]
rdoursenaud
Offline
Joined: 04/17/2010

Hello,

Using version 0.9.2 package into Ubuntu dapper, every-time I try to load my ns7kit_free (A pretty huge one) I end up with a crash.

Using hydrogen -V I see it crashes randomly while loading the kit. It ends up with the following :
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc

The precompiled svn version have the same behavior.

Could this be a bug?

Where do I need to report that?

Any help would be greatly appreciated.

mem69
Offline
Joined: 04/17/2010

got nearly same problem on my 0.9.3 hydrogen (64studio running on amd64).

it keeps on crashing randomly while playing with jack.

terminal lauching hydrogen:
"terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc"

jack message:
"12:11:30.095 Audio connection change.
subgraph starting at qjackctl-6294 timed out (subgraph_wait_fd=20, status = 0, state = Finished)
12:14:02.476 XRUN callback (3).
12:14:02.503 Audio connection graph change.
**** alsa_pcm: xrun of at least 0.234 msecs
cannot read event response from client [Hydrogen-1] (Connection reset by peer)
subgraph starting at qjackctl-6294 timed out (subgraph_wait_fd=20, status = 0, state = Finished)
**** alsa_pcm: xrun of at least 1.665 msecs
12:14:03.238 XRUN callback (1 skipped)."

maybe the xrun cause hydrogen to crash, but i think its hydrogens crash that causes xrun...

mem69
Offline
Joined: 04/17/2010

finally,
i think ive found the solution:

'File', 'Preferences', 'Audio System'
'buffer size" and 'sample rate' cant be edited when you are in 'jack' or 'auto' mode. but the values are not the real jack ones !!! in fact they are the defalut jack values, not the actual ones.

so,
i ve selected 'alsa mode', so i can change those values, according to my jack setup. then reselect auto mode (it has keept my settings) and lauch the playing.

great!
its playing with jack and ardour since 5 minutes without crashing !!!

i think it can be called a bug :
audio settings arent connected to jack ones and cant be manually edited: please choose a method: manual or auto detected.

by the way, thanks a lot for that great electro dummer ;-)))

norv
Offline
Joined: 04/17/2010

I get the bad_alloc crash on debian sid amd64 hydrogen 0.9.3-5

I can only edit hydrogen buffer size if I switch the audio driver to ALSA, make the change and switch back to jack, all in the hydrogen preferences panel. As described by user above.

I cannot choose 64 or 128 as the buffer size in hydrogen preferences as it reverts automatically to 100.

:)

herra
Offline
Joined: 04/17/2010

I have the same problem. I've changed the buffer size etc. according to what is set in jack control but it still keeps crashing. Jack shows that there's been a Xrun but I'm not sure if it has something to do with the crash... I mean if it's the reason for the crash or caused by it. Anyway, it seems to crash randomly after few seconds of playing a demo file perfectly.

Someone, advice please!