Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121370 - ALSA 1.0.11_rc3 failed assertion in snd_config_iterator_first causes application crash
Summary: ALSA 1.0.11_rc3 failed assertion in snd_config_iterator_first causes applicat...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 122184 122778 123006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-02 15:45 UTC by David Li
Modified: 2006-03-29 12:40 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Li 2006-02-02 15:45:53 UTC
In every application that I have that uses ALSA breaks upon trying to make sound.
The all fail with something like:

application_name_here: conf.c:3144: snd_config_iterator_first: Assertion `node->type == SND_CONFIG_TYPE_COMPOUND' failed.

For example, it happens to mplayer, gaim, totem... you get the idea.
Simply down grading to media-libs/alsa-lib-1.0.10 resolves the issue.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-03 00:36:57 UTC
Using in-kernel or alsa-driver ?
Comment 2 Nickolay Kolchin-Semyonov 2006-02-03 01:00:00 UTC
in-kernel Linux athlon 2.6.14-gentoo-r2 #1 PREEMPT

I can try 2.6.15 if you think that it make sense.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-03 01:10:11 UTC
Try .15 or alsa-driver.
With alsa-driver all works fine here.
Comment 4 Nickolay Kolchin-Semyonov 2006-02-03 02:06:45 UTC
Linux athlon 2.6.15-gentoo-r2 #1 PREEMPT --- don't work.

P.S. btw, what is the recommended way of using ALSA: in-kernel or alsa-driver?
Comment 5 Ben Ford 2006-02-03 02:54:09 UTC
2.6.15.1 vanilla, in-kernel also fails.  Reverting to 1.0.10 works.
Comment 6 Tarmo Tänav 2006-02-03 04:54:19 UTC
I also get this problem, but only when I have an ~/.asoundrc
Comment 7 David Li 2006-02-03 12:10:07 UTC
I'm using alsa-driver. I'll try again without ~/.asoundrc ...
Comment 8 Tarmo Tänav 2006-02-03 12:27:51 UTC
I haven't done any further tests, but I noticed that this alsa version (not sure if it means anything in this context, but I'm using 2.6.15.1 kernel) seems to have automatic sound mixing which means that my dmix setup in the ~/.asoundrc is not useful anymore. Could it be that the error is a conflict between alsa's automatic dmix setup and the one in ~/.asoundrc ?
Comment 9 David Li 2006-02-03 13:21:19 UTC
I confirm that removing my .asoundrc will resolve the issue.

#8:
Interesting. I've been acutally pretty disappointed in the way ALSA handles muiltiple soundcards becasue I have an Audigy 2 NX and it can be turned off/on which causes weird things to happen in ALSA. I do have dmix for my integrated sound though...
Comment 10 Anton Romanov 2006-02-04 01:01:16 UTC
works by removing dmix from /etc/asound.conf ...
but this is broking my sound setup cause that way dmix doesn't work for me ....
Comment 11 Anton Romanov 2006-02-04 01:05:56 UTC
someone posted bug upstream
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1812
Comment 12 Edmondo Tommasina 2006-02-04 03:15:49 UTC
Removing my .asoundrc will resolve the issue for me as well.
Comment 13 Eugene Kim 2006-02-05 01:35:02 UTC
i had an entry in my .asoundrc which when removed allowed soudn to work again:

pcm.!default {
        type plug
        slave.pcm "nforce"
}

where pcm.nforce is my dmix entry.  

then i replace that entry with :
pcm.!default {
type hw
card 0
}

and it works fine.  maybe the issue is dmix related? i dunno. 
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-05 04:01:55 UTC
Hopefully upstream will solve the crashes for final version.
I've added a warning in alsa-lib in the mean time saying that .asoundrc and asound.conf should be removed to avoid crashes.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 15:31:45 UTC
*** Bug 122184 has been marked as a duplicate of this bug. ***
Comment 16 Bel Zébute 2006-02-08 19:12:53 UTC
I used alsa-driver too.  I think rc3 should be hard-masked.  If it works for those who already installed it can always add an entrie in portage.unmask.

My say.
Comment 17 Paul Mickus 2006-02-08 23:59:15 UTC
(In reply to comment #14)
> Hopefully upstream will solve the crashes for final version.
> I've added a warning in alsa-lib in the mean time saying that .asoundrc and
> asound.conf should be removed to avoid crashes.
> 

I tried this but I now get blips in my audio stream without my .asoundrc. Maybe there is an unrelated problem in my system however if you need to remove .asoundrc to prevent a crash, the package should be masked.
Comment 18 Matteo Azzali (RETIRED) gentoo-dev 2006-02-09 08:44:13 UTC
RC3 shouldn't be hardmasked. I was thinking of having this identical issue until I
discovered that now my nforce3 motherboard HAS complete hardware mixing support
without any need for .asoundrc file or any dmix.
Please check renaming all your asoundrc files to another (backup) name.
Comment 19 Matteo Azzali (RETIRED) gentoo-dev 2006-02-09 08:46:05 UTC
Just for anyone having my same configuration, reading mixer: ALC850 while 
sound board is NVIDIA CK8S means your config doesn't need anymore the dmix 
(and works fine without asoundrc).
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-14 03:38:40 UTC
*** Bug 122778 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-02-16 02:26:48 UTC
*** Bug 123006 has been marked as a duplicate of this bug. ***
Comment 22 Olliver Schinagl 2006-02-27 12:31:40 UTC
So it appears to be that dmix 'breaks' alsa. E.g. dmix needs to be disabled in .asound en alsa.conf so that it can be auto used.

Is it however a clean autodetection thing? I can't find anything on the alsa site concerining the emu10k1. The SB Live breathern do have hardware mixing, as do some other chips. Does this mean it's always being software mixed now?
Comment 23 David Li 2006-03-29 12:40:41 UTC
By the way, alsa-lib-1.0.11_rc4 seems to have fixed this