Bug 423632

Summary: Segfault when scanning faces
Product: [Applications] digikam Reporter: Thomas Coquelin <totocoq>
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR Keywords: drkonqi
Version: 7.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 7.2.0
Sentry Crash Report:

Description Thomas Coquelin 2020-06-28 21:45:09 UTC
Application: digikam (7.0.0-rc)

Qt Version: 5.14.2
Frameworks Version: 5.70.0
Operating System: Linux 5.4.2-gentoo x86_64
Windowing system: X11
Distribution: Gentoo/Linux

-- Information about the crash:
- What I was doing when the application crashed:

Launching face detection scan
I have this bug since Digikam v5, upgrade to v6 then v7-beta did not help

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fef407bb5c0 (LWP 1210579))]

Thread 44 (Thread 0x7fee3e4fe700 (LWP 1211906)):
#0  0x00007fef5ac27507 in getpid () at /lib64/libc.so.6
#1  0x00007feeda20f7e9 in is_forked_child () at /var/tmp/portage/dev-libs/roct-thunk-interface-3.5.0/work/ROCT-Thunk-Interface-rocm-3.5.0/src/openclose.c:58
#2  0x00007feeda20f842 in is_forked_child () at /var/tmp/portage/dev-libs/roct-thunk-interface-3.5.0/work/ROCT-Thunk-Interface-rocm-3.5.0/src/openclose.c:55
#3  0x00007feeda20e449 in kmtIoctl (fd=44, request=request@entry=3222817548, arg=arg@entry=0x7fee3e4fd670) at /var/tmp/portage/dev-libs/roct-thunk-interface-3.5.0/work/ROCT-Thunk-Interface-rocm-3.5.0/src/libhsakmt.c:21
#4  0x00007feeda2086fc in hsaKmtWaitOnMultipleEvents (Milliseconds=4294967294, WaitOnAll=false, NumEvents=<optimized out>, Events=0x7fee3e4fd8a0) at /var/tmp/portage/dev-libs/roct-thunk-interface-3.5.0/work/ROCT-Thunk-Interface-rocm-3.5.0/src/events.c:312
#5  hsaKmtWaitOnMultipleEvents (Events=0x7fee3e4fd8a0, NumEvents=2, WaitOnAll=<optimized out>, Milliseconds=4294967294) at /var/tmp/portage/dev-libs/roct-thunk-interface-3.5.0/work/ROCT-Thunk-Interface-rocm-3.5.0/src/events.c:286
#6  0x00007fee840efeb1 in core::Signal::WaitAny(unsigned int, hsa_signal_s const*, hsa_signal_condition_t const*, long const*, unsigned long, hsa_wait_state_t, long*) () at /usr/lib64/libhsa-runtime64.so.1
#7  0x00007fee840bb5bc in AMD::hsa_amd_signal_wait_any(unsigned int, hsa_signal_s*, hsa_signal_condition_t*, long*, unsigned long, hsa_wait_state_t, long*) () at /usr/lib64/libhsa-runtime64.so.1
#8  0x00007fee840d7526 in core::Runtime::AsyncEventsLoop(void*) () at /usr/lib64/libhsa-runtime64.so.1
#9  0x00007fee8405b387 in os::ThreadTrampoline(void*) () at /usr/lib64/libhsa-runtime64.so.1
#10 0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#11 0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 43 (Thread 0x7fee3d0bd700 (LWP 1211905)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b05e2c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b05e2c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b05e20) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b05e00) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 42 (Thread 0x7fee444f9700 (LWP 1211904)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b05f2c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b05f2c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b05f20) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b05f00) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 41 (Thread 0x7fee448fa700 (LWP 1211903)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b0602c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b0602c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b06020) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b06000) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 40 (Thread 0x7fee44cfb700 (LWP 1211902)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b05eac) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b05eac) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b05ea0) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b05e80) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 39 (Thread 0x7fee6c445700 (LWP 1211901)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b05fac) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b05fac) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b05fa0) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b05f80) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 38 (Thread 0x7fee46ffd700 (LWP 1211900)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b0612c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b0612c) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b06120) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b06100) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 37 (Thread 0x7fee477fe700 (LWP 1211899)):
#0  0x00007fef5ac53979 in syscall () at /lib64/libc.so.6
#1  0x00007fef50b881ad in tbb::internal::futex_wait(void*, int) (comparand=2, futex=0x7feed8b060ac) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/include/tbb/machine/linux_common.h:81
#2  tbb::internal::binary_semaphore::P() (this=0x7feed8b060ac) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/semaphore.h:205
#3  rml::internal::thread_monitor::commit_wait(rml::internal::thread_monitor::cookie&) (c=..., this=0x7feed8b060a0) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/../rml/server/thread_monitor.h:255
#4  tbb::internal::rml::private_worker::run() (this=0x7feed8b06080) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:273
#5  0x00007fef50b881e9 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/private_server.cpp:219
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 36 (Thread 0x7fee47fff700 (LWP 1211888)):
[KCrash Handler]
#4  0x00007fef5b077a17 in QMutex::lock() () at /usr/lib64/libQt5Core.so.5
#5  0x00007fef5b2e2be0 in QMimeDatabase::mimeTypeForFile(QFileInfo const&, QMimeDatabase::MatchMode) const () at /usr/lib64/libQt5Core.so.5
#6  0x00007fef5b2e3140 in QMimeDatabase::mimeTypeForFile(QString const&, QMimeDatabase::MatchMode) const () at /usr/lib64/libQt5Core.so.5
#7  0x00007feeec1cb2c8 in DigikamImageMagickDImgPlugin::DImgImageMagickPlugin::canRead(QFileInfo const&, bool) const () at /usr/lib64/qt5/plugins/digikam/dimg/DImg_ImageMagick_Plugin.so
#8  0x00007fef5c74d9b6 in Digikam::DImg::fileFormat(QString const&) () at /usr/lib64/libdigikamcore.so.7.0.0
#9  0x00007fef5c8169e3 in Digikam::PreviewLoadingTask::execute() () at /usr/lib64/libdigikamcore.so.7.0.0
#10 0x00007fef5c82b91d in Digikam::LoadSaveThread::run() () at /usr/lib64/libdigikamcore.so.7.0.0
#11 0x00007fef5c84b9de in Digikam::DynamicThread::Private::run() () at /usr/lib64/libdigikamcore.so.7.0.0
#12 0x00007fef5b07a623 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#13 0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#14 0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#15 0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 35 (Thread 0x7fee53fff700 (LWP 1211887)):
#0  0x00007fef5ac49f2c in read () at /lib64/libc.so.6
#1  0x00007fef52c6633f in g_wakeup_acknowledge () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fef52c1ef4e in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fef52c1f392 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007fef5b27701b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007fef5c84a3d1 in Digikam::WorkerObjectRunnable::run() () at /usr/lib64/libdigikamcore.so.7.0.0
#8  0x00007fef5b07a623 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#9  0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#10 0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#11 0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 34 (Thread 0x7fee86fff700 (LWP 1211796)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5b07c86b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fef5b079837 in QThreadPoolPrivate::waitForDone(QDeadlineTimer const&) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fef5b079ca7 in QThreadPoolPrivate::waitForDone(int) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fef5b079d3c in QThreadPool::~QThreadPool() () at /usr/lib64/libQt5Core.so.5
#5  0x00007fef5b079d59 in QThreadPool::~QThreadPool() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fef5b2531cc in QObjectPrivate::deleteChildren() () at /usr/lib64/libQt5Core.so.5
#7  0x00007fef5b253e52 in QObject::~QObject() () at /usr/lib64/libQt5Core.so.5
#8  0x00007fef5c849e59 in Digikam::(anonymous namespace)::Q_QGS_creator::innerFunction()::Holder::~Holder() () at /usr/lib64/libdigikamcore.so.7.0.0
#9  0x00007fef5ab99ee3 in __run_exit_handlers () at /lib64/libc.so.6
#10 0x00007fef5ab9a09a in  () at /lib64/libc.so.6
#11 0x00007fef34e8385e in  () at /usr/lib/llvm/10/lib64/libLLVM-10.so
#12 0x00007fef34dc597a in llvm::report_fatal_error(llvm::Twine const&, bool) () at /usr/lib/llvm/10/lib64/libLLVM-10.so
#13 0x00007fef34dc5ab9 in  () at /usr/lib/llvm/10/lib64/libLLVM-10.so
#14 0x00007fef34db1002 in (anonymous namespace)::CommandLineParser::addOption(llvm::cl::Option*, llvm::cl::SubCommand*) () at /usr/lib/llvm/10/lib64/libLLVM-10.so
#15 0x00007fef34db220b in llvm::cl::Option::addArgument() () at /usr/lib/llvm/10/lib64/libLLVM-10.so
#16 0x00007fee219b60ab in __static_initialization_and_destruction_0(int, int) [clone .constprop.0] () at /usr/lib/llvm/roc/lib/libLLVMSupport.so.11roc
#17 0x00007fef5db0311a in call_init.part () at /lib64/ld-linux-x86-64.so.2
#18 0x00007fef5db03219 in _dl_init () at /lib64/ld-linux-x86-64.so.2
#19 0x00007fef5db06f5b in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#20 0x00007fef5ac8eb41 in _dl_catch_exception () at /lib64/libc.so.6
#21 0x00007fef5db0685a in _dl_open () at /lib64/ld-linux-x86-64.so.2
#22 0x00007fef52d7a258 in dlopen_doit () at /lib64/libdl.so.2
#23 0x00007fef5ac8eb41 in _dl_catch_exception () at /lib64/libc.so.6
#24 0x00007fef5ac8ebdf in _dl_catch_error () at /lib64/libc.so.6
#25 0x00007fef52d7a995 in _dlerror_run () at /lib64/libdl.so.2
#26 0x00007fef52d7a2e6 in dlopen () at /lib64/libdl.so.2
#27 0x00007fee8474ee97 in amd::Os::loadLibrary(char const*) [clone .localalias] () at /usr/lib64/libamdocl64.so
#28 0x00007fee8475c33b in amd::Comgr::LoadLib() () at /usr/lib64/libamdocl64.so
#29 0x00007fef54b091b7 in __pthread_once_slow () at /lib64/libpthread.so.0
#30 0x00007fee84739a23 in amd::Device::ValidateComgr() () at /usr/lib64/libamdocl64.so
#31 0x00007fee8476f898 in roc::Device::create(bool) () at /usr/lib64/libamdocl64.so
#32 0x00007fee8477100e in roc::Device::init() () at /usr/lib64/libamdocl64.so
#33 0x00007fee847397a1 in amd::Device::init() () at /usr/lib64/libamdocl64.so
#34 0x00007fee847433de in amd::Runtime::init() () at /usr/lib64/libamdocl64.so
#35 0x00007fee84734315 in std::call_once<clIcdGetPlatformIDsKHR::{lambda()#1}>(std::once_flag&, clIcdGetPlatformIDsKHR::{lambda()#1}&&)::{lambda()#2}::_FUN() () at /usr/lib64/libamdocl64.so
#36 0x00007fef54b091b7 in __pthread_once_slow () at /lib64/libpthread.so.0
#37 0x00007fee84734429 in clIcdGetPlatformIDsKHR () at /usr/lib64/libamdocl64.so
#38 0x00007fef40e02333 in khrIcdVendorAdd () at /usr/lib64/libOpenCL.so.1
#39 0x00007fef40e0418c in khrIcdOsVendorsEnumerate () at /usr/lib64/libOpenCL.so.1
#40 0x00007fef54b091b7 in __pthread_once_slow () at /lib64/libpthread.so.0
#41 0x00007fef40e028c1 in clGetPlatformIDs () at /usr/lib64/libOpenCL.so.1
#42 0x00007fef552d5bf2 in cv::ocl::haveOpenCL() () at /usr/lib64/libopencv_core.so.4.1
#43 0x00007fef552ddd18 in cv::ocl::useOpenCL() () at /usr/lib64/libopencv_core.so.4.1
#44 0x00007fef55340b99 in cv::UMat::getStdAllocator() () at /usr/lib64/libopencv_core.so.4.1
#45 0x00007fef55341155 in cv::UMat::create(int, int const*, int, cv::UMatUsageFlags) () at /usr/lib64/libopencv_core.so.4.1
#46 0x00007fef552a8160 in cv::_OutputArray::create(int, int const*, int, int, bool, cv::_OutputArray::DepthMask) const () at /usr/lib64/libopencv_core.so.4.1
#47 0x00007fef551b6532 in cv::Mat::copyTo(cv::_OutputArray const&) const () at /usr/lib64/libopencv_core.so.4.1
#48 0x00007fef559bf6b5 in cv::dnn::PermuteLayerImpl::finalize(cv::_InputArray const&, cv::_OutputArray const&) () at /usr/lib64/libopencv_dnn.so.4.1
#49 0x00007fef55937b15 in cv::dnn::dnn4_v20190902::Layer::finalize(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<cv::Mat, std::allocator<cv::Mat> >&) () at /usr/lib64/libopencv_dnn.so.4.1
#50 0x00007fef55955f8d in cv::dnn::dnn4_v20190902::Net::Impl::allocateLayer(int, std::map<int, cv::dnn::dnn4_v20190902::(anonymous namespace)::LayerShapes, std::less<int>, std::allocator<std::pair<int const, cv::dnn::dnn4_v20190902::(anonymous namespace)::LayerShapes> > > const&) () at /usr/lib64/libopencv_dnn.so.4.1
#51 0x00007fef55959e10 in cv::dnn::dnn4_v20190902::Net::Impl::allocateLayers(std::vector<cv::dnn::dnn4_v20190902::LayerPin, std::allocator<cv::dnn::dnn4_v20190902::LayerPin> > const&) () at /usr/lib64/libopencv_dnn.so.4.1
#52 0x00007fef5595a23d in cv::dnn::dnn4_v20190902::Net::Impl::setUpNet(std::vector<cv::dnn::dnn4_v20190902::LayerPin, std::allocator<cv::dnn::dnn4_v20190902::LayerPin> > const&) () at /usr/lib64/libopencv_dnn.so.4.1
#53 0x00007fef5595ab3b in cv::dnn::dnn4_v20190902::Net::forward(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () at /usr/lib64/libopencv_dnn.so.4.1
#54 0x00007fef5cc9fbdf in Digikam::DNNFaceDetectorSSD::detectFaces(cv::Mat const&, cv::Size_<int> const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >&) () at /usr/lib64/libdigikamcore.so.7.0.0
#55 0x00007fef5cc9e2c0 in Digikam::OpenCVDNNFaceDetector::detectFaces(cv::Mat const&, cv::Size_<int> const&) () at /usr/lib64/libdigikamcore.so.7.0.0
#56 0x00007fef5cc8d39c in Digikam::FaceDetector::detectFaces(Digikam::DImg const&, QSize const&) () at /usr/lib64/libdigikamcore.so.7.0.0
#57 0x00007fef5d837c63 in Digikam::DetectionWorker::process(QExplicitlySharedDataPointer<Digikam::FacePipelineExtendedPackage>) () at /usr/lib64/libdigikamgui.so.7.0.0
#58 0x00007fef5d8193fa in Digikam::DetectionWorker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /usr/lib64/libdigikamgui.so.7.0.0
#59 0x00007fef5b24e39c in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#60 0x00007fef5bc50cef in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#61 0x00007fef5bc59e30 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#62 0x00007fef5b222c8f in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#63 0x00007fef5b225731 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#64 0x00007fef5b277253 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5Core.so.5
#65 0x00007fef52c1f1f7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#66 0x00007fef52c1f480 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#67 0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#68 0x00007fef5b276ffd in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#69 0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#70 0x00007fef5c84a3d1 in Digikam::WorkerObjectRunnable::run() () at /usr/lib64/libdigikamcore.so.7.0.0
#71 0x00007fef5b07a623 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#72 0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#73 0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#74 0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 33 (Thread 0x7fee85ffd700 (LWP 1211790)):
#0  0x00007fef5ac4e4ff in poll () at /lib64/libc.so.6
#1  0x00007fef52c1f3ee in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fef5b27701b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fef5c84a3d1 in Digikam::WorkerObjectRunnable::run() () at /usr/lib64/libdigikamcore.so.7.0.0
#6  0x00007fef5b07a623 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#7  0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 32 (Thread 0x7fee6d0c8700 (LWP 1211789)):
#0  0x00007fef54b0ac8b in __lll_lock_wait () at /lib64/libpthread.so.0
#1  0x00007fef54b03991 in pthread_mutex_lock () at /lib64/libpthread.so.0
#2  0x00007fef5db067f6 in _dl_open () at /lib64/ld-linux-x86-64.so.2
#3  0x00007fef52d7a258 in dlopen_doit () at /lib64/libdl.so.2
#4  0x00007fef5ac8eb41 in _dl_catch_exception () at /lib64/libc.so.6
#5  0x00007fef5ac8ebdf in _dl_catch_error () at /lib64/libc.so.6
#6  0x00007fef52d7a995 in _dlerror_run () at /lib64/libdl.so.2
#7  0x00007fef52d7a2e6 in dlopen () at /lib64/libdl.so.2
#8  0x00007fef50b8357c in tbb::internal::global_symbols_link (library=0x7fef50b97d3c "libcilkrts.so", required=1, descriptors=0x7fef50ba2140 <tbb::internal::CilkLinkTable>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/dynamic_link.cpp:475
#9  tbb::internal::dynamic_link(char const*, tbb::internal::dynamic_link_descriptor const*, unsigned long, void**, int) (library=0x7fef50b97d3c "libcilkrts.so", descriptors=0x7fef50ba2140 <tbb::internal::CilkLinkTable>, required=1, handle=0x0, flags=1) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/dynamic_link.cpp:547
#10 0x00007fef50b8af34 in tbb::internal::run_initializer(bool (*)(), tbb::atomic<tbb::internal::do_once_state>&) (state=..., f=<optimized out>) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/tbb_misc.h:232
#11 tbb::internal::atomic_do_once<bool (*)()>(bool (* const&)(), tbb::atomic<tbb::internal::do_once_state>&) (initializer=@0x7fee6d0c68a0: 0x7fef50b8a6c0 <tbb::internal::initialize_cilk_interop()>, state=...) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/tbb_misc.h:216
#12 0x00007fef50b8ac0c in tbb::internal::governor::one_time_init() () at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/governor.cpp:160
#13 0x00007fef50b8ac49 in tbb::internal::governor::init_scheduler_weak() () at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/governor.cpp:165
#14 0x00007fef50b8e0d5 in tbb::internal::governor::local_scheduler_weak() () at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/arena.cpp:884
#15 tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&) const (this=0x7fef5540cf80 <(anonymous namespace)::tbbArena>, d=...) at /var/tmp/portage/dev-cpp/tbb-2019.8/work/tbb-2019_U8/src/tbb/arena.cpp:860
#16 0x00007fef552f8f5b in cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double) () at /usr/lib64/libopencv_core.so.4.1
#17 0x00007fef554c896a in cv::hal::cpu_baseline::cvtBGRtoBGR(unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, int, int, int, bool) () at /usr/lib64/libopencv_imgproc.so.4.1
#18 0x00007fef554c9739 in cv::hal::cvtBGRtoBGR(unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, int, int, int, bool) () at /usr/lib64/libopencv_imgproc.so.4.1
#19 0x00007fef554ca430 in cv::cvtColorBGR2BGR(cv::_InputArray const&, cv::_OutputArray const&, int, bool) () at /usr/lib64/libopencv_imgproc.so.4.1
#20 0x00007fef5549edbe in cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int) () at /usr/lib64/libopencv_imgproc.so.4.1
#21 0x00007fef5cc9dfc4 in Digikam::OpenCVDNNFaceDetector::prepareForDetection(Digikam::DImg const&, cv::Size_<int>&) const () at /usr/lib64/libdigikamcore.so.7.0.0
#22 0x00007fef5cc8d378 in Digikam::FaceDetector::detectFaces(Digikam::DImg const&, QSize const&) () at /usr/lib64/libdigikamcore.so.7.0.0
#23 0x00007fef5d837c63 in Digikam::DetectionWorker::process(QExplicitlySharedDataPointer<Digikam::FacePipelineExtendedPackage>) () at /usr/lib64/libdigikamgui.so.7.0.0
#24 0x00007fef5d8193fa in Digikam::DetectionWorker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /usr/lib64/libdigikamgui.so.7.0.0
#25 0x00007fef5b24e39c in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#26 0x00007fef5bc50cef in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#27 0x00007fef5bc59e30 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#28 0x00007fef5b222c8f in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#29 0x00007fef5b225731 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#30 0x00007fef5b277253 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5Core.so.5
#31 0x00007fef52c1f1f7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#32 0x00007fef52c1f480 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#33 0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#34 0x00007fef5b276ffd in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#35 0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#36 0x00007fef5c84a3d1 in Digikam::WorkerObjectRunnable::run() () at /usr/lib64/libdigikamcore.so.7.0.0
#37 0x00007fef5b07a623 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#38 0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#39 0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#40 0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 31 (Thread 0x7fee6d8c9700 (LWP 1210648)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef5718460b in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571846e4 in WTF::ParallelHelperPool::helperThreadBody() () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 30 (Thread 0x7fee6e0ca700 (LWP 1210647)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef5718460b in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571846e4 in WTF::ParallelHelperPool::helperThreadBody() () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 29 (Thread 0x7fee6e8cb700 (LWP 1210646)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef5718460b in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571846e4 in WTF::ParallelHelperPool::helperThreadBody() () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 28 (Thread 0x7fee867fe700 (LWP 1210645)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef5718460b in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571846e4 in WTF::ParallelHelperPool::helperThreadBody() () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 27 (Thread 0x7fee6ffff700 (LWP 1210644)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef5718460b in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571846e4 in WTF::ParallelHelperPool::helperThreadBody() () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 26 (Thread 0x7fee857fc700 (LWP 1210643)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef5718460b in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571846e4 in WTF::ParallelHelperPool::helperThreadBody() () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#8  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 25 (Thread 0x7fee87ffd700 (LWP 1210623)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef57186264 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef569f7be0 in JSC::DFG::Worklist::runThread(JSC::DFG::ThreadData*) () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef571894b7 in WTF::threadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#6  0x00007fef571b742b in WTF::wtfThreadEntryPoint(void*) () at /usr/lib64/libQt5WebKit.so.5
#7  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 24 (Thread 0x7feed93ff700 (LWP 1210622)):
#0  0x00007fef52c1c08c in g_source_unref_internal () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fef52c1d635 in g_source_iter_next () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fef52c1ed5f in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fef52c1f392 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007fef5b27701b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007fef5b0764ee in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 23 (Thread 0x7feedb7fe700 (LWP 1210620)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5ae2c66c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#2  std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007fef59227f38 in bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() () at /usr/lib64/libQt5WebKit.so.5
#4  0x00007fef59228049 in  () at /usr/lib64/libQt5WebKit.so.5
#5  0x00007fef5ae31eff in std::execute_native_thread_routine(void*) (__p=0x5628b61f7b70) at /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/libstdc++-v3/src/c++11/thread.cc:80
#6  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 22 (Thread 0x7feeed209700 (LWP 1210614)):
#0  0x00007fef54b0795a in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef2423d5b6 in NPT_PosixSharedVariable::WaitUntilEquals(int, int) () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#2  0x00007fef24273d17 in PLT_SsdpDeviceAnnounceTask::DoRun() () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#3  0x00007fef242765a5 in PLT_ThreadTask::Run() () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#4  0x00007fef2423da27 in NPT_PosixThread::EntryPoint(void*) () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#5  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 21 (Thread 0x7feeee5ed700 (LWP 1210612)):
#0  0x00007fef54b0795a in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef2423d5b6 in NPT_PosixSharedVariable::WaitUntilEquals(int, int) () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#2  0x00007fef24263111 in PLT_HttpServerSocketTask::DoRun() () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#3  0x00007fef242765a5 in PLT_ThreadTask::Run() () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#4  0x00007fef2423da27 in NPT_PosixThread::EntryPoint(void*) () at /usr/lib64/qt5/plugins/digikam/generic/Generic_MediaServer_Plugin.so
#5  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 20 (Thread 0x7feeeedee700 (LWP 1210599)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef5b07c86b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fef5b07c8f9 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fef5d580e54 in Digikam::ScanController::run() () at /usr/lib64/libdigikamgui.so.7.0.0
#4  0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 19 (Thread 0x7feeeffff700 (LWP 1210598)):
#0  0x00007fef52c1f288 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fef5b27701b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fef5b0764ee in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#5  0x00007fef55069518 in QDBusConnectionManager::run() () at /usr/lib64/libQt5DBus.so.5
#6  0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#7  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 18 (Thread 0x7fef24ff9700 (LWP 1210597)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 17 (Thread 0x7fef257fa700 (LWP 1210596)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 16 (Thread 0x7fef25ffb700 (LWP 1210595)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 15 (Thread 0x7fef267fc700 (LWP 1210594)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 14 (Thread 0x7fef26ffd700 (LWP 1210593)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 13 (Thread 0x7fef277fe700 (LWP 1210592)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7fef2cff9700 (LWP 1210591)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7fef2d7fa700 (LWP 1210590)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7fef2dffb700 (LWP 1210589)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7fef2e7fc700 (LWP 1210588)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7fef2effd700 (LWP 1210587)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fef2f7fe700 (LWP 1210586)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fef27fff700 (LWP 1210585)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fef2ffff700 (LWP 1210584)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fef3c957700 (LWP 1210583)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fef3d2b0700 (LWP 1210582)):
#0  0x00007fef54b07635 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fef3d82c0bb in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007fef3d82bcd7 in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fef3f843700 (LWP 1210581)):
#0  0x00007fef5ac4e4ff in poll () at /lib64/libc.so.6
#1  0x00007fef5117cd02 in _xcb_conn_wait () at /usr/lib64/libxcb.so.1
#2  0x00007fef5117e97a in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007fef4014f900 in QXcbEventQueue::run() () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007fef5b07751b in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fef54b00fa7 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fef5ac58d3f in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fef407bb5c0 (LWP 1210579)):
#0  0x00007fef5ac4e4ff in poll () at /lib64/libc.so.6
#1  0x00007fef5117cd02 in _xcb_conn_wait () at /usr/lib64/libxcb.so.1
#2  0x00007fef5117d401 in _xcb_out_send () at /usr/lib64/libxcb.so.1
#3  0x00007fef5117d677 in _xcb_out_flush_to () at /usr/lib64/libxcb.so.1
#4  0x00007fef5117debc in xcb_flush () at /usr/lib64/libxcb.so.1
#5  0x00007fef4013b901 in QXcbWindow::hide() () at /usr/lib64/libQt5XcbQpa.so.5
#6  0x00007fef5b629ec3 in QWindowPrivate::setVisible(bool) () at /usr/lib64/libQt5Gui.so.5
#7  0x00007fef5bc86c3f in QWidgetPrivate::hide_sys() () at /usr/lib64/libQt5Widgets.so.5
#8  0x00007fef5bc8e5e0 in QWidgetPrivate::hide_helper() () at /usr/lib64/libQt5Widgets.so.5
#9  0x00007fef5bc93050 in QWidgetPrivate::setVisible(bool) () at /usr/lib64/libQt5Widgets.so.5
#10 0x00007fef5bc8e926 in QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () at /usr/lib64/libQt5Widgets.so.5
#11 0x00007fef5bcbb2a2 in QTipLabel::timerEvent(QTimerEvent*) () at /usr/lib64/libQt5Widgets.so.5
#12 0x00007fef5b24e2a5 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#13 0x00007fef5bc933b3 in QWidget::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#14 0x00007fef5bd40bce in QFrame::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#15 0x00007fef5bc50cef in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#16 0x00007fef5bc59e30 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#17 0x00007fef5b222c8f in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#18 0x00007fef5b2762eb in QTimerInfoList::activateTimers() () at /usr/lib64/libQt5Core.so.5
#19 0x00007fef5b276bac in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5Core.so.5
#20 0x00007fef52c1f1f7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#21 0x00007fef52c1f480 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#22 0x00007fef52c1f50f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#23 0x00007fef5b27701b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#24 0x00007fef5b221b1b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#25 0x00007fef5b2298f2 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#26 0x00005628b5349b98 in main ()
[Inferior 1 (process 1210579) detached]

