gvfsd-trash fills up memory (uses about 1 GB) if Trash contains thousands of files

Bug #1798828 reported by Mantas Kriaučiūnas
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gvfs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

gvfsd-trash fills up memory (uses about 1 GB) if Trash contains thousands of files (I had ~8000)

I noticed this on Ubuntu 16.04 64-bit with GNOME Shell installed:
~$ ps aux |grep -i trash
uni023 1910 6.2 20.0 1541900 789352 ? Sl 12:53 10:11 /usr/lib/gvfs/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0

Problem can be "solved" by emptying Trash bin.

description: updated
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Bug #1558768 can be related, but that bug is abotu high CPU usage

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gvfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

Ubuntu LTS 16.04.6

118K files in trash
gvfs-trash consumes both CPUs and 100% of available memory

"empty trash" goes into prepare phase, but nothing appears to happen, presumably because of the large number of files, so I closed the window by clicking the <x>

rm -rf ~/.local/share/Trash/*

nautilus window on trash:/// goes dark for a long time, but eventually comes back to show Trash to be empty

opening the Trash icon (on the on the launch bar) shows it to be empty and both <restore> and <empty> buttons are greyed out, but the Trash icon still shows 'filled'

(yes, I think Bug #1558768 is about the same problem)

Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

after reboot the Trash icon shows empty

Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :
Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

gitlab closed the issue as not belonging there

Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :
Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

upstream replied

    Ubuntu LTS 16.04.6

@humphrey.vanpolanenpetel That is four year old software. Please first test this with a recent GNOME version (3.36) before reporting software bugs to GNOME's issue tracker

I thought Xenial, i.e. 16.04, is still being maintained -- perhaps not so?

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.