Bug 453971 - Maintenance / Face recognition - digiKam (Not responding)
Summary: Maintenance / Face recognition - digiKam (Not responding)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Faces (show other bugs)
Version: 7.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-18 08:07 UTC by HJ
Modified: 2022-11-27 16:51 UTC (History)
3 users (show)

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


Attachments
Debugview log 183 entries - and no more (25.53 KB, text/plain)
2022-05-18 13:11 UTC, HJ
Details
Maintenance face detection, 5 minutes 0% progress, freeze and forced end (30.20 KB, text/plain)
2022-05-18 14:04 UTC, HJ
Details
The hangs have disappeared (67.21 KB, text/plain)
2022-06-02 19:30 UTC, HJ
Details
Fix - still hangs when Scan again and merge results. (83.56 KB, text/plain)
2022-06-02 19:46 UTC, HJ
Details
It looks like the issues are gone in the latest version. (114.94 KB, text/plain)
2022-06-18 12:38 UTC, HJ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HJ 2022-05-18 08:07:57 UTC
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
One album, four pictures, no faces.
Database cleaning done.
Tool / Maintenance / Face recognition.
"Scan again and merge results"
or
"Clear unconfirmed results and rescan"
Updating faces database - no progress - constantly 0%

In case of forced termination of the process - digiKam (Not responding).

digiKam crashes completely.

Nothing happens before digiKam is forcibly closed.

The same result for faces in pictures.

OBSERVED RESULT
Updating faces database - no progress - constantly 0%
In case of forced termination of the process - digiKam (Not responding).

EXPECTED RESULT
Normal operation.

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

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2022-05-18 08:10:45 UTC
Please try to reproduce the dysfunction with debugview tool from Microsoft running in background of digiKam to catch debug traces from application.

Look here for details :

https://www.digikam.org/contribute/

Best

Gilles Caulier
Comment 2 HJ 2022-05-18 12:14:54 UTC
Debugview is not working properly.
Last issued line:
[6416] digikam.general: Plugin of type Digikam :: DPluginGeneric loaded from "C: / Program Files / digiKam / plugins / digikam / generic / Generic_Panorama_Plugin.dll"

I can't guess what's wrong.

The value of the user variable (all without quotation marks) QT_LOGGING_RULES is digikam* = true

Hannes
Comment 3 Maik Qualmann 2022-05-18 12:22:07 UTC
DebugView seems to work correctly, you got a debug message. Start DebugView first, then digikam.

Maik
Comment 4 HJ 2022-05-18 13:11:25 UTC
Created attachment 148947 [details]
Debugview log 183 entries - and no more

The log always ends on the same entry

Additional Information: The contents of the Debugview Help entry are not visible.

Hannes
Comment 5 Maik Qualmann 2022-05-18 13:19:11 UTC
The log is good, exactly what we want to see. You also have to open the maintenance tool and run the face action that doesn't work and then post the entire log again.

Maik
Comment 6 HJ 2022-05-18 14:04:13 UTC
Created attachment 148950 [details]
Maintenance face detection, 5 minutes 0% progress, freeze and forced end

Debugview log from digiKam startup to face detection, 5 minutes 0% progress, freeze and forced end.
At the end is a log of some other activity.

Hannes
Comment 7 Maik Qualmann 2022-05-18 15:26:08 UTC
Hmm, the last log outputs are not from digiKam, but from other programs. The output from the maintenance tool is missing, as if you didn't start it.

Maik
Comment 8 Maik Qualmann 2022-05-18 15:38:31 UTC
I see that other debug messages that should appear are also missing. I'll send a picture of the Windows Environment Variable Editor later for the setting.

Maik
Comment 9 Maik Qualmann 2022-05-19 15:47:01 UTC
I can confirm that the creation of the DebugView log is not working correctly at the moment. The log ends here at the same point. I have to see what the cause is.

Maik
Comment 10 Maik Qualmann 2022-06-02 11:53:46 UTC
The reason for the interruption of the debug output is the Generic_PicFlowView_Plugin.dll.
Please delete the file and create a new debug output.