The reporter indicates this bug may be a duplicate of or related to bug 415685.

Possible duplicates by query: bug 418277, bug 415991, bug 415685, bug 413508, bug 411388.

Reported using DrKonqi
Comment 1 Maik Qualmann 2020-06-29 05:51:59 UTC
There is nothing at the crash point that should trigger a crash.
Can you please create a new backtrace?
Can you please post the output of "opencv_version --hw --opencl"?
Can you also test whether the problem with the AppImage can be reproduced?
From here:

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

Maik
Comment 2 Maik Qualmann 2020-06-29 06:04:17 UTC
My guess is that the crash in OpenCV is triggered by OpenCL hardware acceleration. You are using AMD hardware. OpenCV has an environment variable to disable OpenCL.

Maik
Comment 3 Thomas Coquelin 2020-07-02 21:38:48 UTC
Hello,
I tried digikam with OPENCV_OPENCL_RUNTIME=disabled and OPENCV_OPENCL_DEVICE=null env, face detection scan works to the end.
I'll try to run some opencv opencl tests.
Comment 4 Thomas Coquelin 2020-07-02 23:06:29 UTC
I found this small python script to test opencv :

#################################################"
"""
cpu_gpu.py
An OpenCL-OpenCV-Python CPU vs GPU comparison
"""
import cv2
import timeit

