Two thumbnail requests for each image in photo roll view

Bug #1517260 reported by Michi Henning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
camera-app
Confirmed
High
Unassigned
camera-app (Ubuntu)
Confirmed
High
Unassigned
thumbnailer (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

I'm seeing two requests for thumbnails when scrolling in the photo roll view.

thumbnailer-service: [23:45:47.191] "thumbnail: /home/phablet/Pictures/com.ubuntu.camera/image20151104_043132332.jpg (248,0): 0.027926 sec (MISS)"
thumbnailer-service: [23:45:47.201] "thumbnail: /home/phablet/Pictures/com.ubuntu.camera/image20151104_043132332.jpg (248,248): 0.036288 sec (MISS)"
thumbnailer-service: [23:45:47.608] "thumbnail: /home/phablet/Pictures/com.ubuntu.camera/image20151104_043130161.jpg (248,0): 0.025118 sec (MISS)"
thumbnailer-service: [23:45:47.619] "thumbnail: /home/phablet/Pictures/com.ubuntu.camera/image20151104_043130161.jpg (248,248): 0.034762 sec (MISS)"

Note that, for each image, one requests is for (248,0), followed by another request for (248,248).

This is decidedly sub-optimal because it makes two round-trips to the thumbnailer for each image and causes the thumbnailer to cache two thumbnails. This reduces the effectiveness of the cache and wastes CPU.

To reproduce, take around 30 photos. In a shell on the device, run

thumbnailer-admin clear

Run a

tail -f ~/.cache/upstart/dbus.log

Now start the camera app. Change to the photo roll view and slowly scroll down. As each new image comes into view, there are two requests sent to the thumbnailer for each image.

Changed in thumbnailer (Ubuntu):
status: New → Triaged
importance: Undecided → High
importance: High → Undecided
Changed in camera-app:
importance: Undecided → High
Changed in camera-app:
status: New → Confirmed
Changed in camera-app (Ubuntu):
status: New → Confirmed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.