Bug 356084 - mtp protocol is unusable in Dolphin (but works fine in Konqueror)
Summary: mtp protocol is unusable in Dolphin (but works fine in Konqueror)
Status: RESOLVED DUPLICATE of bug 396527
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: MTP (show other bugs)
Version: 18.04.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Philipp Schmidt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-29 15:53 UTC by Jonathan Wakely
Modified: 2018-08-16 09:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of dolphin error (53.84 KB, image/png)
2015-11-29 16:05 UTC, Jonathan Wakely
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Wakely 2015-11-29 15:53:15 UTC
If i connect my Android phone as a media device and then use the device manager applet to "Open in File Manager" I get loads of errors in Dolphin. Navigating to sub-directories gives errors like "Could not enter folder /FP1/Internal Storage/DCIM"

If I keep retrying and eventually get it to go to the desired sub-directory and try to copy some files from the phone to my computer I get errors about the operation being reset.

Navigating to the directories and copying files using Konqueror works fine.

Reproducible: Always
Comment 1 Jonathan Wakely 2015-11-29 16:05:24 UTC
Created attachment 95805 [details]
Screenshot of dolphin error

This image shows the error I get when trying to use dolphin to copy files using MTP

This happens whether I try to copy files from dolphin to dolphin, or (as in this case) I select some files in Konqueror, right-click and choose "Copy", then in a Dolphin window showing my home dir on a local disk I right-click and choose "Paste 6 items"
Comment 2 Jonathan Wakely 2015-11-29 16:51:47 UTC
It seems as though if Dolphin is even doing anything with the MTP device then konqueror also sometimes fails to read the device correctly. If Dolphin is not used then konqueror works fine.

So maybe related to Bug 346619 ?
Comment 3 Frank Reininghaus 2015-11-29 17:28:28 UTC
Thanks for the bug report.

(In reply to Jonathan Wakely from comment #0)
> Navigating to the directories and copying files using Konqueror works fine.

This is probably because Konqueror is still kdelibs 4.x-based, and thus uses a different version of the mtp kioslave.
Comment 4 Jonathan Wakely 2015-11-29 17:41:23 UTC
http://krazyabouttechnology.blogspot.co.uk/2013/12/when-it-comes-to-mtp-dolphin-is-bitch.html suggests dolphin has been unable to do mtp since before kdef 5
Comment 5 Frank Reininghaus 2015-11-29 17:59:49 UTC
Interesting. What happens if you access the MTP device from the file dialog of KF5-based appliciations, such as KWrite?
Comment 6 Jonathan Wakely 2015-11-29 19:27:10 UTC
With kwrite the file dialog seems to be able to navigate the mtp device (a little slowly, but without errors) and also open files from the device.  There are no problems using konqueror to browse the device while also using kwrite to open a file on it.

Whereas dolphin shows me an empty directory (that is correctly shown as non-empty by kwrite and konqueror) when trying to enter a sub-dir.
Comment 7 Frank Reininghaus 2015-12-01 19:39:55 UTC
Thanks. As far as I know, Dolphin and other applications access kioslaves like kio-mtp in the same way - the accesses are wrapped by the KDirLister class from the KIO framework. I am wondering if the number of connections could make a difference.

Could you try to hide all panels in Dolphin (especially Information and Folders), make sure that there is only one view, and check if that makes a difference? The reversed test might also be interesting: In Konqueror, split the view multiple times with Shift+Ctrl+L or Shift+Ctrl+T after opening a mtp: URL. Does that affect browsing the device in on of the views?
Comment 8 Elvis Angelaccio 2018-08-16 09:41:39 UTC

*** This bug has been marked as a duplicate of bug 396527 ***