C:\Program Files\digiKam\plugins\digikam\generic\Generic_PicFlowView_Plugin.dll

Maik
Comment 11 HJ 2022-06-02 19:30:08 UTC
Created attachment 149417 [details]
The hangs have disappeared

The hangs have disappeared since the recommendation was implemented. However, faces are not detected.

Hannes
Comment 12 HJ 2022-06-02 19:46:18 UTC
Created attachment 149418 [details]
Fix - still hangs when Scan again and merge results.

Fix - still hangs when Scan again and merge results.

Hannes
Comment 13 Maik Qualmann 2022-06-02 20:33:58 UTC
Yes, I can reproduce the problem on Windows and digiKam-7.7.0 here now. The factor is the use of multicore. The problem does not occur with digiKam-7.6.0 on Windows or on the Linux platform in general. So the question is, what has changed under digiKam-7.7.0?

If a face scan is run on a single image in the preview beforehand, there is no longer a problem with multi-core and the maintenance dialog.

Maik
Comment 14 Maik Qualmann 2022-06-02 20:49:40 UTC
Git commit a4f8e09ce3b0080c16a0bdcca0ff29923ff46682 by Maik Qualmann.
Committed on 02/06/2022 at 20:47.
Pushed by mqualmann into branch 'qt5-maintenance'.

ignore Flow View plugin in DPlugin Loader
The plugin breaks digiKam's debug handling
by installing its own Qt debug handler.
The external author must change this.
Related: bug 454739

M  +1    -0    core/libs/dplugins/setup/dpluginloader_p.cpp

https://invent.kde.org/graphics/digikam/commit/a4f8e09ce3b0080c16a0bdcca0ff29923ff46682
Comment 15 Maik Qualmann 2022-06-03 19:28:55 UTC
Git commit 2be361ea7ea7e945e8cf6e83a192a3aa72091502 by Maik Qualmann.
Committed on 03/06/2022 at 19:27.
Pushed by mqualmann into branch 'qt5-maintenance'.

try to fix the lock problem in the face detector

M  +6    -3    core/utilities/facemanagement/threads/facepipeline.cpp
M  +1    -0    core/utilities/maintenance/maintenancemngr.cpp

https://invent.kde.org/graphics/digikam/commit/2be361ea7ea7e945e8cf6e83a192a3aa72091502
Comment 16 HJ 2022-06-18 12:38:17 UTC
Created attachment 149891 [details]
It looks like the issues are gone in the latest version.

It looks like the issues are gone in the latest version.
Build date: 15/06/2022 20:38 (target: RelWithDebInfo)
Revision: 9a058c9f5db20642deb1504345abeaa7119d0f9a

Hannes
Comment 17 caulier.gilles 2022-11-27 16:48:36 UTC
Git commit ffd179f90f4c4b1294828021626554796bee010f by Gilles Caulier.
Committed on 27/11/2022 at 16:46.
Pushed by cgilles into branch 'qt5-maintenance'.

add patch for digiKam debug space support in FlowView Plugin
Related: bug 454739

M  +2    -2    project/bundles/3rdparty/ext_flowview/CMakeLists.txt
A  +155  -0    project/bundles/3rdparty/ext_flowview/fix-c++-qdebug.patch
D  +0    -12   project/bundles/3rdparty/ext_flowview/fix-c++-rules.patch

https://invent.kde.org/graphics/digikam/commit/ffd179f90f4c4b1294828021626554796bee010f
Comment 18 caulier.gilles 2022-11-27 16:51:43 UTC
Git commit 5b2543fa4d6d5d872cedf7b3b12b4142912c6fdb by Gilles Caulier.
Committed on 27/11/2022 at 16:50.
Pushed by cgilles into branch 'qt5-maintenance'.

re-enable FlowView plugin
Related: bug 454739

M  +0    -1    core/libs/dplugins/setup/dpluginloader_p.cpp

https://invent.kde.org/graphics/digikam/commit/5b2543fa4d6d5d872cedf7b3b12b4142912c6fdb