# A simple image pipeline that runs on both Mat and Umat
def img_cal(img, mode):
    if mode=='UMat':
        img = cv2.UMat(img)
    img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    img = cv2.GaussianBlur(img, (7, 7), 1.5)
    img = cv2.Canny(img, 0, 50)
    if type(img) == 'cv2.UMat':
        img = cv2.UMat.get(img)
    return img

# Timing function
def run(processor, function, n_threads, N):
    cv2.setNumThreads(n_threads)
    t = timeit.timeit(function, globals=globals(), number=N)/N*1000
    print('%s avg. with %d threads: %0.2f ms' % (processor, n, t))
    return t

img = cv2.imread('abricotier.tif')
img_UMat = cv2.UMat(img)
N = 200
threads = [1,  16]

processor = {'GPU': "img_cal(img_UMat,mode='UMat')",
             'CPU': "img_cal(img,mode='Mat')"}
results = {}
for n in threads:
    for pro in processor.keys():
        results[pro,n] = run(processor=pro,
                             function= processor[pro],
                             n_threads=n, N=N)

print('\nGPU speed increase over 1 CPU thread [%%]: %0.2f' % \
      (results[('CPU', 1)]/results[('GPU', 1)]*100))
print('CPU speed increase on 16 threads versus 1 thread [%%]: %0.2f' % \
      (results[('CPU', 1)]/results[('CPU', 16)]*100))
