gvfsd-mtp hoovers up all memory

Bug #1771394 reported by Bill Miller
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gvfs
Fix Released
Unknown
gvfs (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When I run a Win7 Virtual Machine and attach my smartphone via USB (to run Samsung Smart Switch on the VM) gvfsd-mtp sucks up all of my 16G(!) of RAM and the system becomes unresponsive.

This same workflow worked without issue in 14.04 LTS.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gvfs-backends 1.36.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: LXDE
Date: Tue May 15 12:02:25 2018
InstallationDate: Installed on 2018-04-27 (18 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: gvfs
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bill Miller (wbmilleriii) wrote :
Revision history for this message
Bill Miller (wbmilleriii) wrote :

Sorry, 12 G of RAM, not 16. 16 is the system max, I only have 12 installed.

Revision history for this message
Steve Childs (mgsteve) wrote :

I just experienced this too. If you don't need them, remove the adb files from ubuntu, if you're passing the USB device onto the guest OS, you don't need them anyway.

FYI, I followed an install guide online, so just reversed the install line, e.g.

sudo apt-get remove android-tools-adb android-tools-fastboot

Sorry if its teaching you to suck eggs, I've just included it for others if they stumble over the same issue.

Revision history for this message
Bill Miller (wbmilleriii) wrote : Re: [Bug 1771394] Re: gvfsd-mtp hoovers up all memory

Thanks, I'll give it a try, although I use adb on the host, maybe I can
disable it, if that's what's causing the issue.

On 05/16/2018 07:57 PM, Steve Childs wrote:
> I just experienced this too. If you don't need them, remove the adb
> files from ubuntu, if you're passing the USB device onto the guest OS,
> you don't need them anyway.
>
> FYI, I followed an install guide online, so just reversed the install
> line, e.g.
>
> sudo apt-get remove android-tools-adb android-tools-fastboot
>
> Sorry if its teaching you to suck eggs, I've just included it for others
> if they stumble over the same issue.
>

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
Foulques (floux-dp) wrote :

This bug affects me too. Removing adb and fastboot does not solve the problem here.

Device : HTC 10, Android 8.0.0

Changed in gvfs:
importance: Unknown → Medium
status: Unknown → Incomplete
Revision history for this message
Bill Miller (wbmilleriii) wrote :

For my use case, I was able to kill gvfsd-mtp after attaching my phone. What I wanted to do still worked, so apparently gvfsd-mtp is not required for my use case. You have to kill it quickly though or the system becomes unresponsive.

Changed in gvfs:
status: Incomplete → Confirmed
Changed in gvfs:
status: Confirmed → Expired
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue has been fixed upstream now in https://gitlab.gnome.org/GNOME/gvfs/commit/63700b5

Changed in gvfs (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

The fix is in Disco

Changed in gvfs (Ubuntu):
status: Fix Committed → Fix Released
Changed in gvfs:
importance: Medium → Unknown
status: Expired → Unknown
Changed in gvfs:
status: Unknown → 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.