Bug 401253 - Face detect crashes every time
Summary: Face detect crashes every time
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 6.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-20 22:29 UTC by DMW
Modified: 2019-03-04 19:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DMW 2018-11-20 22:29:38 UTC
Application: digikam (5.9.0)

Qt Version: 5.11.1
Frameworks Version: 5.52.0
Operating System: Linux 4.18.18-200.fc28.x86_64 x86_64
Distribution: "Generic release 28 (Generic)"

-- Information about the crash:
- What I was doing when the application crashed:
When I run the face detection, regardless of any other options selected, digiKam will crash in a matter of seconds.  Happens every single time.

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 0x7f1ff3f1a440 (LWP 2716))]

Thread 23 (Thread 0x7f1f5fffd700 (LWP 4554)):
#0  0x00007f2020c9a879 in syscall () from /lib64/libc.so.6
#1  0x00007f201496dbd2 in tbb::internal::rml::private_worker::run() () from /lib64/libtbb.so.2
#2  0x00007f201496dbfd in tbb::internal::rml::private_worker::thread_routine(void*) () from /lib64/libtbb.so.2
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 22 (Thread 0x7f1fb4acf700 (LWP 4553)):
#0  0x00007f2020c9a879 in syscall () from /lib64/libc.so.6
#1  0x00007f201496dbd2 in tbb::internal::rml::private_worker::run() () from /lib64/libtbb.so.2
#2  0x00007f201496dbfd in tbb::internal::rml::private_worker::thread_routine(void*) () from /lib64/libtbb.so.2
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 21 (Thread 0x7f1f2cff9700 (LWP 4552)):
#0  0x00007f2020c9a879 in syscall () from /lib64/libc.so.6
#1  0x00007f201496dbd2 in tbb::internal::rml::private_worker::run() () from /lib64/libtbb.so.2
#2  0x00007f201496dbfd in tbb::internal::rml::private_worker::thread_routine(void*) () from /lib64/libtbb.so.2
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 20 (Thread 0x7f1f2effd700 (LWP 4549)):
#0  0x00007f20206c8a9c in g_source_iter_next () from /lib64/libglib-2.0.so.0
#1  0x00007f20206cb4f2 in g_main_context_check () from /lib64/libglib-2.0.so.0
#2  0x00007f20206cbb70 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x00007f20206cbcf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f20253ac2ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f202535ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f2030a900c3 in Digikam::WorkerObjectRunnable::run() () from /lib64/libdigikamcore.so.5.9.0
#7  0x00007f20251c4121 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#8  0x00007f20251cbb4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 19 (Thread 0x7f1fb7cb2700 (LWP 4548)):
#0  0x00007f2020712538 in g_mutex_unlock () from /lib64/libglib-2.0.so.0
#1  0x00007f20206caaaf in g_main_context_acquire () from /lib64/libglib-2.0.so.0
#2  0x00007f20206cba85 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x00007f20206cbcf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f20253ac2ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f202535ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f2030a900c3 in Digikam::WorkerObjectRunnable::run() () from /lib64/libdigikamcore.so.5.9.0
#7  0x00007f20251c4121 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#8  0x00007f20251cbb4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 18 (Thread 0x7f1f077fe700 (LWP 4547)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20251cc183 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQt5Core.so.5
#2  0x00007f20251c2daa in QThreadPoolPrivate::waitForDone(int) () from /lib64/libQt5Core.so.5
#3  0x00007f20251c3335 in QThreadPool::waitForDone(int) () from /lib64/libQt5Core.so.5
#4  0x00007f20251c3380 in QThreadPool::~QThreadPool() () from /lib64/libQt5Core.so.5
#5  0x00007f20251c339d in QThreadPool::~QThreadPool() () from /lib64/libQt5Core.so.5
#6  0x00007f202538a19c in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#7  0x00007f202538b053 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#8  0x00007f2030a8fa0d in Digikam::(anonymous namespace)::Q_QGS_creator::innerFunction()::Holder::~Holder () from /lib64/libdigikamcore.so.5.9.0
#9  0x00007f2020bdf5ec in __run_exit_handlers () from /lib64/libc.so.6
#10 0x00007f2020bdf71c in exit () from /lib64/libc.so.6
#11 0x00007f1fc96506ae in llvm::report_fatal_error(llvm::Twine const&, bool) () from /lib64/libLLVM-6.0.so
#12 0x00007f1fc96507de in llvm::report_fatal_error(char const*, bool) () from /lib64/libLLVM-6.0.so
#13 0x00007f1fc96413c7 in (anonymous namespace)::CommandLineParser::addOption(llvm::cl::Option*, llvm::cl::SubCommand*) () from /lib64/libLLVM-6.0.so
#14 0x00007f1fc9641602 in llvm::cl::Option::addArgument() () from /lib64/libLLVM-6.0.so
#15 0x00007f1f0c9613a0 in _GLOBAL__sub_I_CodeGenPGO.cpp () from /usr/lib64/llvm5.0/lib/libclangCodeGen.so.5
#16 0x00007f203228c51a in call_init.part () from /lib64/ld-linux-x86-64.so.2
#17 0x00007f203228c616 in _dl_init () from /lib64/ld-linux-x86-64.so.2
#18 0x00007f20322907bf in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#19 0x00007f2020cdb96f in _dl_catch_exception () from /lib64/libc.so.6
#20 0x00007f2032290037 in _dl_open () from /lib64/ld-linux-x86-64.so.2
#21 0x00007f2020270006 in dlopen_doit () from /lib64/libdl.so.2
#22 0x00007f2020cdb96f in _dl_catch_exception () from /lib64/libc.so.6
#23 0x00007f2020cdb9ff in _dl_catch_error () from /lib64/libc.so.6
#24 0x00007f2020270725 in _dlerror_run () from /lib64/libdl.so.2
#25 0x00007f2020270096 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#26 0x00007f1f2d493c85 in _GLOBAL__sub_I_cl_gbe_loader.cpp () from /usr/lib64/beignet//libcl.so
#27 0x00007f203228c51a in call_init.part () from /lib64/ld-linux-x86-64.so.2
#28 0x00007f203228c616 in _dl_init () from /lib64/ld-linux-x86-64.so.2
#29 0x00007f20322907bf in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#30 0x00007f2020cdb96f in _dl_catch_exception () from /lib64/libc.so.6
#31 0x00007f2032290037 in _dl_open () from /lib64/ld-linux-x86-64.so.2
#32 0x00007f2020270006 in dlopen_doit () from /lib64/libdl.so.2
#33 0x00007f2020cdb96f in _dl_catch_exception () from /lib64/libc.so.6
#34 0x00007f2020cdb9ff in _dl_catch_error () from /lib64/libc.so.6
#35 0x00007f2020270725 in _dlerror_run () from /lib64/libdl.so.2
#36 0x00007f2020270096 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#37 0x00007f1fb7de557a in _initClIcd_real () from /lib64/libOpenCL.so.1
#38 0x00007f1fb7de7bac in clGetPlatformIDs () from /lib64/libOpenCL.so.1
#39 0x00007f2022103493 in cv::ocl::haveOpenCL() () from /lib64/libopencv_core.so.3.4
#40 0x00007f202211bc38 in cv::ocl::useOpenCL() () from /lib64/libopencv_core.so.3.4
#41 0x00007f202217c60d in cv::UMat::getStdAllocator() () from /lib64/libopencv_core.so.3.4
#42 0x00007f202217cd37 in cv::UMat::create(int, int const*, int, cv::UMatUsageFlags) () from /lib64/libopencv_core.so.3.4
#43 0x00007f20220e6fd9 in cv::_OutputArray::create(int, int const*, int, int, bool, int) const () from /lib64/libopencv_core.so.3.4
#44 0x00007f2021ff04e2 in cv::Mat::copyTo(cv::_OutputArray const&) const () from /lib64/libopencv_core.so.3.4
#45 0x00007f2023f85381 in void cv::copyVectorToUMat<cv::HaarEvaluator::OptFeature>(std::vector<cv::HaarEvaluator::OptFeature, std::allocator<cv::HaarEvaluator::OptFeature> > const&, cv::UMat&) () from /lib64/libopencv_objdetect.so.3.4
#46 0x00007f2023f8c974 in cv::HaarEvaluator::computeOptFeatures() () from /lib64/libopencv_objdetect.so.3.4
#47 0x00007f2023f8bcc7 in cv::FeatureEvaluator::setImage(cv::_InputArray const&, std::vector<float, std::allocator<float> > const&) () from /lib64/libopencv_objdetect.so.3.4
#48 0x00007f2023f8fdf5 in cv::CascadeClassifierImpl::detectMultiScaleNoGrouping(cv::_InputArray const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >&, std::vector<int, std::allocator<int> >&, std::vector<double, std::allocator<double> >&, double, cv::Size_<int>, cv::Size_<int>, bool) () from /lib64/libopencv_objdetect.so.3.4
#49 0x00007f2023f919da in cv::CascadeClassifierImpl::detectMultiScale(cv::_InputArray const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >&, std::vector<int, std::allocator<int> >&, std::vector<double, std::allocator<double> >&, double, int, int, cv::Size_<int>, cv::Size_<int>, bool) () from /lib64/libopencv_objdetect.so.3.4
#50 0x00007f2023f7ff53 in cv::CascadeClassifierImpl::detectMultiScale(cv::_InputArray const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>) () from /lib64/libopencv_objdetect.so.3.4
#51 0x00007f2023f8f296 in cv::CascadeClassifier::detectMultiScale(cv::_InputArray const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>) () from /lib64/libopencv_objdetect.so.3.4
#52 0x00007f2030acb9bd in Digikam::OpenCVFaceDetector::cascadeResult(cv::Mat const&, Digikam::Cascade&, Digikam::DetectObjectParameters const&) const () from /lib64/libdigikamcore.so.5.9.0
#53 0x00007f2030ace488 in Digikam::OpenCVFaceDetector::detectFaces(cv::Mat const&, cv::Size_<int> const&) () from /lib64/libdigikamcore.so.5.9.0
#54 0x00007f2030ada297 in Digikam::FaceDetector::detectFaces(QImage const&, QSize const&) () from /lib64/libdigikamcore.so.5.9.0
#55 0x00007f2031c803eb in Digikam::DetectionWorker::process(QExplicitlySharedDataPointer<Digikam::FacePipelineExtendedPackage>) () from /lib64/libdigikamgui.so.5.9.0
#56 0x00007f2031c8d823 in Digikam::DetectionWorker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /lib64/libdigikamgui.so.5.9.0
#57 0x00007f2025384b26 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#58 0x00007f2025eba475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#59 0x00007f2025ec1b90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#60 0x00007f202535bc36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#61 0x00007f202535ee0b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#62 0x00007f20253ac507 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#63 0x00007f20206cb88d in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#64 0x00007f20206cbc58 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#65 0x00007f20206cbcf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#66 0x00007f20253ac293 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#67 0x00007f202535ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#68 0x00007f2030a900c3 in Digikam::WorkerObjectRunnable::run() () from /lib64/libdigikamcore.so.5.9.0
#69 0x00007f20251c4121 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#70 0x00007f20251cbb4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#71 0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#72 0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 17 (Thread 0x7f1efdffb700 (LWP 2788)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20215ca290 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
#2  0x00007f20294e1a92 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> > >) () from /lib64/libQt5WebKit.so.5
#3  0x00007f20294e0312 in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () from /lib64/libQt5WebKit.so.5
#4  0x00007f20294e03ee in WTF::ParallelHelperPool::helperThreadBody() () from /lib64/libQt5WebKit.so.5
#5  0x00007f20294e428c in WTF::threadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#6  0x00007f202950812e in WTF::wtfThreadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#7  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 16 (Thread 0x7f1efe7fc700 (LWP 2787)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20215ca290 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
#2  0x00007f20294e1a92 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> > >) () from /lib64/libQt5WebKit.so.5
#3  0x00007f20294e0312 in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () from /lib64/libQt5WebKit.so.5
#4  0x00007f20294e03ee in WTF::ParallelHelperPool::helperThreadBody() () from /lib64/libQt5WebKit.so.5
#5  0x00007f20294e428c in WTF::threadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#6  0x00007f202950812e in WTF::wtfThreadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#7  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 15 (Thread 0x7f1efeffd700 (LWP 2786)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20215ca290 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
#2  0x00007f20294e1a92 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> > >) () from /lib64/libQt5WebKit.so.5
#3  0x00007f20294e0312 in WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) () from /lib64/libQt5WebKit.so.5
#4  0x00007f20294e03ee in WTF::ParallelHelperPool::helperThreadBody() () from /lib64/libQt5WebKit.so.5
#5  0x00007f20294e428c in WTF::threadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#6  0x00007f202950812e in WTF::wtfThreadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#7  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 14 (Thread 0x7f1fbdfff700 (LWP 2748)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20215ca290 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
#2  0x00007f20294e1a92 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> > >) () from /lib64/libQt5WebKit.so.5
#3  0x00007f2028ebda49 in JSC::DFG::Worklist::runThread(JSC::DFG::ThreadData*) () from /lib64/libQt5WebKit.so.5
#4  0x00007f20294e428c in WTF::threadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#5  0x00007f202950812e in WTF::wtfThreadEntryPoint(void*) () from /lib64/libQt5WebKit.so.5
#6  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#7  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7f1fbf3ff700 (LWP 2744)):
#0  0x00007f2020c953e9 in poll () from /lib64/libc.so.6
#1  0x00007f20206cbbc6 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f20206cbcf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f20253ac2ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f202535ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f20251c26b6 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f20251cbb4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#7  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7f1fc690c700 (LWP 2740)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f1fc710d700 (LWP 2739)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f1fc790e700 (LWP 2738)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f1fbffff700 (LWP 2737)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f1fc810f700 (LWP 2736)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f1fc8910700 (LWP 2735)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f1fdd4d0700 (LWP 2734)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1fcd3c22d3 in util_queue_thread_func () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1fcd3c1feb in impl_thrd_routine () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f1fddcd1700 (LWP 2721)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20251cc183 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQt5Core.so.5
#2  0x00007f2031944e36 in Digikam::ScanController::run() () from /lib64/libdigikamgui.so.5.9.0
#3  0x00007f20251cbb4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#4  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f1fdeee2700 (LWP 2720)):
#0  0x00007f2020cad26c in __lll_lock_wait_private () from /lib64/libc.so.6
#1  0x00007f2020c2adde in realloc () from /lib64/libc.so.6
#2  0x00007f2020cb0bf6 in __vasprintf_chk () from /lib64/libc.so.6
#3  0x00007f2016e4df9c in fill_iovec_sprintf () from /lib64/libsystemd.so.0
#4  0x00007f2016e4ebc7 in sd_journal_send () from /lib64/libsystemd.so.0
#5  0x00007f20251bd458 in qDefaultMessageHandler(QtMsgType, QMessageLogContext const&, QString const&) () from /lib64/libQt5Core.so.5
#6  0x00007f20251b8955 in qt_message_print(QtMsgType, QMessageLogContext const&, QString const&) () from /lib64/libQt5Core.so.5
#7  0x00007f20251b8b08 in qt_message(QtMsgType, QMessageLogContext const&, char const*, __va_list_tag*) () from /lib64/libQt5Core.so.5
#8  0x00007f202518c8b7 in QMessageLogger::warning(char const*, ...) const () from /lib64/libQt5Core.so.5
#9  0x00007f20253ac12d in socketNotifierSourceCheck(_GSource*) () from /lib64/libQt5Core.so.5
#10 0x00007f20206cb5e1 in g_main_context_check () from /lib64/libglib-2.0.so.0
#11 0x00007f20206cbb70 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#12 0x00007f20206cbcf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#13 0x00007f20253ac293 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#14 0x00007f202535ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#15 0x00007f20251c26b6 in QThread::exec() () from /lib64/libQt5Core.so.5
#16 0x00007f202667f7b9 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#17 0x00007f20251cbb4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#18 0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#19 0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f1fe4e01700 (LWP 2719)):
#0  0x00007f2020cad26c in __lll_lock_wait_private () from /lib64/libc.so.6
#1  0x00007f2020c277d6 in _int_free () from /lib64/libc.so.6
#2  0x00007f2020d0ee73 in arena_thread_freeres () from /lib64/libc.so.6
#3  0x00007f2020d0efa2 in __libc_thread_freeres () from /lib64/libc.so.6
#4  0x00007f202f6f85b9 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f1ff3f13700 (LWP 2718)):
#0  0x00007f202f6fe51c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f20215ca290 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
#2  0x00007f202a8dd17a in bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() () from /lib64/libQt5WebKit.so.5
#3  0x00007f202a8dd2af in bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) () from /lib64/libQt5WebKit.so.5
#4  0x00007f20215d0543 in execute_native_thread_routine () from /lib64/libstdc++.so.6
#5  0x00007f202f6f8594 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f2020c9fe6f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f1ff3f1a440 (LWP 2716)):
[KCrash Handler]
#6  0x00007f2020c285d8 in _int_malloc () from /lib64/libc.so.6
#7  0x00007f2020c2a56a in malloc () from /lib64/libc.so.6
#8  0x00007f20251cc3a2 in QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) () from /lib64/libQt5Core.so.5
#9  0x00007f2025238cd7 in QString::QString(int, Qt::Initialization) () from /lib64/libQt5Core.so.5
#10 0x00007f2025238dae in replaceArgEscapes(QStringView, ArgEscapeData const&, int, QStringView, QStringView, QChar) () from /lib64/libQt5Core.so.5
#11 0x00007f2025240f59 in QString::arg(QStringView, int, QChar) const () from /lib64/libQt5Core.so.5
#12 0x00007f2025241078 in QString::arg(QString const&, int, QChar) const () from /lib64/libQt5Core.so.5
#13 0x00007f20270e6932 in KLocalizedString::subs(QString const&, int, QChar) const () from /lib64/libKF5I18n.so.5
#14 0x00007f20319c2c79 in Digikam::ImageCategoryDrawer::textForPAlbum(Digikam::PAlbum*, bool, int, QString*, QString*) const () from /lib64/libdigikamgui.so.5.9.0
#15 0x00007f20319c30f8 in Digikam::ImageCategoryDrawer::textForAlbum(QModelIndex const&, QString*, QString*) const () from /lib64/libdigikamgui.so.5.9.0
#16 0x00007f20319c3f82 in Digikam::ImageCategoryDrawer::drawCategory(QModelIndex const&, int, QStyleOption const&, QPainter*) const () from /lib64/libdigikamgui.so.5.9.0
#17 0x00007f2030b302bf in Digikam::DCategorizedView::Private::drawNewCategory(QModelIndex const&, int, QStyleOption const&, QPainter*) () from /lib64/libdigikamcore.so.5.9.0
#18 0x00007f2030b356f7 in Digikam::DCategorizedView::paintEvent(QPaintEvent*) () from /lib64/libdigikamcore.so.5.9.0
#19 0x00007f20319c1853 in Digikam::ImageCategorizedView::paintEvent(QPaintEvent*) () from /lib64/libdigikamgui.so.5.9.0
#20 0x00007f2025ef95c8 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#21 0x00007f2025f9ddf2 in QFrame::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007f2026115acb in QAbstractItemView::viewportEvent(QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f2030b4aa18 in Digikam::ItemViewCategorized::viewportEvent(QEvent*) () from /lib64/libdigikamcore.so.5.9.0
#24 0x00007f202535ba7e in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#25 0x00007f2025eba465 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#26 0x00007f2025ec1b90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#27 0x00007f202535bc36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#28 0x00007f2025ef20ee in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /lib64/libQt5Widgets.so.5
#29 0x00007f2025ef29a7 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQt5Widgets.so.5
#30 0x00007f2025ec9a27 in QWidgetBackingStore::doSync() () from /lib64/libQt5Widgets.so.5
#31 0x00007f2025ec9c41 in QWidgetBackingStore::sync() () from /lib64/libQt5Widgets.so.5
#32 0x00007f2025ee1435 in QWidgetPrivate::syncBackingStore() () from /lib64/libQt5Widgets.so.5
#33 0x00007f2025ef96f8 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#34 0x00007f2026002d68 in QMainWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#35 0x00007f2027c39d5b in KMainWindow::event(QEvent*) () from /lib64/libKF5XmlGui.so.5
#36 0x00007f2027c83419 in KXmlGuiWindow::event(QEvent*) () from /lib64/libKF5XmlGui.so.5
#37 0x00007f2025eba475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#38 0x00007f2025ec1b90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#39 0x00007f202535bc36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#40 0x00007f202535ee0b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#41 0x00007f20253ac507 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#42 0x00007f20206cb88d in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#43 0x00007f20206cbc58 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#44 0x00007f20206cbcf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#45 0x00007f20253ac293 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#46 0x00007f1fe6b8f7c5 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#47 0x00007f202535ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#48 0x00007f2025362c46 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#49 0x000056247d685db9 in main ()