##############################################################""

The script works properly :
#############################
$ python3.7 opencv_test.py 
LoadLib(libhsa-amd-aqlprofile64.so) failed: libhsa-amd-aqlprofile64.so: cannot open shared object file: No such file or directory
GPU avg. with 1 threads: 19.34 ms
CPU avg. with 1 threads: 338.04 ms
GPU avg. with 16 threads: 16.43 ms
CPU avg. with 16 threads: 74.33 ms

GPU speed increase over 1 CPU thread [%]: 1747.75
CPU speed increase on 16 threads versus 1 thread [%]: 454.77
#########################################
Comment 5 Thomas Coquelin 2020-07-02 23:15:36 UTC
From the opencv test suite :
Success :
/usr/bin/opencv_test_aruco success
/usr/bin/opencv_test_flann success
/usr/bin/opencv_test_highgui success
/usr/bin/opencv_test_img_hash success
/usr/bin/opencv_test_phase_unwrapping success
/usr/bin/opencv_test_saliency success
/usr/bin/opencv_test_superres success
/usr/bin/opencv_test_text success
/usr/bin/opencv_test_videostab success

Failures:
/usr/bin/opencv_test_bgsegm failed
/usr/bin/opencv_test_bioinspired failed
/usr/bin/opencv_test_calib3d failed
/usr/bin/opencv_test_core failed
/usr/bin/opencv_test_dnn failed
/usr/bin/opencv_test_dnn_superres failed
/usr/bin/opencv_test_face failed
/usr/bin/opencv_test_features2d failed
/usr/bin/opencv_test_fuzzy failed
/usr/bin/opencv_test_imgcodecs failed
/usr/bin/opencv_test_imgproc failed
/usr/bin/opencv_test_line_descriptor failed
/usr/bin/opencv_test_ml failed
/usr/bin/opencv_test_objdetect failed
/usr/bin/opencv_test_optflow failed
/usr/bin/opencv_test_photo failed
/usr/bin/opencv_test_quality failed
/usr/bin/opencv_test_reg failed
/usr/bin/opencv_test_rgbd failed
/usr/bin/opencv_test_shape failed
/usr/bin/opencv_test_stereo failed
/usr/bin/opencv_test_stitching failed
/usr/bin/opencv_test_structured_light failed
/usr/bin/opencv_test_tracking failed
/usr/bin/opencv_test_video failed
/usr/bin/opencv_test_videoio failed
/usr/bin/opencv_test_ximgproc failed
/usr/bin/opencv_test_xphoto failed

