Bug 514387

Summary: Old thumbnails are used after deletion.
Product: [Applications] digikam Reporter: Andy <zunar>
Component: Thumbs-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 9.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:
Attachments: Thumbnails1

Description Andy 2026-01-09 21:32:52 UTC
Created attachment 188364 [details]
Thumbnails1

Hi!

I enhanced all the photos in an album using automatic color matching. The album showed the original image and a file with "v1" at the end.

I deleted the originals. Then I manually removed the "_v1" extension from each file. At that moment, the thumbnail reverted to the old version. When I opened the image, I could see the modified file.

Tools -> Check for new entries didn't help.
Pressing F5 updates the thumbnails for all photos.

Regards
Andy
Comment 1 Maik Qualmann 2026-01-10 06:57:42 UTC
Yes, I can reproduce it; it's a cache problem. The old thumbnail with the old name is still in the cache and is therefore being used.

Maik
Comment 2 Maik Qualmann 2026-01-10 09:34:08 UTC
The problem is more extensive than thought; the problem is that after deletion, the item with the old name remains in the database as a stale item. When renaming, a database error occurs because the old/new name still exists.

Maik
Comment 3 Maik Qualmann 2026-01-10 18:54:09 UTC
The connection between GitLab and Bug Tracker doesn't seem to have worked today, so I'm closing it manually.

https://invent.kde.org/graphics/digikam/-/commit/958cb2c56968874eee5a3d38444e793103a60014

Maik
Comment 4 Maik Qualmann 2026-01-10 19:25:31 UTC
Git commit 958cb2c56968874eee5a3d38444e793103a60014 by Maik Qualmann.
Committed on 10/01/2026 at 12:04.
Pushed by mqualmann into branch 'master'.

fix renaming of thumbnails and cache
FIXED-IN: 9.0.0

M  +1    -1    NEWS
M  +12   -0    core/libs/database/thumbsdb/thumbsdb.cpp
M  +2    -1    core/libs/database/utils/ifaces/dio.cpp

https://invent.kde.org/graphics/digikam/-/commit/958cb2c56968874eee5a3d38444e793103a60014