Chrome stops playing video due to `spa.alsa: set_hw_params: Cannot allocate memory`
After updating pipewire from 0.3.47
to 0.3.49
a problem appeared: when playing a video on youtube with Google Chrome, if you pause it for a minute or more, then after unpausing it will keep loading indefinitely. If you reload the page, pipewire
prints to logs:
апр 04 14:25:18 constantine-N61Ja pipewire[582]: spa.alsa: set_hw_params: Cannot allocate memory
апр 04 14:25:18 constantine-N61Ja pipewire[582]: pw.node: (alsa_output.pci-0000_00_1f.3.analog-stereo-35) suspended -> error (Start error: Cannot allocate memory)
апр 04 14:25:18 constantine-N61Ja pipewire-media-session[23949]: ms.core: error id:53 seq:40784 res:-12 (Cannot allocate memory): Start error: Cannot allocate memory
апр 04 14:25:18 constantine-N61Ja pipewire[582]: pw.link: 0x5595d9768ba0: one of the nodes is in error out:running in:error
Sometimes restarting Chrome fixes this, but right now I can't even make it work by restarting Chrome.
It seems to happen to any video, but in case it matters: it's reproducible here https://youtu.be/oYtlnZ9vDEw
Steps to reproduce
- Start Chrome
- Open https://youtu.be/oYtlnZ9vDEw
- Pause for a minute
- Unpause
Expected
Video continues playing
Actual
Video shows a "loading" sign indefinitely and playback does not start.
Versions
- OS: Archlinux
- kernel: 5.17.1-zen1-1-zen
- Pipewire: 0.3.49
Edited by Konstantin Kharlamov