Summary from opencv_test_core:
[==========] 11420 tests from 239 test cases ran. (69132 ms total)
[  PASSED  ] 11416 tests.
[  FAILED  ] 4 tests, listed below:
[  FAILED  ] Core_InputOutput.filestorage_base64_basic_read_XML
[  FAILED  ] Core_InputOutput.filestorage_base64_basic_read_YAML
[  FAILED  ] Core_globbing.accuracy
[  FAILED  ] Samples.findFile

I'll try to make them pass.
Do you have hints on the relevant ones for digikam ?
Comment 6 caulier.gilles 2020-07-08 01:32:09 UTC
Git commit 365954a7c7dca0c46444b5843c7485602dd0e059 by Gilles Caulier.
Committed on 08/07/2020 at 01:31.
Pushed by cgilles into branch 'master'.

disable opencl runtime support for OpenCV in AppImage

M  +5    -0    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/commit/365954a7c7dca0c46444b5843c7485602dd0e059
Comment 7 Maik Qualmann 2020-07-12 07:04:23 UTC
Git commit b66eb0a0556388fc532fcc5bba7a40ed6eda2fc1 by Maik Qualmann.
Committed on 12/07/2020 at 06:58.
Pushed by mqualmann into branch 'master'.

disable OpenCL for everyone
An analysis with Heaptrack shows that we
have a big memory leak with active OpenCL.
Related: bug 421043, bug 416266, bug 420411

