xine 1.1.16, 1.1.17 freezes solid when fast-forwarded/rewound while using PulseAudio output

Nix <[email protected]> Mon, 22 Feb 2010 13:27:55 +0000
Newsgroups gmane.comp.video.xine.user
Message-ID <[email protected]>
This problem has been repeatedly reported, but no solution is in sight
that I can see.

The problem is that if I start xine while using the PulseAudio output,
then fast-forward or rewind it, the sound goes dead. Pausing, fast-
forwarding or rewinding it after this then leads to a dead halt from
which only 'kill -9' will rescue it.

At the hang point, the audio thread is stuck here (I think this is
normal):

#0  0x00007f3a261cfda4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3a27b8ed97 in ticket_renew (this=0x2541670, irrevocable=1) at xine.c:254
#2  0x00007f3a27ba30cd in ao_get_buffer (this_gen=<value optimized out>) at audio_out.c:1555
#3  0x00007f39f034647a in mad_decode_data (this_gen=0x3304ff0, buf=0x2b26f00) at xine_mad_decoder.c:299
#4  0x00007f3a27b9d4c9 in audio_decoder_loop (stream_gen=<value optimized out>) at audio_decoder.c:362
#5  0x00007f3a261cb71a in start_thread () from /lib/libpthread.so.0
#6  0x00007f3a264ad96d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

The PA threads are stuck here:

#0  0x00007f3a261cfd87 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3a157b783f in pa_threaded_mainloop_wait (m=0x2970ec0) at pulse/thread-mainloop.c:212
#2  0x00007f3a159ce1fe in ao_pulse_write (this_gen=0x2970d70, data=0x29ddd8c, num_frames=<value optimized out>) at audio_pulse_out.c:467
#3  0x00007f3a27ba27ae in ao_loop (this_gen=<value optimized out>) at audio_out.c:1245
#4  0x00007f3a261cb71a in start_thread () from /lib/libpthread.so.0
#5  0x00007f3a264ad96d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

(gdb) bt
#0  0x00007f3a264a32b3 in poll () from /lib/libc.so.6
#1  0x00007f3a157b7f5f in poll_func (ufds=0x2972cc0, nfds=2, timeout=1500, userdata=0x2971060) at pulse/thread-mainloop.c:75
#2  0x00007f3a157a7db6 in pa_mainloop_poll (m=0x29710e0) at pulse/mainloop.c:879
#3  0x00007f3a157a9199 in pa_mainloop_iterate (m=0x29710e0, block=<value optimized out>, retval=0x0) at pulse/mainloop.c:961
#4  0x00007f3a157a9250 in pa_mainloop_run (m=0x29710e0, retval=0x0) at pulse/mainloop.c:979
#5  0x00007f3a157b7d5b in thread (userdata=0x2970ec0) at pulse/thread-mainloop.c:94
#6  0x00007f3a15575c87 in internal_thread_func (userdata=0x2971260) at pulsecore/thread-posix.c:72
#7  0x00007f3a261cb71a in start_thread () from /lib/libpthread.so.0
#8  0x00007f3a264ad96d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

(This problem is visible right up to tip-of-tree xine.)

I can't tell if this is a bug in PulseAudio or xine, so I'm posting this
to the xine list: the PA list has been completely nonresponsive so far,
so I'll retry with more info if this list doesn't come through. (Both
are subscriber-only lists, IIRC, so crossposting is problematic.)

This is with stable-queue PA 0.9.21.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev