After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 444134 - alsasink device=plug:dmix only opens once (fd in bad state)
alsasink device=plug:dmix only opens once (fd in bad state)
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.12
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-04 22:36 UTC by Steve Fink
Modified: 2011-08-11 12:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test program for spawning pipelines (5.45 KB, text/x-c++)
2007-06-04 22:36 UTC, Steve Fink
Details

Description Steve Fink 2007-06-04 22:36:17 UTC
I have a test program that creates 35 separate pipelines, each terminated in an alsasink. If I leave the alsasink devices set to 'default', it manages to open 32 of them before running out of devices. If I set the device to 'plug:dmix', it opens one and the rest fail. These are independent alsasink elements, if that makes a difference.

I'm not sure why my default device isn't going through dmix in the first place, but never mind that.

I will attach my sample program. Run it with 35 .wav filenames on the command line. (Although just 2 should do fine.)

pipeline #0 (N=35) returned 2
  waiting for async state change...
    Dynamic pad created, linking wav parser to sink
  done waiting, got 1
0:00:00.143564000 10621 0x81bf008 WARN                  alsa pcm_hw.c:430:snd_pcm_hw_channel_info: alsalib error: SNDRV_PCM_IOCTL_CHANNEL_INFO failed: File descriptor in bad state
0:00:00.143825000 10621 0x81bf008 WARN                  alsa pcm_direct.c:1255:snd_pcm_direct_initialize_secondary_slave: alsalib error: unable to mmap channels
0:00:00.143964000 10621 0x81bf008 WARN                  alsa pcm_dmix.c:925:snd_pcm_dmix_open: alsalib error: unable to initialize slave
0:00:00.144200000 10621 0x81bf008 WARN                  alsa gstalsasink.c:625:gst_alsasink_open:<sfink> error: Playback open error on device 'plug:dmix': File descriptor in bad state
pipeline #1 (N=35) returned 0
  failed (or no preroll?), so throwing out /home/sfink/Content/sounds/apert.wav
0:00:00.146187000 10621 0x81bf008 WARN                  alsa pcm_hw.c:430:snd_pcm_hw_channel_info: alsalib error: SNDRV_PCM_IOCTL_CHANNEL_INFO failed: File descriptor in bad state
0:00:00.146415000 10621 0x81bf008 WARN                  alsa pcm_direct.c:1255:snd_pcm_direct_initialize_secondary_slave: alsalib error: unable to mmap channels
0:00:00.146553000 10621 0x81bf008 WARN                  alsa pcm_dmix.c:925:snd_pcm_dmix_open: alsalib error: unable to initialize slave
0:00:00.146791000 10621 0x81bf008 WARN                  alsa gstalsasink.c:625:gst_alsasink_open:<sfink> error: Playback open error on device 'plug:dmix': File descriptor in bad state
pipeline #2 (N=35) returned 0
.
.
.
Comment 1 Steve Fink 2007-06-04 22:36:52 UTC
Created attachment 89360 [details]
Test program for spawning pipelines
Comment 2 Sebastian Dröge (slomo) 2011-05-18 13:21:39 UTC
Is this still a problem with the latest versions of everything? This looks more like a problem with alsa or dmix.
Comment 3 Fabio Durán Verdugo 2011-06-28 23:39:02 UTC
Steve: can you reply the comment 2 ?
Comment 4 Akhil Laddha 2011-08-11 12:47:30 UTC
Please feel free to reopen this bug if the problem still occurs with a newer version of GStreamer Core 0.10.35, Base Plugins 0.10.35, Good Plugins 0.10.30 stable release, tia.