Bug 465905 - Crash when adding a face tag
Summary: Crash when adding a face tag
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Engine (show other bugs)
Version: 7.9.0
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 09:15 UTC by lucanakin
Modified: 2023-04-08 20:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lucanakin 2023-02-17 09:15:35 UTC
SUMMARY
***
Digikam crash each time it tries to add a face tag to a picture (when drawing yourself a face tag or when running auto-detect). System: Manjaro with Digikam 7.9.0-4. Reverted back to an older revision but the crash kept occuring. Might be related to a dependance.

***


STEPS TO REPRODUCE
1.  Launch Digikam. Display a JPG.
2. Click on "Adding a face", draw the face. Choose the name.
3. When the name is validated, Digikam freezes then crash (close).
4. However, when relaunching Digikam, the face has been added to the JPG metadata. So I can continue tagging faces but only one at time (Digikam crashing between each face). 

Message in terminal: 
/usr/include/c++/12.2.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = float; _Alloc = std::allocator<float>; reference = float&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

SOFTWARE/OS VERSIONS
 Manjaro Linux with Cinnamon desktop
Linux : 5.10.167-1-MANJARO
Cinnamon : 5.6.7
Digikam : 5.7.0-4

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2023-02-17 09:17:16 UTC
Which opencv library version did you use ? Take a look to Help/Components Info dialog for details.
Comment 2 lucanakin 2023-02-17 09:21:21 UTC
I have LibOpenCV: 4.7.0


XMP SDK: 5.6.0
Qt WebEngine version: 5.15.12
Qt: 5.15.8
Marble: 22.12.0
Libx265: 3.5
LibTIFF: 4.5.0
LibRaw: 0.21.0
LibQtAV: 1.13.0
LibPNG: 1.6.39
LibPGF: 7.21.07
LibOpenCV: 4.7.0
LibLCMS: 2140
LibJPEG: 80
LibJasper: 4.0.0
LibHEIF: 1.14.1
LibGphoto2: 2.5.30
LibCImg: 130
LibAVUtil: 57.28.100
LibAVFormat: 59.27.100
LibAVCodec: 59.37.100
LensFun: 0.3.3-0
KF5: 5.101.0
ImageMagick codecs: 7.1.0
Exiv2: 0.27.6
ExifTool: 12.50
Eigen: 3.4.0
DNG SDK: 1.5.1
Comment 3 lucanakin 2023-02-17 09:23:55 UTC
From "opencv 4.7.0-1" in the MANJARO software base. There are also a "opencv-cuda 4.7.0-1" which is not installed.
Comment 4 caulier.gilles 2023-02-17 09:32:43 UTC
opencv is the problem there is a bug in 4.7.0 release.

*** This bug has been marked as a duplicate of bug 464646 ***
Comment 5 lucanakin 2023-02-17 09:37:55 UTC
Ok duplicate. I'm sorry for the inconveniance. 
Still I made several research before submitting with "face tag crash", "face detection crash", "face crash", "face database crash" and found nothing similar. "Crash" was the word too many.