Bug 511828 - Face recognition settings incorrect after crash
Summary: Face recognition settings incorrect after crash
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (other bugs)
Version First Reported In: 9.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-08 14:59 UTC by Andy
Modified: 2025-12-25 10:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2025-11-08 14:59:26 UTC
Hi!

After a program crash (e.g., computer crash or ending the task in Task Manager), the face recognition settings are changed. The accuracy is set to 10 and the face size to Large.
If I then set my preferred values ​​again (7 and Very Small) and try to manually detect faces in a photo, it doesn't work. The program has to be closed and restarted first. Only then, when I detect faces in the photo, does it work.

Perhaps it's possible to save the settings permanently so that a program crash, regardless of how it happens, doesn't change them.

Regards Andy
Comment 1 caulier.gilles 2025-11-08 18:27:26 UTC
Sounds like a race condition. Typically the settings are registered in configuration files hosted in the user account before to star the face engine. Probably a component relevant of the DNN model using the GPU is initialized at the same time in a separated thread. We will take a look.

Best regards

Gilles Caulier
Comment 2 Maik Qualmann 2025-11-09 12:43:56 UTC
Git commit 1923e78ec99efbb59f095353c148343c42306684 by Maik Qualmann.
Committed on 09/11/2025 at 12:43.
Pushed by mqualmann into branch 'master'.

fix wrong face scan settings in the config
FIXED-IN: 8.9.0

M  +1    -1    NEWS
M  +4    -4    core/app/views/sidebar/peoplesidebarwidget.cpp
M  +5    -1    core/libs/facesengine/widgets/facescanwidget.cpp

https://invent.kde.org/graphics/digikam/-/commit/1923e78ec99efbb59f095353c148343c42306684