I cannot transfer photos and videos from the SD card in my phone (Gallaxy S5 Neo). I plug in the phone, tap "Allow" to transfer files and I can then see the phone mounted in Nautilus. I go to Card/DCIM/Camera in Nautilus and the spinning wheel shows up. Then it takes minutes to display the contents of the folder. When I click on one of the files Nautilus freezes and a "force quit" window shows up.
It seems to be related to a recent update as I was able to transfer files on Ubuntu 17.10 before. I've tried rebooting both my phone and my computer. Any suggestions to transfer the files via USB cable?
I have a similar issue with a Galaxy S6. I discovered that some images get filenames with parentheses at the end, like ...(0).jpg. It seems like Nautilus hangs when trying to list those images and ultimately fails. I moved them to a new directory on the phone, and Nautilus was noticeably faster in loading DCIM/Camera directory. I then tried to load the new directory with < 20 images with parentheses and Nautilus failed again. Renaming the files to remove the parentheses fixed everything.
I had a similar problem with my Galaxy S8 in Ubuntu 18.04. I once clicked the Camera folder, nautilus didn't respond and then even after removing and plugging device back, none of the folders in phone were loading.
I removed and reinstalled libmtp, didn't work. Then I removed and reinstalled nautilus, and all folders except DCIM/Camera were working. After moving 20 or so files with "(" and ")" in their names to another folder with file manager on my phone, DCIM/Camera was too opening without any problem.
TL;DR: Get rid of files with parentheses in their name.
If that does not work, try removing and reinstalling nautilus.
thunaror even when accessing the files from the command line. Seems to be a problem with the mtp library. If I remove all files with
)braces then loading a large dir is still slow but works. I also did not find any other mitigation so far. One alternative is github.com/whoozle/android-file-transfer-linux. I was able to successfully list and transfer using this tool. However finding and OS-integrated fix would be better.
...(0).jpgfile names are really common after editing files, etc. Note that the above mentioned android-file-transfer (aft) also provides
aft-mtp-mountwhich you can use to mount the device and use your favorite file browser