[jammy] gnome-shell memory usage spikes when deleting files in Nautilus if dash-to-dock show-trash is enabled

Bug #1962699 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell-extension-dashtodock (Ubuntu)
Invalid
Undecided
Unassigned
gnome-shell-extension-ubuntu-dock (Ubuntu)
Fix Released
High
Daniel van Vugt

Bug Description

gnome-shell memory usage spikes when deleting files in Nautilus if dash-to-dock show-trash is enabled.

For example if I delete 1500 files in Nautilus then gnome-shell suddenly gets 15MB bigger. It does mostly come back down within about 10 seconds, but still not ideal for performance.

The same bug does not occur with upstream dash-to-dock so it looks like this has been fixed somewhere, but not yet in jammy.

WORKAROUND:
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell-extension-ubuntu-dock 72~ubuntu3
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu78
Architecture: amd64
CasperMD5CheckResult: pass
Date: Wed Mar 2 14:06:54 2022
InstallationDate: Installed on 2021-11-05 (116 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211103)
PackageArchitecture: all
SourcePackage: gnome-shell-extension-ubuntu-dock
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Doesn't seem to be a problem in dashtodock, only ubuntu-dock.

Changed in gnome-shell-extension-dashtodock (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears this line:

  this._monitor.set_rate_limit(UPDATE_TRASH_DELAY);

which is only used in ubuntu-dock actually doesn't work. I still get signal floods of _onTrashChange().

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Umm yeah, glib doesn't do anything with it:

    case PROP_RATE_LIMIT:
      /* not supported by default */
      break;

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
summary: - gnome-shell memory usage spikes when deleting files in Nautilus if dash-
- to-dock show-trash is enabled
+ [jammy] gnome-shell memory usage spikes when deleting files in Nautilus
+ if dash-to-dock show-trash is enabled
tags: added: regression
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Bumped priority because some combination of slower systems deleting more files (than I do in testing) will result in people experiencing this as bug 1876641 again.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: In Progress → Fix Committed
importance: Medium → High
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
description: updated
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Hmm, debuild -S put the wrong (upstream) project name in the tarball. Is there a way to automate/avoid that?

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I uploaded this to jammy unapproved for you and am unsubscribing ubuntu-sponsors.

The tarball name isn't really an issue. If we used debian/source/format 3.0 (quilt), I think the tarball would look more like what you'd expect. But it's too late to change that for jammy.

Jeremy Bícha (jbicha)
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-ubuntu-dock - 72~ubuntu4

---------------
gnome-shell-extension-ubuntu-dock (72~ubuntu4) jammy; urgency=medium

  * locations: Reintroduce manual rate limiting for trash monitoring to
    avoid large memory spikes and leaks when Nautilus deletes files
    (LP: #1962699)

 -- Daniel van Vugt <email address hidden> Tue, 12 Apr 2022 16:01:16 +0800

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.