Reported using DrKonqi
Comment 1 Maik Qualmann 2018-11-22 06:56:14 UTC
It crashes in QString, more specifically in QLocale().toString() in the digiKam function that prints the album date in the category header. We have never seen this kind of crash. You may have a problem with the KF5 system locale or the album date is invalid and libKF5I18n has a problem with it.

Maik
Comment 2 caulier.gilles 2018-11-22 07:07:16 UTC
Or the bactrace is not valid due to a memory corruption in face workflow which give strange result...

Gilles
Comment 3 DMW 2018-11-22 14:24:01 UTC
Are there any changes to settings I could make to see if it affects this behavior?

My system locale is currently en_US.UTF-8
Comment 4 Christoph Feck 2018-12-20 18:36:53 UTC
The crash here is caused by exit() called in Thread 18, which in turn is caused by failed dlopen from OpenGL.
Comment 5 Christoph Feck 2018-12-20 18:37:53 UTC
s/OpenCL
Comment 6 caulier.gilles 2018-12-31 11:49:43 UTC
Can you reproduce the dysfunction using the last digiKam 6.0.0-beta3 just
released ?

https://www.digikam.org/news/2018-12-30-6.0.0-beta3_release_announcement/
Comment 7 DMW 2019-01-07 13:25:35 UTC
(In reply to caulier.gilles from comment #6)
> Can you reproduce the dysfunction using the last digiKam 6.0.0-beta3 just
> released ?
> 
> https://www.digikam.org/news/2018-12-30-6.0.0-beta3_release_announcement/

I have been running the function at full throttle for several hours and so far it has not crashed.  It definitely would have by now if the problem still existed.  

Is there a log that would show details of the face detection run?
Comment 8 Mathias Johansson 2019-01-09 08:35:28 UTC
I have just started to test out Digikam to see if I like the workflow.

However my Face detect still crashes in BETA 3 as it did in BETA 2.

I have tested it with both a local database, Centralised MySQL enviroment.
Tested it on 2 different Windows 10 and also installed a xUbuntu 18.04 and all of them crashes in BETA 3.

I then tested in 5.9 and it seems stable (not had that much time).

If you guys need help with debugging just give me a shout. I have both windows / Linux machine running.
Comment 9 nonobio 2019-02-27 16:48:40 UTC
Hi,
Since i updated Digikam to version 6.0.0 on my WIndows 7 64 bits PC, face detection crash every time after 2 seconds.
This is the "digikam.exe" window error : 

"Signature du problème :
  Nom d’événement de problème:	APPCRASH
  Nom de l’application:	digikam.exe
  Version de l’application:	0.0.0.0
  Horodatage de l’application:	5c5ef93f
  Nom du module par défaut:	amdocl64.dll
  Version du module par défaut:	10.0.1084.4
  Horodateur du module par défaut:	50d22720
  Code de l’exception:	c0000005
  Décalage de l’exception:	0000000000062e07
  Version du système:	6.1.7601.2.1.0.256.1
  Identificateur de paramètres régionaux:	1036
  Information supplémentaire n° 1:	17b6
  Information supplémentaire n° 2:	17b6b391de35b17c5f9dde022539096a
  Information supplémentaire n° 3:	d9b7
  Information supplémentaire n° 4:	d9b7a0578ee4cc0b845afb8aea4d8693
"
Thanks
Comment 10 Maik Qualmann 2019-02-27 18:34:29 UTC
Gilles, is the Windows OpenCV version built with OpenCL support? The listed in the crash "amdocl64.dll" suggests it.

Maik
Comment 11 caulier.gilles 2019-02-27 19:27:15 UTC
OpenCV is build through my scripts. Configuration is here and as you can see, OpenCL is disabled :

https://cgit.kde.org/digikam.git/tree/project/bundles/3rdparty/ext_opencv/CMakeLists.txt?h=development/dplugins#n51

But... OpenCV is monster. Who can be sure that the configuration is well respected at compilation time. Be curious and look how the OpenCV options are managed with CMake. A lots of settings are not documented or hidden. The complexity of all combinaisons make the puzzle unreadable :

https://github.com/opencv/opencv/blob/3.4/CMakeLists.txt

If you understand all, let's me hear...

Note : i don't take a look to OpenCV 4 to see if options management have been simplified.

Gilles
Comment 12 Maik Qualmann 2019-02-27 21:59:09 UTC
Oh, what a CMakeLists.txt... I suspect that this too must be disabled: WITH_OPENCLAMDFFT, WITH_OPENCLAMDBLAS, and WITH_VA_INTEL.

After Google: https://stackoverflow.com/questions/30727588/disable-opencl-in-opencv-completely

Maik
Comment 13 caulier.gilles 2019-02-28 05:09:15 UTC
Git commit 2d12ab1662363f680c6ab68e68c892146b5e45c2 by Gilles Caulier.
Committed on 28/02/2019 at 05:08.
Pushed by cgilles into branch 'development/dplugins'.

disable all OpenCL options from OpenCV embeded in bundles

M  +4    -1    project/bundles/3rdparty/ext_opencv/CMakeLists.txt

https://commits.kde.org/digikam/2d12ab1662363f680c6ab68e68c892146b5e45c2
Comment 14 nonobio 2019-02-28 09:26:50 UTC
Hi,

Today i tried to manually add a face tag on a photo (waiting that the bug is resolved) : digikam crash.

This is the windows error (maybe the same than with automatic face detection crash) :

Signature du problème :
  Nom d’événement de problème:	APPCRASH
  Nom de l’application:	digikam.exe
  Version de l’application:	0.0.0.0
  Horodatage de l’application:	5c5ef93f
  Nom du module par défaut:	amdocl64.dll
  Version du module par défaut:	10.0.1084.4
  Horodateur du module par défaut:	50d22720
  Code de l’exception:	c0000005
  Décalage de l’exception:	0000000000062e07
  Version du système:	6.1.7601.2.1.0.256.1
  Identificateur de paramètres régionaux:	1036
  Information supplémentaire n° 1:	533e
  Information supplémentaire n° 2:	533e55d718dc7010f87c7d6e1c17c6f5
  Information supplémentaire n° 3:	cd70
  Information supplémentaire n° 4:	cd700fed3ea05d0b98c8e9b3babc5e1d

Lire notre déclaration de confidentialité en ligne :
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x040c

Si la déclaration de confidentialité en ligne n’est pas disponible, lisez la version hors connexion :
  C:\Windows\system32\fr-FR\erofflps.txt
Comment 15 caulier.gilles 2019-02-28 09:30:20 UTC
I started the 6.1.0 pre-version bundles compilation this morning. This take few hours to be online.

Gilles Caulier
Comment 16 nonobio 2019-03-01 15:30:18 UTC
Will it be available here ? : https://download.kde.org/unstable/digikam/
Comment 17 Maik Qualmann 2019-03-01 15:44:47 UTC
No, the weekly snapshots are uploaded here:

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

The new Windows bundle is not yet online.

Maik
Comment 18 nonobio 2019-03-01 15:45:50 UTC
Ok thanks :)
Comment 19 caulier.gilles 2019-03-01 16:15:53 UTC
The new windows installers are not yet ready, as something is broken in cross compiler.