M  +10   -0    core/app/main/main.cpp
M  +0    -5    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/commit/b66eb0a0556388fc532fcc5bba7a40ed6eda2fc1
Comment 8 caulier.gilles 2020-07-14 09:30:49 UTC
Hi,

Can you check if this crash still exist with last weekly AppImage build
available here :

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

Thanks in advance
Comment 9 caulier.gilles 2020-07-30 09:45:07 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 10 Thomas Coquelin 2020-08-25 22:51:23 UTC
I tried with 7.0.0 and it now always crashes during face detection, with or without opencl (OPENCV_OPENCL_RUNTIME=disabled OPENCV_OPENCL_DEVICE=null to disable opencl)
Comment 11 caulier.gilles 2020-09-08 03:14:00 UTC
Git commit b5e3c5987a7380fdc5ce9a59ee5e62e6acbaf51b by Gilles Caulier.
Committed on 08/09/2020 at 03:11.
Pushed by cgilles into branch 'master'.

Fix typo with OpenCV environnement variable value used to disable OpenCL device for 3D accelerations
Related: bug 426175

M  +2    -1    core/app/main/main.cpp

https://invent.kde.org/graphics/digikam/commit/b5e3c5987a7380fdc5ce9a59ee5e62e6acbaf51b
Comment 12 Maik Qualmann 2020-09-08 06:29:47 UTC
@Gilles, I think it has to be "disabled" and not "disable".

