Bug 499107

Summary: Lost all tags after to add a new collection.
Product: [Applications] digikam Reporter: fuerallesg
Component: Database-SqliteAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description fuerallesg 2025-01-24 21:03:09 UTC
SUMMARY
I added an additional collection. After adding, no album is shown at album view at the beginning. After some time the old and new one come back. However, in the old album only the first few entries have tags. All other images lost their tags. Even a restart was without success. I have had to use my backup to restore my tags.

STEPS TO REPRODUCE
Not yet happened again

OBSERVED RESULT
Lost >95% of my keywords.

EXPECTED RESULT
No effect on old keywords

SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2025-01-25 07:03:44 UTC
The problem cannot be reproduced here.
I suspect that when you created the new collection you deleted your existing collection and added it again. In fact, the existing collection is then created as a new one with a new ID.
That explains why your existing collection disappeared and was rebuilt without the tags.
An existing collection can only be edited using the update function (round circle icon).

Maik
Comment 2 fuerallesg 2025-01-25 11:23:43 UTC
I know it is not reproducible. 

However, I did not delete an existing collection. I just added the new one. Otherwise, the old images shouldn't be in the albums again. 

Interestingly, some of the first pictures in one of the albums still had all tags. Only from picture ~200 onwards all tags were lost. This would also argue against replacing an existing collection.

I will try to test the collection add-on again to see if I can reproduce this problem.

Mik
Comment 3 caulier.gilles 2025-04-11 18:14:01 UTC
Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

https://files.kde.org/digikam/

Thanks in advance
Best regards

Gilles Caulier