On Sat, Jan 20, 2018 at 12:14:04PM -0800, Thomas Frohwein wrote:
>
> >Description:
>
> I have observed this bug with my AMD Ryzen desktop on
> regularly updated snapshots since Summer 2017. It hasn't
> happened on my other machines (ThinkPad x230 and Dell
> E5570). If I watch video for longer, typically with mpv, at
> some point (sometimes after hours) the video stops and the
> last half-second or so of audio repeats itself maybe a dozen
> times and then the audio is gone, too. As a result, audio or
> video playback is not possible until a reboot.
The looping sound means that the azalia device stops getting
interrupts. This is detected by sndiod, then it closes the device.
Once any program connects to sndiod, it reopens the device (which
reinitializes many parts of it), but there are still no interrupts.
To confirm this, the next time this happens, after mpv terminates,
could you run in one terminal:
cat /dev/zero >/dev/audio0
and in another run:
audioctl
sleep 1
audioctl
to confirm that all counters are frozen. As we're at it run:
vmstat -i | grep azalia
sleep 1
vmstat -i | grep azalia
to confirm the interrupts count is not increasing.
> >How-To-Repeat:
>
> This problem occurs after variable time of watching video (mpv
> or in browser); can be up to hours, with no specific activity
> that I could discern. It can regularly be triggered by
> repeatedly changing the outputs.master volume (in my case
> through cwm shortcut keys 4-, and 4-.).
It's unclear how this could happen.
- Do you remember if this stopped working recently or
the problem is there since you got the machine?
- Does the problem occur in mpv right after you change the volume?
What happens if you never change the volume? What happens if
you make cwm run another command instead of mixerctl (ex. ls /)
- Does the problem occur if no video is involved? ex. when you
play a long audio file (or "aucat -i /dev/zero") and use
the cwm volume keys ?
Thanks