High CPU usage in Pidgin whenever message is received and duplicate sources
This is a bit of a weird issue to describe, but each time I receive a message from someone else in Pidgin, Pidgin starts consuming an inordinate amount of CPU. Steps I can use to reproduce:
- Ensure Pidgin is set up to play a sound when a message is received.
- Send a message from another IM to yourself, or get someone else to send one to you.
- Hear the sound play, see CPU usage become very high.
The only fix so far, once it triggers, is to restart Pidgin. A workaround is to mute sounds through Pidgin's menu item for it.
This is likely related to PipeWire (or its PulseAudio layer), as it did not occur before the switch from PulseAudio, and it is magically fixed when muting sounds in Pidgin.
Relatedly, every time Pidgin's incoming message sound plays, a new source is created in GNOME control center:
(This could be the same problem, or a different one altogether.)
Every time this happens, the following message is printed in the journal:
pipewire-pulse: pulse-server 0x561685188180: [Pidgin] UNDERFLOW channel:0 offset:54856
This happens on 0.3.18 and latest master (af38edea).