Using a monitor as audio source for Firefox crashes pulseaudio, blaming ALSA driver snd_hda_intel
Summary
I'm trying to use a Monitor as input device from Firefox. The plan was [Firefox AudioStream] -> [Output] -> [Monitor] -> [Firefox]. I and Firefox would be listening. Instead, I hear a very laggy stream (sound doesn't jump, but struggles) and pulseaudio crashing. Using pulseaudio in the console reveals the following message:
I've found several references to the crash message, but no clue as to how to reproduce the issue or what's actually causing it.
Steps to reproduce
- Have something playing in any output.
- Try to attach a listener to the monitor of that output.
What is the current bug behavior?
Pulseaudio struggles and crashes with the following:
~ /usr/bin/pulseaudio --daemonize=no --log-time
( 0.000| 0.000) W: [pulseaudio] pid.c: Stale PID file, overwriting.
( 80.803| 79.220) E: [alsa-sink-ALC1220 Analog] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
( 80.803| 79.220) E: [alsa-sink-ALC1220 Analog] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
( 80.803| 79.220) E: [alsa-sink-ALC1220 Analog] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
[1] 13897 killed /usr/bin/pulseaudio --daemonize=no --log-time
What is the expected correct behavior?
Both the listener application and the output device should reproduce sounds