Just retested the pathological case of this leak, which involves creating and deleting desktop files as fast as you can (thousands of times) via a script. In that case even the latest gnome-shell-extension- desktop-icons still leaks badly. So the fix I had hopes for is not enough:
https://gitlab.gnome.org/World/ShellExtensions/desktop- icons/-/commit/16447ab5bebcd4efb792e25335438f43b503c3e6 Of course this bug was already closed because a bigger leak was successfully fixed. If anyone finds the pathological case in the wild then we should handle it in a new bug. ** Tags added: gnome-shell-leak -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell-extension-desktop-icons in Ubuntu. https://bugs.launchpad.net/bugs/1815550 Title: gnome-shell high memory and CPU usage when desktop files are constantly created or deleted Status in gnome-shell-extension-desktop-icons: Fix Released Status in gnome-shell-extension-desktop-icons package in Ubuntu: Fix Released Status in gnome-shell-extension-desktop-icons source package in Disco: Won't Fix Bug description: [Impact] gnome-shell memory usage grows rapidly each time files are created or deleted in the Desktop directory. [Test Case] 0. Create a number of files/icons on the Desktop. The more existing icons you have, the faster the test will be. 1. Start monitoring gnome-shell's memory usage. 2. Repeatedly create and delete a new file on the Desktop every second. 3. Check that gnome-shell's memory usage doesn't quickly grow by hundreds of megabytes. It should only grow a little. [Regression Potential] Low. The current upstream stable release 19.01.4 is just a bug fix release on the same series as what's already in disco and eoan. The same fix has also been released early to eoan already. [Original Bug Report] This *may* be an nvidia-specific problem, but the RSS of gnome-shell on my system grows without limit (over a couple of hours it's increased past 10G). At the same time, gnome-shell appears to become progressively less responsive. Restarting gnome-shell (via <Alt><F2> restart) drops shell RSS down to ~400MB and improves system responsiveness a bit. ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: gnome-shell 3.30.2-2ubuntu2 ProcVersionSignature: Ubuntu 4.20.0+bcachefs.git20190130.d1f70147-1.0-generic 4.20.0 Uname: Linux 4.20.0+bcachefs.git20190130.d1f70147-1-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.10-0ubuntu20 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Tue Feb 12 13:35:59 2019 DisplayManager: gdm3 SourcePackage: gnome-shell UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1815550/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp