Bug 422735 - Segment fault after first 'scan collection for faces'
Summary: Segment fault after first 'scan collection for faces'
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 7.0.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-10 10:37 UTC by Ian
Modified: 2020-10-04 01:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 2020-06-10 10:37:57 UTC
SUMMARY

With no existing face database from dgiikam 6.4.0, I wanted to try the new face detection engine. The first time, it crashed. 

Trying it again, it's chugging through the collection as expected.

STEPS TO REPRODUCE (in this case, 'what I did')
1. Run 7.0.0 beta3 for the first time
2. Detect and name three faces in two photos
3. Go to People / Scan collection for faces

OBSERVED RESULT

Crash:

ian@here:~$ ./digikam-7.0.0-beta3-20200422T062854-x86-64.appimage 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libnss3.so 
-- Preloading shared libs: :/tmp/.mount_digika3uw4zp/usr/lib64/libnss3.so
QtAV 1.13.0(Apr 22 2020, 03:53:50)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
unknown: Unhandled container to remove :  Digikam::DigikamApp
Digikam::DNNFaceRecognizer::predict: Predicting face image
Digikam::DNNFaceRecognizer::predict: m_threshold  0.8
Digikam::DNNFaceRecognizer::predict: vecdata:  -0.0152952   -0.0165227
Digikam::DNNFaceRecognizer::predict: Predicting face image
Digikam::DNNFaceRecognizer::predict: m_threshold  0.8
Digikam::DNNFaceRecognizer::predict: vecdata:  0.132777   0.0225915
Digikam::DNNFaceRecognizer::predict: Predicting face image
Digikam::DNNFaceRecognizer::predict: m_threshold  0.8
Digikam::DNNFaceRecognizer::predict: vecdata:  0.0020861   -0.045111
Digikam::DNNFaceRecognizer::predict: Predicting face image
Digikam::DNNFaceRecognizer::predict: m_threshold  0.8
Digikam::DNNFaceRecognizer::predict: vecdata:  0.0498549   0.0610469
Digikam::DNNFaceRecognizer::predict: Predicting face image
Digikam::DNNFaceRecognizer::predict: m_threshold  0.8
Digikam::DNNFaceRecognizer::predict: vecdata:  0.0361925   0.0379819
/tmp/.mount_digika3uw4zp/AppRun: line 157: 357443 Segmentation fault      (core dumped) digikam $@
ian@here:~$ 


EXPECTED RESULT

It to chug through the collection looking for faces.

SOFTWARE/OS VERSIONS

Ubuntu MATE 20.04, using appimage for dependencies.

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-06-10 10:52:14 UTC
Please start the AppImage with the "debug" option. And create a GDB backtrace after the crash by typing "bt" in the terminal. One question, are you using an Intel Core 5/7?

Activate also the debug output in the terminal with:
export QT_LOGGING_RULES="digikam*=true"

Maik
Comment 2 Ian 2020-06-10 15:39:28 UTC
No, it's a AMD Ryzen 5 2600 CPU.

Will do, but it's still working through the second try. (Over 70k photos, currently at 69% progress.)
Comment 3 Ian 2020-06-10 18:46:12 UTC
(8 hours, 20 minutes, 22 seconds)
Comment 4 Maik Qualmann 2020-06-14 09:34:57 UTC
Git commit 880b4c0faa511364135deed61e68e031b8ddfe2e by Maik Qualmann.
Committed on 14/06/2020 at 09:32.
Pushed by mqualmann into branch 'master'.

do not use static for this DImg function
Related: bug 418939, bug 421043

M  +3    -3    core/libs/dimg/dimg.h
M  +7    -8    core/libs/dimg/dimg_metadata.cpp

https://invent.kde.org/graphics/digikam/commit/880b4c0faa511364135deed61e68e031b8ddfe2e
Comment 5 caulier.gilles 2020-07-31 12:56: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.

Best Regards

Gilles Caulier
Comment 6 caulier.gilles 2020-10-04 01:53:17 UTC
Fixed with bug #426175