caja freezes browsing DCIM/Camera dir via MTP

Bug #1717672 reported by Dan MacDonald on 2017-09-16
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu MATE
Undecided
Unassigned
caja (Ubuntu)
Undecided
Unassigned

Bug Description

I have a LG G4 running stock Android 6. If I connect it to my UM 17.10b laptop via USB/MTP, it shows up and I can use use caja to browse most folders on it but I cannot view the DCIM/Camera folder which is the one I access the most. When I try to do so, caja just gives me the spinning cursor then, after several minutes wait, nothing happens and I'm forced to kill caja.

It is important to note that I can successfully browse the same dir on the same laptop/phone/cable/OS but using Thunar instead so this is specifically a caja bug and not the fault of libmtp / gvfs-mtp etc.

I currently have about 400 jpg and dng files and a few MP4 files stored in my camera dir so I wouldn't say its an unreasonable amount. strace keeps on printing this when caja is trying to open the camera folder:

eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 39
poll([{fd=39, events=POLLIN}], 1, 0) = 0 (Timeout)
write(39, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x563017125ad0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(39) = 0
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 39
write(10, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5630164ba030, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x563016e8fe40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5630164b5aa8, FUTEX_WAKE_PRIVATE, 1) = 1
poll([{fd=39, events=POLLIN}], 1, -1) = 1 ([{fd=39, revents=POLLIN}])
read(39, "\1\0\0\0\0\0\0\0", 16) = 8
write(39, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5630171e7c60, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(39) = 0
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 39
poll([{fd=39, events=POLLIN}], 1, 0) = 0 (Timeout)
write(39, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x563017125ad0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(39) = 0
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 39
write(10, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5630164ba030, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x563016e8fe40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5630164b5aa8, FUTEX_WAKE_PRIVATE, 1) = 1
poll([{fd=39, events=POLLIN}], 1, -1) = 1 ([{fd=39, revents=POLLIN}])
read(39, "\1\0\0\0\0\0\0\0", 16) = 8
write(39, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5630171e7c60, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(39) = 0
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 39
poll([{fd=39, events=POLLIN}], 1, 0) = 0 (Timeout)
write(39, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x563017125ad0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(39) = 0
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 39
write(10, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5630164ba030, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x563016e8fe40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5630164b5aa8, FUTEX_WAKE_PRIVATE, 1) = 1
poll([{fd=39, events=POLLIN}], 1, -1) = 1 ([{fd=39, revents=POLLIN}])
read(39, "\1\0\0\0\0\0\0\0", 16) = 8
write(39, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5630171e7c60, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(39) = 0

Dan MacDonald (allcoms) wrote :

As is the case for https://bugs.launchpad.net/ubuntu-mate/+bug/1717528 , my Caja's Edit -> Preferences -> 'Preview' tab -> 'Show Thumbnails' is set to 'Always' and 'Only for files smaller than' is set to 4GB.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in caja (Ubuntu):
status: New → Confirmed

I have this problem too in Ubuntu Mate 18.04. I tried it with a persistent USB installed genuine Ubuntu 18.04 (64bit) and that too shows this problem. On 16.04 LTS the problem does not occur.
Indeed it is just the DCIM/Camera folder that has the problem.
Cheers,
Peter

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers