Bug 472452 - Face Recognition fails (process stuck at 0%)
Summary: Face Recognition fails (process stuck at 0%)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Engine (show other bugs)
Version: 8.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on: 460570
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-21 03:36 UTC by Perry Nguyen
Modified: 2024-10-09 03:19 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Perry Nguyen 2023-07-21 03:36:26 UTC
+++ This bug was initially created as a clone of Bug #460570 +++


SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Launch
2. People -> Settings -> [X] Work on all processor cores
3. Scan collection for faces
 
OBSERVED RESULT
Face detection hangs at 0% and digikam must be force killed.

EXPECTED RESULT
Face detection scan proceeds

WORKAROUND
Perform a small scan with "Work on all processor cores" unchecked
Perform a subsequent scan with "Work on all processor cores" checked
SOFTWARE/OS VERSIONS
Windows: Windows 11
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Selecting People module and performing a scan on selected directories/Albums on an external drive, process remains at 0% showing only some results in Unknown People tab.  External drive then switches its light off (meaning that there is no request for data from it) and process still remains at 0% on digikam.  At the same time the laptop remains relatively cool meaning that there is no high demanding process running actually on it (such as face detection).

Reproduced in two different by gen laptops (Lenovo X1 Carbon gen2 and gen3 respectivelly) with the same external drive used.

STEPS TO REPRODUCE
1. Workflow tab: Skip images already scanned
Detect faces
Search in tab: 5 Albums selected
Settings tab: Use YOLO v3 detection model (not selected/unchecked)
Work on all processor cores (selected/checked)
2. External drive connected to laptop with those 5 Albums selected from
3. Irelevant: Settings: Miscellaneous - System - Disable hardware acceleration OpenCL (checked or unchecked with restart makes no difference)
4. 

OBSERVED RESULT
Process is stuck with message on screen "Updating faces data base" 0%
No activity on external disk
Laptop remains relatively cool for such a cpu demanting process.
No results in People-Unknown (or other) tab except from few findings wich might even not be from those directories selected.

EXPECTED RESULT
In People-Unkown tab should expect results from all the directories in a discent amount of time with the bar and percentage moving from 0% to 100%.  From there and as the Detect faces was selectted for this bug report, one could tag enough faces so for the Recognise faces to take part afterwards as a second step/scan.

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

ADDITIONAL INFORMATION
Comment 1 Perry Nguyen 2023-07-21 03:38:59 UTC
First summary is my report, second summary is what's left from duplicating the previous bug.
Comment 2 caulier.gilles 2023-10-15 03:16:30 UTC
@Perry,

This problem still reproducible with the new digiKam 8.2.0 pre-release Windows
installer available at usual place:

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

This new bundle is based on last Qt framework 5.15.11 and KDE framework 5.110.

Thanks in advance

Gilles Caulier
Comment 3 Maik Qualmann 2023-11-29 09:08:31 UTC
*** Bug 477707 has been marked as a duplicate of this bug. ***
Comment 4 caulier.gilles 2024-10-08 01:30:05 UTC
@Perry 

Do you seen my previous comment ?

Gilles Caulier
Comment 5 Perry Nguyen 2024-10-08 21:56:42 UTC
(In reply to caulier.gilles from comment #4)
> @Perry 
> 
> Do you seen my previous comment ?
> 
> Gilles Caulier

Thanks for the ping. I lost your previous comment. I upgraded my pc in August 2023 to a 13600k. Ever since then every time I tried to do any facial recognition my pc would crash.

Recently (September 2024), I updated to latest microcode available (0x129). The crashes no longer occur on the latest version of digikam available.

Facial recognition and identification are able to run OK successfully on every option combination now.
Comment 6 caulier.gilles 2024-10-09 03:19:33 UTC
great to hear. I close this file now