Bug 229234 - thumbnail mismatch for images with same name
Summary: thumbnail mismatch for images with same name
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Thumbs (show other bugs)
Version: 1.2.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 12:11 UTC by Stefano
Modified: 2017-07-25 10:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano 2010-03-03 12:11:34 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

I have a large (>20000 images) db, and images happen to have duplicate file names even if they're different images in different albums (digital camera counter resets...).

Starting from recent versions (I'm using 1.1.0 right now, but I've never run into this problem before version 1.0.0) I've seen that the thumbnail for say picture DSC01000.jpg in one folder is applied also to another DSC01000.jpg, which is completely another picture.

I've rm'ed the thumbnails db by hand and it seems that now they're created correctly (the thumb db was the original one, updated each release), but I cant assume the problem is solved.

Is picture full path stored in thumb db?
Comment 1 caulier.gilles 2010-03-03 12:14:12 UTC
This is fully releavant of thumbnails database entries registration

Right Marcel ?

Gilles Caulier
Comment 2 Stefano 2010-03-03 12:19:13 UTC
Just to be more precise, the *photo* DB comes from very ancient releases, I've never had to rebuild it (eheh, good work guys), so the problem may be related to updates-on-updates, and unexistent on new fresh installs.
Comment 3 Marcel Wiesweg 2010-03-03 18:56:49 UTC
The file paths in the thumbnail db are stored by full file path (plain simple file path, nothing fancy about volumes and collections) and alternatively content-based hash.

I dont know what has happened here.
The question is: can you reproduce?
Comment 4 Tom Malfrere 2010-06-10 14:56:45 UTC
Same problem here!

I have 2 cameras (Canon 300D and 550D). OpenSuse 11.2 with digikam 1.0.0 and 1.2.0.

I have a Synology network HD thats fetches my images from my cameras. 
First I copied my images from my 550D to my network HD. Then I copied these foto's to my 'new' folder on my laptop (OpenSuSE 11.2). Then I opened digikam 1.0.0. All thumbnails were OK. I created some new folders and sorted all the fotos from my 550D into these folders. I ended with an empty 'new' folder.

Then my synology copied these fotos from my 300D camera. I copied these images into my 'new' folder. I opened digikam (1.2.0). 
Some of the images had a wrong thumbnail. Images with the same name as images from my 550D camera had the wrong thumbnail! 
viewing the full image or the preview gave the correct image (different from thumbnail).
Selecting an other folder and back did not help.
Pressing F5 did not help.
Thumbnail rebuild (Quick) did not help.
Closing digikam and reopening did not help.
Closing dikikam renaming the images and reopening digikam did not help. The images now had a different name, but still the thumbnails were wrong.

I upgraded my KDE from 4.3.5 to 4.4 and digikam from 1.0.0 to 1.2.0
I opened digikam and still the thumbnails were wrong.

I finally resolved the problem by deleting the thumbnail.db (not sure about the correct name) in my home folder.
Comment 5 Tom Malfrere 2010-06-10 15:07:12 UTC
I made a small typo there.
the images from my 300D were also opened with digikam 1.0.0 not with 1.2.0.
It's on later I did the upgrade.

Another detail I would like to report is that my thumbnail database could have been very old. I have been using digikam for several years. I think I started with v0.5 or so...
Comment 6 Marcel Wiesweg 2010-06-10 17:05:39 UTC
Ok, that's interesting but doesn't help too much because your thumbnail db is deleted and you were using an old version of digikam.
Let me hear when someone can reproduce with 1.3.0 and has a thumbnail db ready for inspection.
Comment 7 Tom Malfrere 2010-06-13 21:25:52 UTC
I'm waiting for opensuse to build me an 1.3 package.
Then I'll try if I still get the same issue.
Comment 8 Francesco Riosa 2011-06-29 12:52:51 UTC
2.0.0-rc is out, please re-open if needed