Bug 429307

Summary: Crash with face detection under Windows
Product: [Applications] digikam Reporter: Georg <binbaden-im>
Component: Faces-RecognitionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.2.0
Sentry Crash Report:

Description Georg 2020-11-18 14:42:35 UTC
Nach jedem Start von digiKam Vers. 7.0.0 versuche ich "Sammlung nach Gesichtern durchsuchen" nach den Befehl bricht das Programm komplett ab und Fenster wird geschlossen.

was kann ich machen?

Betriebsystem	Microsoft Windows 10 Pro
Version	10.0.18363 Build 18363



SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-11-18 15:40:59 UTC
Bitte versuchen sie in English zu schreiben, damit andere Entwickler ihren Bugreport verstehen können. Nun, digiKam-7.0.0 ist nicht mehr ganz aktuell. Wir entwickeln digiKam ständig weiter, damit es auch unter Windows gut läuft. Versuchen sie die letzte digiKam-7.2.0-Beta2 von hier:

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

Maik
Comment 2 caulier.gilles 2020-11-20 05:59:57 UTC
Georg,

7.2.0-beta2 have been updated yesterday evening at url listed by Maik previously.

Please test and report if problem still here with this version

Thanks in advance

Gilles Caulier
Comment 3 Maik Qualmann 2021-01-05 11:43:51 UTC
Git commit df6e4fcf0157246f6d1d646f6d768d2b27e48f89 by Maik Qualmann.
Committed on 05/01/2021 at 11:42.
Pushed by mqualmann into branch 'master'.

this could be a cause of the crash in the preview loader
Related: bug 427380, bug 421043, bug 427333

M  +4    -0    core/libs/threadimageio/fileio/loadsavetask.cpp
M  +5    -0    core/libs/threadimageio/preview/previewtask.cpp
M  +2    -0    core/libs/threadimageio/thumb/thumbnailtask.cpp

https://invent.kde.org/graphics/digikam/commit/df6e4fcf0157246f6d1d646f6d768d2b27e48f89
Comment 4 Maik Qualmann 2021-01-14 06:35:40 UTC
Git commit d62937a9e0c3a496f8ccbdbe72835d08899d6718 by Maik Qualmann.
Committed on 14/01/2021 at 06:33.
Pushed by mqualmann into branch 'master'.

the DynamicThread should not be a QRunnable
Otherwise it is a bit strange that a QRunnable
started a QRunnable, only the QThreadPool should do this.
Related: bug 427380, bug 421043, bug 427333

M  +2    -3    core/libs/threads/dynamicthread.cpp
M  +7    -3    core/libs/threads/dynamicthread.h

https://invent.kde.org/graphics/digikam/commit/d62937a9e0c3a496f8ccbdbe72835d08899d6718
Comment 5 Maik Qualmann 2021-01-14 06:50:33 UTC
Git commit 46d4abd0cfcbdbdbab1f1189186e1737caec2839 by Maik Qualmann.
Committed on 14/01/2021 at 06:49.
Pushed by mqualmann into branch 'master'.

call wait() after stop() before call start() again
Otherwise a running task has not yet ended and and
is deleted when the QThreadPool is started again.
Related: bug 427380, bug 421043, bug 427333

M  +1    -0    core/utilities/facemanagement/threads/facepreviewloader.cpp

https://invent.kde.org/graphics/digikam/commit/46d4abd0cfcbdbdbab1f1189186e1737caec2839