Bug#921559: kio-extras: MTP browsing stopped working (after recent udev upgrade?) with "The file or folder udi=/org/kde... does not exist."
Package: kio-extras
Version: 4:18.08.3-1
Severity: normal
Dear Maintainer,
A was using Dolphin for browsing files in Android-based phone for quite
some time, and while I did have some occasional flanky problems (similar to
#920153), it seems I can no longer browse *at all* with different error:
```
The file or folder
udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2
does not exist.
```
This is what syslog prints when I connect phone:
```
Feb 6 21:20:56 vinco kernel: [ 4241.131018] usb 2-2: new high-speed USB
device number 23 using xhci_hcd
Feb 6 21:20:56 vinco kernel: [ 4241.279954] usb 2-2: New USB device
found, idVendor=2a47, idProduct=2008, bcdDevice= 2.16
Feb 6 21:20:56 vinco kernel: [ 4241.279961] usb 2-2: New USB device
strings: Mfr=2, Product=3, SerialNumber=4
Feb 6 21:20:56 vinco kernel: [ 4241.279964] usb 2-2: Product:
Aquaris_E5_HD
Feb 6 21:20:56 vinco kernel: [ 4241.279968] usb 2-2: Manufacturer: BQ
Feb 6 21:20:56 vinco kernel: [ 4241.279971] usb 2-2: SerialNumber:
UA001404
```
Snippet from `.xsession-errors` (sorry, some messages are in my native
lanugage):
```
QObject::connect: invalid null parameter
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to
initialize device
Object::disconnect: No such slot
Meta::MtpHandler::slotDeviceMatchSucceeded()
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
UdevQt: unhandled device action "bind"
org.kde.plasmaquick: Applet "Pranešimai apie įrenginius" loaded after 0
msec
org.kde.plasmaquick: Increasing score for "Pranešimai apie įrenginius"
to 100
org.kde.plasmaquick: Applet "Sistemos dėklas" loaded after 0 msec
org.kde.plasmaquick: Applet "Sistemos dėklas" loaded after 1 msec
org.kde.plasmaquick: Increasing score for "Sistemos dėklas" to 100
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:163:25:
Unable to assign [undefined] to QString
kde.kio-mtp: fileSystemFreeSpace:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp: udi =
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
kde.kio-mtp: fileSystemFreeSpace:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp: udi =
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
kde.kio-mtp: New device attached with udi=
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2" .
Checking if PortableMediaPlayer...
kde.kio-mtp: SOLID: New Device with udi=
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kde.kio-mtp: new device, getting raw devices
kde.kio-mtp: No Error, continuing
kde.kio-mtp: Found device matching the Solid description
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to
initialize device
kde.kio-mtp: fileSystemFreeSpace:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp: udi =
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
kde.kio-mtp: fileSystemFreeSpace:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp: udi =
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
UdevQt: unhandled device action "bind"
org.kde.plasmaquick: Applet "Pranešimai apie įrenginius" loaded after 0
msec
org.kde.plasmaquick: Increasing score for "Pranešimai apie įrenginius"
to 100
org.kde.plasmaquick: Applet "Sistemos dėklas" loaded after 0 msec
org.kde.plasmaquick: Applet "Sistemos dėklas" loaded after 0 msec
org.kde.plasmaquick: Increasing score for "Sistemos dėklas" to 100
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:163:25:
Unable to assign [undefined] to QString
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:163:25:
Unable to assign [undefined] to QString
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:163:25:
Unable to assign [undefined] to QString
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:163:25:
Unable to assign [undefined] to QString
kdeinit5: Got EXEC_NEW
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so' from launcher.
kdeinit5: preparing to launch
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so'
kde.kio-mtp: Slave started
kde.kio-mtp: new device, getting raw devices
kde.kio-mtp: No Error, continuing
kde.kio-mtp: Found device matching the Solid description
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to
initialize device
kde.kio-mtp: Caches created
kde.kio-mtp:
"udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/"
kde.kio-mtp:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/")
kde.kio-mtp: udi =
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
kf5.kio.widgets: KRun(0x559d8688b1d0) ERROR 111 "Failas ar aplankas
udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/
neegzistuoja."
kde.kio-mtp: fileSystemFreeSpace:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp:
QUrl("mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2")
kde.kio-mtp: udi =
"/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
UdevQt: unhandled device action "bind"
```
I've tried another brand phone, it's the same issue.
The only change I remeber is some recent udev upgrade:
```
$ fgrep -R -e"udev" /var/log/dpkg.log*
...
/var/log/dpkg.log.1:2019-01-29 18:39:52 status installed udev:amd64
240-5
...
/var/log/dpkg.log.1:2019-01-30 19:09:16 status installed
libtss2-udev:all 2.1.0-4
```
Not sure if this is catually `kio` issue, maybe it's something with
udev..?
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages kio-extras depends on:
ii kio 5.54.1-1
ii kio-extras-data 4:18.08.3-1
ii libc6 2.28-6
ii libgcc1 1:8.2.0-17
ii libkf5activities5 5.54.0-1
ii libkf5archive5 5.54.0-1
ii libkf5bookmarks5 5.54.0-1
ii libkf5codecs5 5.54.0-1
ii libkf5configcore5 5.54.0-1
ii libkf5configgui5 5.54.0-1
ii libkf5configwidgets5 5.54.0-1
ii libkf5coreaddons5 5.54.0-1
ii libkf5dbusaddons5 5.54.0-1
ii libkf5dnssd5 5.54.0-1
ii libkf5guiaddons5 5.54.0-1
ii libkf5i18n5 5.54.0-1
ii libkf5iconthemes5 5.54.0-1
ii libkf5khtml5 5.54.0-1
ii libkf5kiocore5 5.54.1-1
ii libkf5kiofilewidgets5 5.54.1-1
ii libkf5kiowidgets5 5.54.1-1
ii libkf5parts5 5.54.0-1
ii libkf5pty5 5.54.0-1
ii libkf5service-bin 5.54.0-1
ii libkf5service5 5.54.0-1
ii libkf5solid5 5.54.0-1
ii libkf5xmlgui5 5.54.0-1
ii libmtp9 1.1.16-1
ii libopenexr23 2.2.1-4
ii libphonon4qt5-4 4:4.10.2-1
ii libqt5core5a 5.11.3+dfsg-2
ii libqt5dbus5 5.11.3+dfsg-2
ii libqt5gui5 5.11.3+dfsg-2
ii libqt5network5 5.11.3+dfsg-2
ii libqt5sql5 5.11.3+dfsg-2
ii libqt5svg5 5.11.3-2
ii libqt5widgets5 5.11.3+dfsg-2
ii libqt5xml5 5.11.3+dfsg-2
ii libsmbclient 2:4.9.4+dfsg-2
ii libssh-4 0.8.6-2
ii libstdc++6 8.2.0-17
ii libtag1v5 1.11.1+dfsg.1-0.2+b2
ii phonon4qt5 4:4.10.2-1
kio-extras recommends no packages.
kio-extras suggests no packages.
-- no debconf information
Reply to: