[gst-devel] 0.7 CVS/alsasink trouble
Colin Walters
walters at debian.org
Fri Apr 11 10:01:18 CEST 2003
On Fri, 2003-04-11 at 05:55, Benjamin Otte wrote:
> This is an ALSA bug, Iain reported a similar problem. Happens when you use
> the plughw interface that does format/rate conversion for you.
>
> It would btw be very helpful if you would compile alsalib with debugging
> symbols.
Ok, more debugging bits below.
> And I'd like to know what soundcard you are using.
lspci says:
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio (rev 03)
> As a workaround you could try using alsasink device=hw:0,0 where the path
> in alsalib that leads to this error isn't taken.
That works, thanks!
> marking bug as NOTGSTREAMER :)
Heh, yeah, it seems like it. Here's the other info though:
net-rhythmbox: pcm_plug.c:882: snd_pcm_plug_hw_params: Assertion `err >= 0' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread 81926 (LWP 23041)]
0x4103aa51 in kill () from /lib/libc.so.6
(gdb) bt
#0 0x4103aa51 in kill () from /lib/libc.so.6
#1 0x4126724b in pthread_kill () from /lib/libpthread.so.0
#2 0x41267521 in raise () from /lib/libpthread.so.0
#3 0x4103b986 in abort () from /lib/libc.so.6
#4 0x41034ae9 in __assert_fail () from /lib/libc.so.6
#5 0x401c4ff8 in snd_pcm_plug_hw_params (pcm=0x8535980, params=0xbefff64c) at pcm_plug.c:882
#6 0x401b257e in sndrv_pcm_hw_params (pcm=0x8535980, params=0xbefff64c) at pcm_params.c:2258
#7 0x401a6103 in snd_pcm_hw_params (pcm=0x8535980, params=0xbefff64c) at pcm.c:778
#8 0x4015ee1b in gst_alsa_set_hw_params (this=0x81cb268) at gstalsa.c:1487
#9 0x4015f32f in gst_alsa_start_audio (this=0x81cb268) at gstalsa.c:1535
#10 0x4015d864 in gst_alsa_change_state (element=0x81cb268) at gstalsa.c:949
#11 0x4003d216 in gst_element_set_state (element=0x81cb268, state=GST_STATE_PAUSED) at gstelement.c:2133
#12 0x40032ebb in gst_bin_change_state (element=0x81c8650) at gstbin.c:702
#13 0x4003d216 in gst_element_set_state (element=0x81c8650, state=GST_STATE_PAUSED) at gstelement.c:2133
#14 0x40032ebb in gst_bin_change_state (element=0x81c7e58) at gstbin.c:702
#15 0x400534fc in gst_thread_update_state (thread=0x81c7e58) at gstthread.c:360
#16 0x40055a1d in gst_thread_main_loop (arg=0x81c7e58) at gstthread.c:679
#17 0x413cbcc0 in g_static_private_free () from /usr/lib/libglib-2.0.so.0
#18 0x41264d53 in pthread_start_thread () from /lib/libpthread.so.0
#19 0x41264d99 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) up
#1 0x4126724b in pthread_kill () from /lib/libpthread.so.0
(gdb)
#2 0x41267521 in raise () from /lib/libpthread.so.0
(gdb)
#3 0x4103b986 in abort () from /lib/libc.so.6
(gdb)
#4 0x41034ae9 in __assert_fail () from /lib/libc.so.6
(gdb)
#5 0x401c4ff8 in snd_pcm_plug_hw_params (pcm=0x8535980, params=0xbefff64c) at pcm_plug.c:882
(gdb) p *params
$6 = {flags = 0, masks = {{bits = {1, 0, 0, 0, 0, 0, 0, 0}}, {bits = {1, 0, 0, 0, 0, 0, 0, 0}}, {bits = {1, 0, 0, 0, 0,
0, 0, 0}}}, mres = {{bits = {0, 0, 0, 0, 0, 0, 0, 0}}, {bits = {0, 0, 0, 0, 0, 0, 0, 0}}, {bits = {0, 0, 0, 0,
0, 0, 0, 0}}, {bits = {0, 0, 0, 0, 0, 0, 0, 0}}, {bits = {0, 0, 0, 0, 0, 0, 0, 0}}}, intervals = {{min = 8,
max = 8, openmin = 0, openmax = 0, integer = 1, empty = 0}, {min = 8, max = 8, openmin = 0, openmax = 0,
integer = 1, empty = 0}, {min = 1, max = 1, openmin = 0, openmax = 0, integer = 1, empty = 0}, {min = 4000,
max = 4000, openmin = 0, openmax = 0, integer = 0, empty = 0}, {min = 166, max = 2048000, openmin = 1,
openmax = 0, integer = 0, empty = 0}, {min = 8192, max = 8192, openmin = 0, openmax = 0, integer = 1, empty = 0},
{min = 8192, max = 8192, openmin = 0, openmax = 0, integer = 1, empty = 0}, {min = 2, max = 2, openmin = 0,
openmax = 0, integer = 1, empty = 0}, {min = 331, max = 4096000, openmin = 1, openmax = 0, integer = 0,
empty = 0}, {min = 16384, max = 16384, openmin = 0, openmax = 0, integer = 1, empty = 0}, {min = 16384,
max = 16384, openmin = 0, openmax = 0, integer = 1, empty = 0}, {min = 1000, max = 1000, openmin = 0,
openmax = 0, integer = 1, empty = 0}}, ires = {{min = 0, max = 0, openmin = 0, openmax = 0, integer = 0,
empty = 0}, {min = 0, max = 0, openmin = 0, openmax = 0, integer = 0, empty = 0}, {min = 0, max = 0, openmin = 0,
openmax = 0, integer = 0, empty = 0}, {min = 0, max = 0, openmin = 0, openmax = 0, integer = 0, empty = 0}, {
min = 0, max = 0, openmin = 0, openmax = 0, integer = 0, empty = 0}, {min = 0, max = 0, openmin = 0, openmax = 0,
integer = 0, empty = 0}, {min = 0, max = 0, openmin = 0, openmax = 0, integer = 0, empty = 0}, {min = 0, max = 0,
openmin = 0, openmax = 0, integer = 0, empty = 0}, {min = 0, max = 0, openmin = 0, openmax = 0, integer = 0,
empty = 0}}, rmask = 2048, cmask = 0, info = 4294967292, msbits = 8, rate_num = 0, rate_den = 0, fifo_size = 0,
reserved = '\0' <repeats 63 times>}
(gdb) p *pcm
$7 = {dl_handle = 0x81c90f8, name = 0x8535728 "default", type = SND_PCM_TYPE_PLUG, stream = SND_PCM_STREAM_PLAYBACK,
mode = 1, poll_fd = 23, poll_events = 4, setup = 0, access = SND_PCM_ACCESS_MMAP_INTERLEAVED,
format = SND_PCM_FORMAT_S8, subformat = SND_PCM_SUBFORMAT_STD, channels = 0, rate = 0, period_size = 0,
period_time = 0, periods = {min = 0, max = 0, openmin = 0, openmax = 0, integer = 0, empty = 0}, tick_time = 0,
tstamp_mode = SND_PCM_TSTAMP_NONE, period_step = 0, sleep_min = 0, avail_min = 0, start_threshold = 0,
stop_threshold = 0, silence_threshold = 0, silence_size = 0, xfer_align = 0, boundary = 0, info = 0, msbits = 0,
rate_num = 0, rate_den = 0, fifo_size = 0, buffer_size = 0, buffer_time = {min = 0, max = 0, openmin = 0,
openmax = 0, integer = 0, empty = 0}, sample_bits = 0, frame_bits = 0, appl = {master = 0x8535830,
ptr = 0x4010a000, fd = 23, offset = -2130706432, link_dst_count = 0, link_dst = 0x0, private_data = 0x0,
changed = 0}, hw = {master = 0x8535830, ptr = 0x400ff008, fd = 23, offset = -2147483640, link_dst_count = 0,
link_dst = 0x0, private_data = 0x0, changed = 0}, min_align = 0, mmap_rw = 0, donot_close = 0, mmap_channels = 0x0,
running_areas = 0x0, stopped_areas = 0x0, ops = 0x4020b320, fast_ops = 0x4020a340, op_arg = 0x8535980,
fast_op_arg = 0x8535830, private_data = 0x8535948, async_handlers = {next = 0x8535a8c, prev = 0x8535a8c}}
(gdb) p err
$8 = -22
More information about the gstreamer-devel
mailing list