gvfsd-mtp memory leak fills up whole memory and then gets killed
Submitted by xyz..@..ail.fm
Assigned to Philip Langdale
Link to original bug (#790484)
Description
Created attachment 363899 For whose you who want to enjoy a realtime memory "progress" bar
After plugging in my smartphone I can see my memory feeling up in realtime, roughly 30MB per second. After several minutes my RAM is full, Linux completely freezes up and gvfsd-mtp gets killed by the kernel or so it seems.
I'm currently using gvfs 1.30.3-1. I already tried to install the new version using apt which would be 1.34.1-1+b1, but it seems like the binaries don't get replaced? I'm not sure, /usr/lib/gvfs/gvfsd-mtp has timestamp 2017-11-15T16:55 or is it the timestamp when it was last compiled by the package creator, would be quite recent then, actually sounds plausible. Would welcome suggestion how to check the version of a running gvfsd process.
uname -a Linux user-pc 4.5.0-1-amd64 #1 (closed) SMP Debian 4.5.1-1 (2016-04-14) x86_64 GNU/Linux
I think this message from /var/log/syslog might be important:
Nov 17 10:10:45 user-pc org.gtk.vfs.Daemon[2203]: Error 1: Get Storage information failed.
Nov 17 10:10:45 user-pc gvfsd-computer[16086]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Now that I have this problem, how can I stop gvfs from automounting MTP?!
Attachment 363899, "For whose you who want to enjoy a realtime memory "progress" bar":
gvfsd-mtp-mem-bug-Screencast_2017-11-17_10_14_01
Version: 1.34.x