In fact, i cleaned all MXE build env. and rebuild all from scratch. I figure a dysfunction in Eigen package : 

https://github.com/mxe/mxe/issues/2288

I hope that it will be fixed while this week end...

Gilles
Comment 20 caulier.gilles 2019-03-02 09:41:02 UTC
Maik,
In opencv, i found a python script to configure the library where i found more hidden options to turn off.

Seriously, OpenCV is a uncontrolled monster !

https://github.com/opencv/opencv/blob/master/platforms/js/build_js.py#L80

Note : with 4.x version look like DNN has an undocumented option to turn of/on DNN support...

Gilles
Comment 21 caulier.gilles 2019-03-03 16:30:38 UTC
Nonobio,

6.1.0 pre release installers for Windows are now updated with minimal OpenCV support, especially about video card matrix computation extensions.

At least, the crash about Cuda or OpenCL must disappear...

Gilles Caulier
Comment 22 nonobio 2019-03-04 16:57:02 UTC
Hi,

It works ! Thanks a lot :)
Comment 23 Maik Qualmann 2019-03-04 17:18:44 UTC
Thanks for the feedback.

Maik
Comment 24 caulier.gilles 2019-03-04 17:53:24 UTC
Maik,

I think we have plenty of crashes with Face workflow due to Cuda and OpenCL call from OpenCV. 

I always thing that user space code too much dependent of video card devices was an error prone.

This is true for Windows (now fixed), but also under MacOS (i need to rebuild all from scratch), and Linux with AppImage (not yet fixed due to fontconfig problem with Qt 5.11.3).

For Linux native build, i have no idea if Cuda or OpenCL can be disabled at run-time. I hope, and if it's the case, this must be done.

Gilles
Comment 25 Maik Qualmann 2019-03-04 19:32:53 UTC
Yes, I also think that our strange crashes in the code of some users depend on it.

Maik