Maik
Comment 13 caulier.gilles 2020-09-08 07:23:13 UTC
Maik, you are right. I need to change my glass (:=))))...

Gilles
Comment 14 caulier.gilles 2020-09-08 07:25:49 UTC
Git commit f813d64af40c5ea342ab9da340f12acc4b19023d by Gilles Caulier.
Committed on 08/09/2020 at 07:23.
Pushed by cgilles into branch 'master'.

I needs new glasses : disable => disabled
Related: bug 426175

M  +1    -1    core/app/main/main.cpp

https://invent.kde.org/graphics/digikam/commit/f813d64af40c5ea342ab9da340f12acc4b19023d
Comment 15 Maik Qualmann 2020-09-08 10:40:19 UTC
Git commit cde3403938b82e0cfcccb1b557b6c2319ac8557e by Maik Qualmann.
Committed on 08/09/2020 at 10:37.
Pushed by mqualmann into branch 'master'.

add base classes initialization explicit in the constructor
Related: bug 425723, bug 426175

M  +2    -0    core/libs/threadimageio/fileio/loadsavetask.cpp
M  +2    -0    core/libs/threadimageio/fileio/loadsavetask.h

https://invent.kde.org/graphics/digikam/commit/cde3403938b82e0cfcccb1b557b6c2319ac8557e
Comment 16 Maik Qualmann 2020-09-08 20:06:31 UTC
Git commit a06b3c5dcc32a2f95c5fbf0ac2fa898931524cea by Maik Qualmann.
Committed on 08/09/2020 at 20:05.
Pushed by mqualmann into branch 'master'.

add static cast for loading notifikation
Related: bug 425723, bug 426175

M  +2    -1    core/libs/threadimageio/fileio/loadingcache.cpp

https://invent.kde.org/graphics/digikam/commit/a06b3c5dcc32a2f95c5fbf0ac2fa898931524cea
Comment 17 Maik Qualmann 2020-09-09 19:57:46 UTC
Git commit 901227fa96db807e02b71a84c933d34b97ce3ec3 by Maik Qualmann.
Committed on 09/09/2020 at 19:56.
Pushed by mqualmann into branch 'master'.

changes to setStatus() function
Related: bug 425723, bug 426175

M  +1    -1    core/libs/threadimageio/fileio/loadingcache.cpp
M  +19   -12   core/libs/threadimageio/fileio/loadsavetask.cpp
M  +1    -2    core/libs/threadimageio/thumb/thumbnailtask.cpp

https://invent.kde.org/graphics/digikam/commit/901227fa96db807e02b71a84c933d34b97ce3ec3
Comment 18 Maik Qualmann 2020-10-03 19:32:11 UTC
Fixed with bug 426175.

Maik