| Summary: | Intermittent connectivity between PC and Android | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] kio-extras | Reporter: | Legits <ajrlegits> |
| Component: | MTP | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | abrahams, fedeb703, hendy, kde4, konelix, larmoe, matthias.sweertvaegher, mike2.schneider, misc-kdeorg, mss, nate, nospam, R.Clark.01, rafneq, skaumo, timoka10, vlastimil.kriz, yadtxizh |
| Priority: | NOR | ||
| Version First Reported In: | 17.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kio-extras/aaa1edbb74c4fb01affbde7b79bb45d3a9b61f83 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Legits
2013-05-15 19:05:57 UTC
I have the same problem with my Samsung P5100. dmsg says: 8272.034389] hub 1-0:1.0: unable to enumerate USB device on port 5 [ 8272.842645] usb 1-5: new high-speed USB device number 4 using ehci-pci [ 8272.958713] usb 1-5: New USB device found, idVendor=04e8, idProduct=6860 [ 8272.958725] usb 1-5: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [ 8272.958732] usb 1-5: Product: GT-P5100 [ 8272.958737] usb 1-5: Manufacturer: samsung [ 8272.958742] usb 1-5: SerialNumber: c32012437c1a2af [ 8280.931864] kio_mtp[10398]: segfault at 0 ip 00007fd1ee82e135 sp 00007fff14d830d0 error 4 in libQtDBus.so.4.8.4[7fd1ee80a000+7b000] [ 8297.166527] usb 1-5: usbfs: process 10407 (kio_mtp) did not claim interface 0 before use [ 8297.268241] usb 1-5: reset high-speed USB device number 4 using ehci-pci [ 8297.383637] usb 1-5: usbfs: process 10407 (kio_mtp) did not claim interface 0 before use [ 8392.623624] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8392.725475] usb 1-5: reset high-speed USB device number 4 using ehci-pci [ 8392.841304] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8392.943244] usb 1-5: reset high-speed USB device number 4 using ehci-pci [ 8393.060038] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8393.060145] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8393.060165] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8393.060181] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8393.060208] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use [ 8393.060453] usb 1-5: usbfs: process 10427 (kio_mtp) did not claim interface 0 before use Happens to me too. Using Samsung Galaxy Note 2, Android v4.4.2 My system info: Package: kio-mtp State: installed Automatically installed: no Version: 0.75+git20130930-0ubuntu1 Priority: extra Section: universe/libs Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com> Architecture: amd64 Uncompressed Size: 383 k Depends: libc6 (>= 2.14), libkdecore5 (>= 4:4.4.0), libkio5 (>= 4:4.3.4), libmtp9 (>= 1.1.3), libqtcore4 (>= 4:4.8.0), libsolid4 (>= 4:4.3.4), libstdc++6 (>= 4.1.1) Conflicts: kio-mtp Description: access to MTP devices for applications using the KDE Platform This package includes the MTP KIO plugin. It allows applications using the KDE Platform to access files stored on devices that provide access to them via the MTP protocol. The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. Homepage: https://projects.kde.org/kio-mtp dmesg: [ 145.619167] usb 1-1.1: reset high-speed USB device number 4 using ehci-pci [ 145.712263] cdc_acm 1-1.1:1.1: This device cannot do calls on its own. It is not a modem. [ 145.712315] cdc_acm 1-1.1:1.1: ttyACM0: USB ACM device [ 220.689124] usb 1-1.1: USB disconnect, device number 4 [ 220.952529] usb 1-1.1: new high-speed USB device number 5 using ehci-pci [ 221.046163] usb 1-1.1: New USB device found, idVendor=04e8, idProduct=6860 [ 221.046169] usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [ 221.046172] usb 1-1.1: Product: GT-N7100 [ 221.046174] usb 1-1.1: Manufacturer: samsung [ 221.046176] usb 1-1.1: SerialNumber: 4df7c3f64e1ccfb7 [ 230.081684] usb 1-1.1: usbfs: process 4915 (kio_mtp) did not claim interface 0 before use [ 230.159438] usb 1-1.1: reset high-speed USB device number 5 using ehci-pci [ 230.252645] usb 1-1.1: usbfs: process 4915 (kio_mtp) did not claim interface 0 before use [ 350.377136] usb 1-1.1: reset high-speed USB device number 5 using ehci-pci [ 470.624028] usb 1-1.1: reset high-speed USB device number 5 using ehci-pci [ 539.153759] usb 1-1.1: USB disconnect, device number 5 [ 539.417261] usb 1-1.1: new high-speed USB device number 6 using ehci-pci [ 539.510299] usb 1-1.1: New USB device found, idVendor=04e8, idProduct=6865 [ 539.510305] usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [ 539.510307] usb 1-1.1: Product: GT-N7100 [ 539.510310] usb 1-1.1: Manufacturer: samsung [ 539.510312] usb 1-1.1: SerialNumber: 4df7c3f64e1ccfb7 [ 555.566855] usb 1-1.1: USB disconnect, device number 6 [ 555.764329] usb 1-1.1: new high-speed USB device number 7 using ehci-pci [ 555.858001] usb 1-1.1: New USB device found, idVendor=04e8, idProduct=6860 [ 555.858006] usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [ 555.858009] usb 1-1.1: Product: GT-N7100 [ 555.858011] usb 1-1.1: Manufacturer: samsung [ 555.858013] usb 1-1.1: SerialNumber: 4df7c3f64e1ccfb7 *** Bug 342062 has been marked as a duplicate of this bug. *** same prob here: usbfs: process 20508 (kio_mtp) did not claim interface 0 before use maybe fixed by this patch? https://projects.kde.org/projects/playground/base/kio-mtp/repository/revisions/31b48f3f1c8e46ebbde0612897fe4818d9be70f1 Same problem after update with openSUSE (tumbleweed) 13.2 usbfs: process 20508 (kio_mtp) did not claim interface 0 before use Package: kio-mtp State: installed Automatically installed: Yes Version: kio_mtp-0.75-5.2.x86_64 Architecture: x86_64 Everything works fine (again) after update openSUSE (tumbleweed) 13.2 Package: kio-mtp State: installed Automatically installed: Yes Version: kio_mtp-0.75-5.2.x86_64 Architecture: x86_64 Kernel: 4.0.3-1-desktop #1 SMP PREEMPT Wed May 13 13:41:19 UTC 2015 (3ee3773) x86_64 x86_64 x86_64 GNU/Linux Same problem in kubuntu 14.10 with an LG p705 phone. Sometimes I can get a connection and sometimes I can't. Same problem here with a Samsung Galaxy Tab 2. I shouldn't have been so quick with the add comment button. Here is the output of mtp-detect: libmtp version: 1.1.9 Listing raw device(s) Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP). Found 1 device(s): Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 8 Attempting to connect device(s) ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device After a long delay, I get this: LIBMTP PANIC: failed to open session on second attempt Unable to open raw device 0 OK. I get exactly the same problem as Tony O'Bryan. ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device inep: usb_get_endpoint_status(): No such device outep: usb_get_endpoint_status(): No such device libusb_open() failed!: No such device LIBMTP PANIC: Could not init USB on second attempt terminate called after throwing an instance of 'MtpErrorCantOpenDevice' what(): Can't open device Aborted Just found a partial solution - use a USB 2.0 port, not a USB 3.0 port. Same issue when connecting sony xperia z3 compact. Running Tumbleweed. usbfs: process 8219 (mtp.so) did not claim interface 0 before use reset high-speed USB device number 8 using xhci_hcd Kind regards Lars Aaand same here with Ubuntu Xenial, an USB 2.0 port and a Samsung Galaxy S5 G900A
[1251820.891238] usb 1-1: usbfs: process 25188 (mtp.so) did not claim interface 0 before use
[1251821.000035] usb 1-1: reset high-speed USB device number 23 using ehci-pci
[1251821.141248] usb 1-1: usbfs: process 25188 (mtp.so) did not claim interface 0 before use
[1251823.670165] usb 1-1: USB disconnect, device number 23
[1251824.044025] usb 1-1: new high-speed USB device number 24 using ehci-pci
[1251824.177493] usb 1-1: New USB device found, idVendor=04e8, idProduct=6860
[1251824.177498] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1251824.177500] usb 1-1: Product: SAMSUNG_Android
[1251824.177501] usb 1-1: Manufacturer: SAMSUNG
[1251824.177503] usb 1-1: SerialNumber: <drölf>
libmtp version: 1.1.10
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 28
Attempting to connect device(s)
LIBMTP ERROR: couldnt parse extension samsung.com/devicestatus:0
USB low-level info:
bcdUSB: 528
bDeviceClass: 0
bDeviceSubClass: 0
bDeviceProtocol: 0
idVendor: 04e8
idProduct: 6860
IN endpoint maxpacket: 512 bytes
OUT endpoint maxpacket: 512 bytes
Raw device info:
Bus location: 1
Device number: 28
Device entry info:
Vendor: Samsung
Vendor id: 0x04e8
Product: Galaxy models (MTP)
Vendor id: 0x6860
Device flags: 0x48000207
Configuration 0, interface 0, altsetting 0:
Interface description contains the string "MTP"
Device recognized as MTP, no further probing.
Device info:
Manufacturer: Samsung Electronics Co., Ltd.
Model: SAMSUNG-SM-G900A
Device version: G900AUCU4DPG31&<serial>
Serial number: R38F40Y24BB
Vendor extension ID: 0x00000006
Vendor extension description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0;samsung.com/kies:3.0;samsung.com/devicestatus:0;samsung.com/sidesync3.1;
Detected object size: 64 bits
Extensions:
microsoft.com: 1.0
microsoft.com/WMPPD: 11.0
microsoft.com/WMPPD: 10.0
samsung.com/kies: 3.0
Supported operations:
1001: get device info
1002: Open session
1003: Close session
1004: Get storage IDs
1005: Get storage info
1006: Get number of objects
1007: Get object handles
1008: Get object info
1009: Get object
100b: Delete object
100c: Send object info
100d: Send object
1014: Get device property description
1015: Get device property value
1016: Set device property value
101b: Get partial object
9810: Get object references
9811: Set object references
9802: Get object property description
9801: Get object properties supported
9803: Get object property value
9804: Set object property value
9805: Get object property list
9806: Set object property list
9201: Report Added/Deleted Items
9202: Report Acquired Items
100a: Get thumbnail
1011: Self test device
1012: Set object protection
1017: Reset device property value
1019: Move object
101a: Copy object
9807: Get interdependent property description
9808: Send object property list
9501: Unknown (9501)
9502: Unknown (9502)
9503: Unknown (9503)
9504: Unknown (9504)
Events supported:
0x4002
0x4003
0x4004
0x4005
0x400c
Device Properties Supported:
0x5001: Battery Level
0xd401: Synchronization Partner
0xd402: Friendly Device Name
0xd404: Unknown property
0xd407: Perceived Device Type
0xd405: Device Icon
and lots of supported file types.
Oh, and excessive retries to get the transfer to work actually resulted in ONE image transferred. Ten tries after that, the entire machine locked up, kernel panicked after some timeout and I had to reboot after 2 weeks of uptime (see dmesg output from last post). Something's clearly broken here... I have very similar problem - after connecting MTP device, it starts fast repeatedly connecting/disconnecting :( dub 04 22:41:45 linux-7oxy kernel: usb 1-4: USB disconnect, device number 32 dub 04 22:41:45 linux-7oxy kernel: usb 1-4: new high-speed USB device number 33 using ehci-pci dub 04 22:41:45 linux-7oxy kernel: usb 1-4: New USB device found, idVendor=1004, idProduct=633e dub 04 22:41:45 linux-7oxy kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 dub 04 22:41:45 linux-7oxy kernel: usb 1-4: Product: LGE Android Phone dub 04 22:41:45 linux-7oxy kernel: usb 1-4: Manufacturer: LG Electronics Inc. dub 04 22:41:45 linux-7oxy kernel: usb 1-4: SerialNumber: LGH815ee5c1c02 dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 862 (mtp.so) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 33 using ehci-pci dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 862 (mtp.so) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 2607 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 2606 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 33 using ehci-pci dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 2606 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 862 (mtp.so) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 33 using ehci-pci dub 04 22:41:46 linux-7oxy kernel: usb 1-4: usbfs: process 2606 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:46 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 33 using ehci-pci dub 04 22:41:49 linux-7oxy kernel: usb 1-4: USB disconnect, device number 33 dub 04 22:41:49 linux-7oxy kernel: usb 1-4: new high-speed USB device number 34 using ehci-pci dub 04 22:41:50 linux-7oxy kernel: usb 1-4: New USB device found, idVendor=1004, idProduct=633e dub 04 22:41:50 linux-7oxy kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 dub 04 22:41:50 linux-7oxy kernel: usb 1-4: Product: LGE Android Phone dub 04 22:41:50 linux-7oxy kernel: usb 1-4: Manufacturer: LG Electronics Inc. dub 04 22:41:50 linux-7oxy kernel: usb 1-4: SerialNumber: LGH815ee5c1c02 dub 04 22:41:50 linux-7oxy kernel: usb 1-4: usbfs: process 2607 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:50 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:50 linux-7oxy kernel: usb 1-4: usbfs: process 2607 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:50 linux-7oxy kernel: usb 1-4: usbfs: process 4398 (mtp.so) did not claim interface 0 before use dub 04 22:41:50 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:50 linux-7oxy kernel: usb 1-4: usbfs: process 2607 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:50 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:51 linux-7oxy kernel: usb 1-4: usbfs: process 2606 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:51 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:51 linux-7oxy kernel: usb 1-4: usbfs: process 2606 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:51 linux-7oxy kernel: usb 1-4: usbfs: process 4398 (mtp.so) did not claim interface 0 before use dub 04 22:41:51 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:51 linux-7oxy kernel: usb 1-4: usbfs: process 2606 (ThreadWeaver::T) did not claim interface 0 before use dub 04 22:41:51 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:52 linux-7oxy kernel: usb 1-4: usbfs: process 4420 (mtp.so) did not claim interface 0 before use dub 04 22:41:52 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:52 linux-7oxy kernel: usb 1-4: usbfs: process 4420 (mtp.so) did not claim interface 0 before use dub 04 22:41:52 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:53 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci dub 04 22:41:53 linux-7oxy kernel: usb 1-4: reset high-speed USB device number 34 using ehci-pci *** This bug has been confirmed by popular vote. *** The same on openSUSE Leap 42.2 with Asus Zenfone Laser 2 Kernel: 4.4.103-18.41 dolphin-16.08.2-3.1 KDE PLasma 5.8.6 KDE Frameworks: 5.26.0 Qt 5.6.1 In journal log I can see: usb 1-2: usbfs: process 9778 (mtp.so) did not claim interface 0 before use usb 1-2: reset high-speed USB device number 10 using xhci_hcd ----- This usually occurs when the device goes to sleep mode while still being connected via USB. However as far as I remember on some of Android devices this is not invoking any problems with transfer. ... and kio_mtp-0.75-6.4 Git commit aaa1edbb74c4fb01affbde7b79bb45d3a9b61f83 by Andreas Krutzler. Committed on 08/10/2018 at 17:39. Pushed by akrutzler into branch 'master'. [mtp] Move MTP device handling from kioslave to kiod-module Summary: Consult T9390 for more information. Related: bug 325924, bug 336456, bug 372860, bug 382046, bug 383314, bug 396527 Closes T9390 Reviewers: elvisangelaccio, ltoscano, hetzenecker, dfaure, mlaurent Reviewed By: elvisangelaccio, dfaure, mlaurent Subscribers: mlaurent, kde-frameworks-devel, kfm-devel Tags: #dolphin, #frameworks Maniphest Tasks: T9390 Differential Revision: https://phabricator.kde.org/D15277 M +5 -5 mtp/CMakeLists.txt D +0 -229 mtp/devicecache.cpp D +0 -86 mtp/devicecache.h D +0 -73 mtp/filecache.cpp D +0 -81 mtp/filecache.h M +483 -576 mtp/kio_mtp.cpp M +14 -8 mtp/kio_mtp.h D +0 -358 mtp/kio_mtp_helpers.cpp D +0 -46 mtp/kio_mtp_helpers.h A +19 -0 mtp/kiod_module/CMakeLists.txt A +171 -0 mtp/kiod_module/kmtpd.cpp [License: GPL (v2+)] A +63 -0 mtp/kiod_module/kmtpd.h [License: GPL (v2+)] A +12 -0 mtp/kiod_module/kmtpd.json A +127 -0 mtp/kiod_module/mtpdevice.cpp [License: GPL (v2+)] A +78 -0 mtp/kiod_module/mtpdevice.h [License: GPL (v2+)] A +635 -0 mtp/kiod_module/mtpstorage.cpp [License: GPL (v2+)] A +142 -0 mtp/kiod_module/mtpstorage.h [License: GPL (v2+)] A +21 -0 mtp/shared/CMakeLists.txt A +70 -0 mtp/shared/kmtpdeviceinterface.cpp [License: LGPL] A +64 -0 mtp/shared/kmtpdeviceinterface.h [License: LGPL] A +85 -0 mtp/shared/kmtpdinterface.cpp [License: LGPL] A +70 -0 mtp/shared/kmtpdinterface.h [License: LGPL] A +147 -0 mtp/shared/kmtpfile.cpp [License: LGPL] A +90 -0 mtp/shared/kmtpfile.h [License: LGPL] A +98 -0 mtp/shared/kmtpstorageinterface.cpp [License: LGPL] A +77 -0 mtp/shared/kmtpstorageinterface.h [License: LGPL] A +50 -0 mtp/shared/org.kde.kmtp.daemon.xml A +62 -0 mtp/shared/org.kde.kmtp.device.xml A +154 -0 mtp/shared/org.kde.kmtp.storage.xml https://commits.kde.org/kio-extras/aaa1edbb74c4fb01affbde7b79bb45d3a9b61f83 |