Bug 425703

Summary: DigiKam crashes (again) under Linux while detecting faces
Product: [Applications] digikam Reporter: kamu <kamu>
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.2.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In: 7.2.0
Sentry Crash Report:
Attachments: crash in LoadSaveThread

Description kamu 2020-08-23 10:22:34 UTC
Created attachment 131115 [details]
crash in LoadSaveThread

SUMMARY

STEPS TO REPRODUCE
1. run "digikam-7.0.0-x86-64.appimage debug"
2. start face detection (skip already processed images)
3. let it run for some percent of the progress indicator

OBSERVED RESULT
crash (see gbd backtrace)

EXPECTED RESULT
DigiKam should finish scanning for faces

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Ubuntu 18.0.5
(available in About System)
KDE Plasma Version: -
KDE Frameworks Version: -
Qt Version: contained in appimage
Comment 1 Maik Qualmann 2020-08-23 10:33:27 UTC
There is no relevant information in the backtrace here. Please don't always open a new bug. Post your backtrace at bug 425698.

Maik

*** This bug has been marked as a duplicate of bug 425698 ***
Comment 2 caulier.gilles 2020-09-27 11:50:05 UTC
Kamu,

Can you reproduce this crash using digiKam 7.2.0-beta1 Appimage bundle available here :

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

Thanks in advance
Gilles Caulier
Comment 3 kamu 2020-09-29 19:03:18 UTC
Sure.  Unfortunately there's a crash again.  What I did:
$ export QT_LOGGING_RULES="digikam*=true"
$ digikam-7.2.0-beta1-20200928T085016-x86-64-debug.appimage debug

What I got:
Digikam::DNNFaceDetectorBase::selectBbox: Good rect =  QRect(128,112 25x34) , conf =  0.946965
Digikam::DetectionWorker::process: Found 1 faces in "IMG-20200817-WA0027.jpg" QSize(1200, 1600) QSize(1200, 1600)
Digikam::ActionThreadBase::cancel: Cancel Main Thread
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  6  CPU core to run threads
Digikam::DetectionWorker::process: Found 0 faces in "IMG-20200818-WA0000.jpg" QSize(1200, 1600) QSize(1200, 1600)
[New Thread 0x7fff38ff9700 (LWP 6571)]
[Thread 0x7fff13fff700 (LWP 6568) exited]
[Thread 0x7fff38ff9700 (LWP 6570) exited]

Thread 435 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff3bfff700 (LWP 5974)]
0x00007ffff73c61d4 in Digikam::PreviewLoadingTask::execute (this=0xc5e10b0) at /b/dktemp/digikam-master/core/libs/threadimageio/preview/previewtask.cpp:347
347	/b/dktemp/digikam-master/core/libs/threadimageio/preview/previewtask.cpp: No such file or directory.
(gdb) bt
#0  0x00007ffff73c61d4 in Digikam::PreviewLoadingTask::execute (this=0xc5e10b0) at /b/dktemp/digikam-master/core/libs/threadimageio/preview/previewtask.cpp:347
#1  0x00007ffff73dc25e in Digikam::LoadSaveThread::run (this=0xcc97a80) at /b/dktemp/digikam-master/core/libs/threadimageio/fileio/loadsavethread.cpp:154
#2  0x00007ffff74015ee in Digikam::DynamicThread::Private::run (this=0x3658ca0) at /b/dktemp/digikam-master/core/libs/threads/dynamicthread.cpp:191
#3  0x00007ffff41a8d87 in ?? () from /tmp/.mount_digikaN5vePI/usr/lib/libQt5Core.so.5
#4  0x00007ffff41a5335 in ?? () from /tmp/.mount_digikaN5vePI/usr/lib/libQt5Core.so.5
#5  0x00007ffff333e6db in start_thread (arg=0x7fff3bfff700) at pthread_create.c:463
#6  0x00007ffff3067a3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
Comment 4 caulier.gilles 2020-10-04 02:01:25 UTC
Fixed with #425698