MPRIS images leak memory
Playing a lot of songs leaks quite a bit of RAM in the gnome-shell process. There's also a problem with media notifications (with embedded image data) but that seems to be a separate issue. I'm going to write a reproducer for that too (hopefully not using JavaScript this time, though).
The attached reproducer script contains 4168 links to images that are shown in the MPRIS area. In a clean session with only the terminal and system monitor running, gnome-shell process went from 99MB RSS to 209MB. After running the garbage collector manually, the usage dropped to 194MB.
mpris-leak.js mpris-leak.zip - reuploaded, gitlab doesn't let me download .js
To run this, you will need Node.js (I'm so sorry) and npm install mpris-service
.
Edited by Martin Bříza