Gallery app does not refresh thumbnails correctly

Bug #1234130 reported by Richard Huddie
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gallery-app
Fix Released
High
Ugo Riboni
qtubuntu-camera
Fix Released
High
Ugo Riboni
gallery-app (Ubuntu)
Fix Released
High
Ugo Riboni
qtubuntu-camera (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

PRE-REQUISITE:
Delete all images from the gallery

TEST CASE:
1. Take a photo using the camera app
2. Load the gallery app and view the thumbnail of the image just taken
3. Select the thumbnail and delete it from gallery (gallery should be blank)
4. Switch back to camera app, leaving gallery running
5. Take another photo using the camera (take it of something different to the first image)
6. Switch back to the gallery app

EXPECTED RESULT:
The new image thumbnail should be displayed in the gallery

ACTUAL RESULT:
The old thumbnail image from the first image is displayed. When you press the thumbnail the new image loads.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: gallery-app 0.0.67+13.10.20130924.1-0ubuntu2
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.5-0ubuntu1
Architecture: armhf
Date: Wed Oct 2 11:46:02 2013
InstallationDate: Installed on 2013-10-01 (0 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20131001.3)
MarkForUpload: True
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
SourcePackage: gallery-app
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Richard Huddie (rhuddie) wrote :
Richard Huddie (rhuddie)
tags: added: rls-s-incoming
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. I confirm this defect with the steps in the description.

Changed in gallery-app (Ubuntu):
status: New → Triaged
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This also happens with the gallery populated with previous photos.
Seems to depend on both apps staying open.
Only seems to happen on the first photo.
Restarting the gallery shows the correct thumbnail.

Changed in gallery-app (Ubuntu):
assignee: nobody → Ugo Riboni (uriboni)
importance: High → Critical
Ugo Riboni (uriboni)
Changed in gallery-app (Ubuntu):
status: Triaged → In Progress
tags: added: rtm14
Bill Filler (bfiller)
tags: added: touch-2014-09-11
Revision history for this message
Florian Boucault (fboucault) wrote :

Photo naming algorithm is part of qtubuntu-camera, file storagemanager.cpp: StorageManager::nextMediaFileName(). I believe that should be fixed to use a fixed counter ideally, or adding a timestamp.

Revision history for this message
Florian Boucault (fboucault) wrote :

A patch like that on qtubuntu-camera may do the job: http://pastebin.ubuntu.com/8253546/
Thinking of the better fixed counter solution and how to store the counter.

Revision history for this message
Florian Boucault (fboucault) wrote :

Side note: the best solution would be of course that the thumbnailer notices that even though the file name is the same, the file is different and therefore a new thumbnail needs to be generated.

Bill Filler (bfiller)
Changed in gallery-app (Ubuntu):
importance: Critical → High
Changed in qtubuntu-camera:
importance: Undecided → High
assignee: nobody → Ugo Riboni (uriboni)
Bill Filler (bfiller)
Changed in gallery-app:
importance: Undecided → High
assignee: nobody → Ugo Riboni (uriboni)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtubuntu-camera - 0.3.3+14.10.20140911-0ubuntu1

---------------
qtubuntu-camera (0.3.3+14.10.20140911-0ubuntu1) utopic; urgency=low

  [ Ugo Riboni ]
  * Prevent filenames from reoccurring when a photo is deleted and re-
    taken the same day, by adding time up to the second to the filename.
    (LP: #1234130)
 -- Ubuntu daily release <email address hidden> Thu, 11 Sep 2014 19:55:53 +0000

Changed in qtubuntu-camera (Ubuntu):
status: New → Fix Released
Bill Filler (bfiller)
Changed in gallery-app (Ubuntu):
status: In Progress → Fix Released
Changed in gallery-app:
status: In Progress → Fix Released
Changed in qtubuntu-camera:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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