Bug 489751

Summary: Digikam freezes and closes if you save a face tag.
Product: [Applications] digikam Reporter: C_Pr <cprt>
Component: Faces-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 8.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.5.0
Sentry Crash Report:
Attachments: Database files and image.

Description C_Pr 2024-07-04 18:46:25 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Digikam freezes and closes if you save a face tag.

STEPS TO REPRODUCE
1. Image preview, face tagging: you draw the rectangle.
2. Either you enter first letters, select the person, press Enter, or you scroll the list of persons, double-click.
3. 

OBSERVED RESULT
DigiKam freezes and closes.

EXPECTED RESULT
I expect DigiKam not to freeze and close.

SOFTWARE/OS VERSIONS
Windows:  Windows 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2024-07-04 18:54:50 UTC
The problem must be fixed in digiKam-8.4.0, please download the test version from here and report:

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

Maik
Comment 2 C_Pr 2024-07-16 05:30:48 UTC
Created attachment 171698 [details]
Database files and image.
Comment 3 C_Pr 2024-07-16 05:31:26 UTC
With another computer set with French language, I used Digikam 8.3, and I encountered no issue with face tagging.
I copied all the database files to the first computer, face tagging succeeds.
I removed all tags except People ones, I deleted all files except recognition.db, I asked Digikam to create a new database. I think it didn't remove recognition.db. Face tagging succeeds -> folder Digikam.success.
I created a new directory, I asked Digikam to create a new database, face tagging fails -> folder Digicam.failure.
It seems to me that the issue is related to recognition.db.
Comment 4 Maik Qualmann 2024-07-16 18:30:50 UTC
Git commit 4b21b81b55d85cd02ef62ef19780d8831694b5b9 by Maik Qualmann.
Committed on 16/07/2024 at 18:28.
Pushed by mqualmann into branch 'master'.

fix missing tags when changing database at runtime

M  +10   -0    core/libs/database/tags/tagscache.cpp

https://invent.kde.org/graphics/digikam/-/commit/4b21b81b55d85cd02ef62ef19780d8831694b5b9
Comment 5 Maik Qualmann 2024-07-16 18:44:03 UTC
Thank you for your work in creating a test case. However, I cannot reproduce any crashes with the "Digicam.failure" folder, regardless of whether I create a new face tag or use an existing one.
Please download the Microsoft program "DebugView", activate internal debugging in the digiKam settings under Miscellaneous -> System. Start DebugView, restart digiKam. Try to reproduce the problem, post the log in DebugView.

Maik
Comment 6 caulier.gilles 2024-07-17 06:25:13 UTC
Hi,

It's reproducible with last 8.4.0 release ?

https://download.kde.org/stable/digikam/8.4.0/

Best

Gilles Caulier
Comment 7 caulier.gilles 2024-10-08 01:27:45 UTC
@C_Pr

Do you seen my previous comment ?

Gilles Caulier
Comment 8 caulier.gilles 2024-10-16 11:02:01 UTC
No response and certainly already fixed