Bug#864843: Audio hangs on repeated playback
John Smart
smartj at gmail.com
Thu Jun 15 20:14:06 UTC 2017
Package: pulseaudio
Version: pulseaudio 5.0
Distro: Raspbian GNU/Linux 8.0 (jessie)
When I playback audio using, for example, aplay, the first playback
works fine. Subsequent playback will hang indefinitely. Several
ctrl+c signals will restore playback for one additional play.
Reproduction steps:
1. Download any wav:
wget http://ccrma.stanford.edu/~jos/wav/oboe-bassoon.wav
2. Use aplay to playback the sound:
$ aplay oboe-bassoon.wav
Playing WAVE 'oboe-bassoon.wav' : Signed 16 bit Little Endian, Rate
48000 Hz, Stereo
# plays ok
^CAborted by signal Interrupt...
aplay: pcm_write:1939: write error: Interrupted system call
$ aplay oboe-bassoon.wav
Playing WAVE 'oboe-bassoon.wav' : Signed 16 bit Little Endian, Rate
48000 Hz, Stereo
# hangs without any playback
I have tried loading PulseAudio daemon in verbose mode to see what
might be going on. When the process hangs, I see:
D: [alsa-sink-bcm2835 ALSA] source.c: Processing rewind...
I also see a lot of these warnings:
D: [alsa-sink-bcm2835 ALSA] protocol-native.c: Implicit underrun of
'ALSA Playback'
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago
(1792 bytes ahead in playback buffer)
More information about the pkg-pulseaudio-devel
mailing list