| Summary: | Face Recognition fails (process stuck at 0%) | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | eject88 |
| Component: | Faces-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles, eglathe, idavey27, jsh121988, metzpinguin, Thomas.bach, W.Blankertz |
| Priority: | NOR | ||
| Version First Reported In: | 7.8.0 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | 8.0.0 | |
| Sentry Crash Report: | |||
| Bug Depends on: | |||
| Bug Blocks: | 472452 | ||
| Attachments: | Log from crash report Windows 10 | ||
|
Description
eject88
2022-10-17 07:19:44 UTC
Download DebugView from Microsoft and enable internal debugging in the digiKam settings under Miscellaneous-> System. Start DebugView and restart digiKam. Post the output from DebugView after no further progress on face recognition. Maik Created attachment 152922 [details]
Log from crash report Windows 10
Ok , 5 images loaded but the face engine won't start. I suspect a race condition, I also observed this problem a long time ago. Lately, the problem hadn't occurred here anymore. I will look at it. It should work if you expand the progress bar and press the cancel button on the right and start it again. Maik (In reply to Maik Qualmann from comment #3) > Ok , 5 images loaded but the face engine won't start. I suspect a race > condition, I also observed this problem a long time ago. > Lately, the problem hadn't occurred here anymore. I will look at it. > It should work if you expand the progress bar and press the cancel button on > the right and start it again. > > Maik Thank you very much!! Please ask me of any other testing or o/p you need as a feed for this matter. I will be glad to help. (In reply to Maik Qualmann from comment #3) > Ok , 5 images loaded but the face engine won't start. I suspect a race > condition, I also observed this problem a long time ago. I have just realized it. Would it help if I run this process only on one core? I know that multithreading is not bound to that but it might solve the problem for now... Currently I have set to work on all cores. > Lately, the problem hadn't occurred here anymore. I will look at it. > It should work if you expand the progress bar and press the cancel button on > the right and start it again. I did try this and waited for a long time, yet the application stopped responding eventually and had to force close it. I have similar problem. cancel button doesnt work either. *** Bug 465078 has been marked as a duplicate of this bug. *** Git commit bc9bb35ae2dd94e92e440dad95128898593bfe91 by Maik Qualmann. Committed on 31/01/2023 at 11:32. Pushed by mqualmann into branch 'qt5-maintenance'. try to fix race condition in the face engine with process events M +1 -0 core/utilities/facemanagement/threads/facepipeline_p.h M +2 -0 core/utilities/facemanagement/threads/facepreviewloader.cpp https://invent.kde.org/graphics/digikam/commit/bc9bb35ae2dd94e92e440dad95128898593bfe91 Can you please test the upcoming digiKam-7.10.0 if the problem can still be reproduced: https://files.kde.org/digikam/ Maik (In reply to Maik Qualmann from comment #9) > Can you please test the upcoming digiKam-7.10.0 if the problem can still be > reproduced: > > https://files.kde.org/digikam/ > > Maik Hello Maik, unfortunately I have switched to linux on the same laptop that I did my tests. I do hold another one with windows that I could try on that. It will not be though till 13.1.23 and onwards that I will have access to it. As requested I have installed 7.10.0, selected People module, Skip images already scanned. Unfortunately process remains at 0%. Ok, thanks for the feedback. Is the problem only reproducible with activated YOLO Engine? Maik *** Bug 465434 has been marked as a duplicate of this bug. *** Git commit f1e97676427c8850f8d875cd5dc9bc620ea7fa66 by Maik Qualmann. Committed on 08/02/2023 at 20:45. Pushed by mqualmann into branch 'master'. remove mix of FacePipelineExtendedPackage::Ptr is used as reference M +2 -2 core/utilities/facemanagement/threads/facepipeline_p.cpp M +2 -2 core/utilities/facemanagement/threads/facepipeline_p.h M +1 -1 core/utilities/facemanagement/threads/parallelpipes.cpp M +1 -1 core/utilities/facemanagement/threads/parallelpipes.h https://invent.kde.org/graphics/digikam/commit/f1e97676427c8850f8d875cd5dc9bc620ea7fa66 I'm experiencing this same issue. I think it's due to the first run of detect faces using multiple cpu cores. If I do a first run with 1 core, then the subsequent runs with multiple cores works. I think this has to happen after every startup of the digikam. My simple repro: 1. Open digikam 2. Detect faces with multiple cpu cores ENABLED 3. Progress hung at 0% 4. App is hung, so kill app. Workaround: 1. Open digikam 2. Detect faces on a small album with multiple cpu cores DISABLED 3. ENABLE multiple cpu cores 4. Detect faces on a large album My issue has been resolved. |