Bug#814042: gvfs-backends: gvfs-mtp crashes USB connection on unmount, breaks Rhythmbox
Daniel Gnoutcheff
daniel at gnoutcheff.name
Sun Feb 7 19:31:01 UTC 2016
Package: gvfs-backends
Version: 1.22.2-1
Severity: normal
To reproduce:
1) Login to the GNOME desktop
2) Ensure that org.gnome.desktop.media-handling.automount is set to true
(the default)
3) Install Rhythmbox (done by default by task-gnome-desktop), ensure
that the MTP plugin is enabled
3) Plug in an MTP media player (in my case, a Samsung GT-I9300 "Galaxy S
III" running Replicant v4.2-0004)
4) Note that the MTP device has been automatically GVFS-mounted by
Nautilus.
5) Startup Rhythimbox, and try to browse for songs on the MTP device.
Rhythmbox's MTP support doesn't employ GVFS and wants exclusive access
to the MTP device, but it's smart enough to unmount the GVFS mount first
[1].
Expected:
Having unmounted the GVFS mount, Rhythmbox assumes control of the MTP
device and does its thing.
Actual:
1) gvfs-mtp (or some dependency thereof?) apparently screws up the
unmount and triggers a USB reset. (Logs quoted below.)
2) The USB reset caused the MTP device to disappear. Rhythmbox has
nothing to talk to, and duly errors out with "Unable to open the Samsung
Galaxy models (MTP) device".
3) The USB reset completes, and the MTP device reappears on the bus.
Nautilus automatically mounts it again, completing a cycle of sad.
Here's what the journal captures (noise from tracker and GTK removed):
> Feb 07 13:59:40 monsey kernel: usb 2-1: usbfs: process 17277 (events) did not claim interface 0 before use
> Feb 07 13:59:41 monsey kernel: usb 2-1: reset high-speed USB device number 31 using ehci-pci
> Feb 07 13:59:41 monsey kernel: usb 2-1: USB disconnect, device number 31
> Feb 07 13:59:41 monsey colord[1041]: device removed: sysfs-(null)
> Feb 07 13:59:41 monsey colord[1041]: device removed: sysfs-(null)
> Feb 07 13:59:41 monsey colord[1041]: device removed: sysfs-samsung-GT-I9300
> Feb 07 13:59:41 monsey kernel: usb 2-1: new high-speed USB device number 32 using ehci-pci
> Feb 07 13:59:41 monsey kernel: usb 2-1: New USB device found, idVendor=04e8, idProduct=6860
> Feb 07 13:59:41 monsey kernel: usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
> Feb 07 13:59:41 monsey kernel: usb 2-1: Product: GT-I9300
> Feb 07 13:59:41 monsey kernel: usb 2-1: Manufacturer: samsung
> Feb 07 13:59:41 monsey kernel: usb 2-1: SerialNumber: 320493d2a89b41ad
> Feb 07 13:59:41 monsey colord[1041]: Device added: sysfs-samsung-GT-I9300
> Feb 07 13:59:41 monsey org.gtk.Private.GPhoto2VolumeMonitor[1876]: (process:1966): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
> Feb 07 13:59:41 monsey colord[1041]: Device added: sysfs-(null)
> Feb 07 13:59:41 monsey org.gtk.vfs.Daemon[1876]: PTP: reading event an error 0x02ff occurredUnable to open ~/.mtpz-data for reading, MTPZ disabled.
> Feb 07 13:59:41 monsey org.gtk.vfs.Daemon[1876]: Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
> Feb 07 13:59:42 monsey org.gtk.vfs.Daemon[1876]: Android device detected, assigning default bug flags
> Feb 07 13:59:42 monsey colord[1041]: (colord:1041): Cd-WARNING **: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
> Feb 07 13:59:42 monsey org.gtk.Private.GPhoto2VolumeMonitor[1876]: (process:1966): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
[1] http://sources.debian.net/src/rhythmbox/3.1-1/plugins/mtpdevice/rb-mtp-source.c/#L341
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.3.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gvfs-backends depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.22.0-1
ii gvfs 1.22.2-1
ii gvfs-common 1.22.2-1
ii gvfs-daemons 1.22.2-1
ii gvfs-libs 1.22.2-1
ii libarchive13 3.1.2-11
ii libatk1.0-0 2.14.0-1
ii libavahi-client3 0.6.31-5
ii libavahi-common3 0.6.31-5
ii libavahi-glib1 0.6.31-5
ii libbluetooth3 5.23-2+b1
ii libbluray1 1:0.6.2-1
ii libc6 2.19-18+deb8u1
ii libcairo-gobject2 1.14.0-2.1
ii libcairo2 1.14.0-2.1
ii libcdio-cdda1 0.83-4.2
ii libcdio-paranoia1 0.83-4.2
ii libcdio13 0.83-4.2
ii libdbus-1-3 1.8.20-0+deb8u1
ii libdbus-glib-1-2 0.102-1
ii libexif12 0.6.21-2
ii libexpat1 2.1.0-6+deb8u1
ii libgcrypt20 1.6.3-2
ii libgdk-pixbuf2.0-0 2.31.1-2+deb8u4
ii libglib2.0-0 2.42.1-1
ii libgoa-1.0-0b 3.14.2-1
ii libgphoto2-6 2.5.4-1.1+b2
ii libgphoto2-port10 2.5.4-1.1+b2
ii libgtk-3-0 3.14.5-1+deb8u1
ii libgudev-1.0-0 215-17+deb8u2
ii libimobiledevice4 1.1.6+dfsg-3.1
ii libmtp9 1.1.8-1+b1
ii libpango-1.0-0 1.36.8-3
ii libpangocairo-1.0-0 1.36.8-3
ii libplist2 1.11-3
ii libsecret-1-0 0.18-1+b1
ii libsmbclient 2:4.1.17+dfsg-2+deb8u1
ii libsoup2.4-1 2.48.0-1
ii libusb-1.0-0 2:1.0.19-1
ii libxml2 2.9.1+dfsg1-5+deb8u1
ii psmisc 22.21-2
Versions of packages gvfs-backends recommends:
ii gnome-keyring 3.14.0-1+b1
Versions of packages gvfs-backends suggests:
pn obex-data-server <none>
pn samba-common <none>
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list