Bug 476120 - Name confirmation on facial recognition crashes on PDF files
Summary: Name confirmation on facial recognition crashes on PDF files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Metadata (show other bugs)
Version: 8.2.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-26 19:12 UTC by Ervan Darnell
Modified: 2025-03-03 19:51 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ervan Darnell 2023-10-26 19:12:17 UTC
SUMMARY
***
While processing faces and adding names directly under the face thumbnail under the "People" menu option and the tag "People/Don Baker" in the "Unconfirmed" section, the following crash happened.  It has happened multiple times, but cannot be directly repeated because the face in question gets processed before the crash.  I am hoping the fact that this happens on .PDFs is a sufficient clue.
***


OBSERVED RESULT
Crash with:
Cannot load metadata with Exiv2:  (Error # 12 :  "/home/ervan/Pictures/WinPictures/Personal/_gsdata_/_saved_/2011/Don's wedding/his pics/Documents/Invitations/SaveTheDate.pdf: The file contains data of an unknown image type"
/tmp/.mount_digiKalHyj8R/AppRun: line 202: 1487135 Segmentation fault      (core dumped) digikam $@



SOFTWARE/OS VERSIONS
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
$ uname -a
Linux serval 6.2.6-76060206-generic #202303130630~1689015125~22.04~ab2190e~dev-Ubuntu SMP PREEMPT_DY x86_64 x86_64 x86_64 GNU/Linux

running Wayland on Gnome 42.9

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2023-10-26 19:37:29 UTC
A quick test here shows no crash with an image in a PDF file. However, it is clear that metadata can only be written to PDF files using the ExifTool writing engine. I suspect a crash in the Image Magick Loader for PDF files or in the Exiv2 library. Have you activated ExifTool for writing metadata? If not, please test whether the crash still occurs with ExifTool as metadata writer.

Maik
Comment 2 Maik Qualmann 2023-10-26 19:44:36 UTC
To better isolate the error, download the AppImage with "debug" in the filename and run it with "debug" as an option. If the crash occurred write "bt" + Enter and then post the output in the terminal here.

Maik
Comment 3 Ervan Darnell 2023-10-27 19:51:22 UTC
"Sync Metadata and Database" is not even checked for the moment.  This seems to be where I use exiftool for writing the metadata?  Apparently it is reading the metadata some other way.  But, still you want me to turn this on for testing.  Right?
Comment 4 caulier.gilles 2024-03-28 07:04:50 UTC
@Ervan,

digiKam 8.3.0 stable version is released and available at usual place :

https://www.digikam.org/download/

Can you reproduce the dysfunction on your computer ?

Thanks in advance

Gilles Caulier
Comment 5 caulier.gilles 2024-12-02 06:41:23 UTC
Hi,

digiKam 8.5.0. is out with many fixes and improvements.

https://www.digikam.org/news/2024-11-16-8.5.0_release_announcement/

This report still valid with this version?
Thanks in advance

Gilles Caulier
Comment 6 Michael Miller 2025-02-02 12:48:48 UTC
Closing due to no response from user, and the entire face pipeline has been rewritten since this issue was created.

Cheers,
Mike
Comment 7 Ervan Darnell 2025-03-03 18:45:08 UTC
I cannot replicate the failure in 8.5.0 (original filer here).  Thanks.