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 121507 - ALSA back-end can't set up device
ALSA back-end can't set up device
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.6.2
Other Linux
: Normal critical
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 123904 125164 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-05 00:39 UTC by Hypnos
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hypnos 2003-09-05 00:39:23 UTC
I get the following error when attempting to run any gstreamer apps with
the ALSA backend; for example:

############

15:25:44 > gst-launch-0.6 sinesrc ! alsasink
INFO (17142: 0) Initializing GStreamer Core Library version 0.6.2
INFO (17142: 0) CPU features: (00000000) MMX SSE
INFO (17142: 0) registry: loaded user_registry in 0.225773 seconds
          (/home/smandal/.gstreamer/registry.xml)
INFO (17142: 0) registry: loaded global_registry in 0.296011 seconds
          (/var/lib/cache/gstreamer-0.6/registry.xml)
GStreamer-INFO: 0 live buffer(s)
GStreamer-INFO: 0 live bufferpool(s)
GStreamer-INFO: 0 live event(s)
RUNNING pipeline
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
ALSA lib pcm_hw.c:370:(snd_pcm_hw_sw_params) SNDRV_PCM_IOCTL_SW_PARAMS
failed: Invalid argument
 
** (process:17142): WARNING **: could not set sw_params: Invalid argument
pipeline doesn't want to play
GStreamer-INFO: 0 live buffer(s)
GStreamer-INFO: 0 live bufferpool(s)
GStreamer-INFO: 0 live event(s)

###############

My specific info:

alsa-* = 0.9.6
gstreamer = 0.6.2
gst-plugins = 0.6.2


Regards,

Sourav
Comment 1 ishi-goemon 2003-09-15 23:36:58 UTC
I'm seeing this as well, with GStreamer 0.6.3-1 RPM's on
2.6.0-0.test4.1.33 arjan's 9.0 rpms. Same alsa-lib. Not sure if it's
helpful, but commenting out the snd_pcm_sw_params_set_silence_size
call changes the error to:
(process:8162): GStreamer-CRITICAL **: file gstprops.c: line 1001
(gst_props_get_entry): assertion `props != NULL' failed
 
(process:8162): GStreamer-CRITICAL **: file gstprops.c: line 1164
(gst_props_entry_get_safe): assertion `entry != NULL' failed

I'm compiling 7.0 to find out if the behavior continues, as I see
gstalsa.c has been reworked.

I'm using snd-maestro3 on a Dell laptop.
Comment 2 ishi-goemon 2003-09-17 03:52:14 UTC
Fixed for me in cvs. (Did have a bit of trouble with the initial
gst-register, but only as I was under the impression it did not need
root. gst-register created /root/.gstreamer-0.7/registry.xml, so I
moved it to ~user/.gstreamer-0.7/. I suppose there are some docs
somewhere explaining this...)

gstalsa plays fine for me now.

Comment 3 Hypnos 2003-09-17 05:07:13 UTC
Ok, thanks -- I'll try out gstreamer 0.7 when it's released, and
hopefully it'll work for me.

BTW, I'm on a Compaq Presario 2800T (ca. June '02), which uses an
intel8x0.
Comment 4 David Schleef 2003-10-21 23:55:03 UTC
*** Bug 125164 has been marked as a duplicate of this bug. ***
Comment 5 David Schleef 2003-10-21 23:55:23 UTC
*** Bug 123904 has been marked as a duplicate of this bug. ***
Comment 6 Nuno Ferreira 2003-11-07 17:35:28 UTC
Will this bug be fixed for 0.6.x? This makes gstreamer based apps
unusable for a lot of people if you don't have oss emulation working.
Comment 7 Javier Kohen 2003-11-18 03:07:02 UTC
And the OSS emulation skips sound for me (VIA82xxx), so it's not a
choice :\
Comment 8 Frederic Crozat 2003-11-26 09:14:30 UTC
FYI, Mdk bug report similar to this one :
http://qa.mandrakesoft.com/show_bug.cgi?id=6276
Comment 9 sangu 2003-12-12 11:52:41 UTC
in fedora core 1, 
kernel-2.4.22-1.2129.nptl, 
alsa-driver,alsa-lib, alsa-utils-1.0.0-0.rc2.1.fr 
kernel-module-alsa-1.0.0-0.rc2.1.fr_2.4.22_1.2129.nptl
Ouput ALSA - Advanced Linus Sound Architecture in gstreamer-properties
No Sound,and print error messages
-----------------------
INFO (23620: 0) registry: loaded global_registry in 0.187662 seconds
          (/var/cache/gstreamer-0.6/registry.xml)
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
ALSA lib pcm_hw.c:370:(snd_pcm_hw_sw_params) SNDRV_PCM_IOCTL_SW_PARAMS
failed: Invalid argument
 
** (gstreamer-properties:23620): WARNING **: could not set sw_params:
Invalid argument
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
ALSA lib pcm_hw.c:370:(snd_pcm_hw_sw_params) SNDRV_PCM_IOCTL_SW_PARAMS
failed: Invalid argument
 
** (gstreamer-properties:23620): WARNING **: could not set sw_params:
Invalid argument
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
ALSA lib pcm_hw.c:370:(snd_pcm_hw_sw_params) SNDRV_PCM_IOCTL_SW_PARAMS
failed: Invalid argument
 
** (gstreamer-properties:23620): WARNING **: could not set sw_params:
Invalid argument
 
Comment 10 Edd Dumbill 2004-01-29 10:57:31 UTC
Also a problem in Debian sid for me, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=228349
Comment 11 Ronald Bultje 2004-02-24 16:32:27 UTC
This is fixed in 0.7.x for quite some time now (as reported somewhere
up here), and will not be fixed in the 0.6.x series. Sorry.