On Fri, 14 Jan 2022 13:00:13 +1100
Eyal Lebedinsky <fedora(a)eyal.emu.id.au> wrote:
Not knowing where the issue lies, here is what I know so far.
Starting firefox, opening discord, then closing the tab and clearing
all data. I see in 'top' that pipewire processes stay active (this is
an i7-9700):
PID USER PR NI VIRT RES SHR S %CPU %MEM
TIME+ COMMAND 100766 eyal 9 -11 317308 41856 6704 S 4.7
0.1 113:55.84 pipewire-pulse 64810 eyal 9 -11 344036 19832
8004 S 2.3 0.1 55:30.94 pipewire
The two stay at the same level of %CPU, and they were barely
noticeable before visit discord.
When I close firefox the activity stops, but not earlier. Disabling
all add-ons has no effect.
Using sound in other ways (firefox+youtube, vlc, etc.) does not lead
to such activity.
What is keeping this activity going, and how do I stop it?
Just a guess, but I wonder if discord sets up a callback or poll for
sound in firefox, so even after it is gone, the callback is still
active. You could try this. If you have javascript enabled for
discord, disable it after you close the tab. If this is somehow a
remnant of the discord tab still active, that should clobber it. If it
doesn't, then you should open a bug against firefox, because it isn't
cleaning up the discord tab properly when it closes it. The sound link
should be cleaned up as part of that process.
Could be way off base, but if fits the data.