Bug 451943 - digikam crashes on *.svg file that contains a font that's not installed on the system
Summary: digikam crashes on *.svg file that contains a font that's not installed on th...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (other bugs)
Version First Reported In: 7.5.0
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-26 18:48 UTC by Kaenguru
Modified: 2022-03-26 20:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.7.0
Sentry Crash Report:


Attachments
wordcloud testfile with problem fonts (11.34 KB, image/svg+xml)
2022-03-26 18:48 UTC, Kaenguru
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kaenguru 2022-03-26 18:48:08 UTC
Created attachment 147751 [details]
wordcloud testfile with problem fonts

SUMMARY
***
I have created a wordcloud image on https://www.wortwolken.com/, saved the output to *.svg (see attached file).
Trying to renew the thumbnails generation DK crashes. Probably because there are fonts in the file that I don#t have installed on my computer (like Raleway and Helvetica). After changing those fonts to some available on my PC everything is ok and thumbnail is generated.
***


STEPS TO REPRODUCE
1. Put the attached file into an album for DK
2. Open DK
3. Let it create thumbnails

OBSERVED RESULT
Digikam closes without a message.

EXPECTED RESULT
Digikam makes a thumbnail and stays open

SOFTWARE/OS VERSIONS
Kernel: 5.4.0-105-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 Desktop: MATE 1.24.0 
           wm: marco dm: LightDM Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 


ADDITIONAL INFORMATION
Digikam Info:
digikam version 7.5.0
CPU cores: 4
DNG SDK: 1.5.1
Eigen: 3.3.7
ExifTool: 12.22
Exiv2: 0.27.5
Exiv2 supports Base Media: Ja
Exiv2 supports XMP metadata: Ja
HEIF encoding support: Ja
ImageMagick codecs: 7.0.10
KF5: 5.89.0
LensFun: 0.3.95-0
LibCImg: 130
LibJPEG: 80
LibJasper: 2.0.27
LibLCMS: 2090
LibLqr support: Ja
LibPGF: 7.21.07
LibPNG: 1.6.37
LibRaw: 0.21.0
LibTIFF: 4.2.0
Marble: 21.12.0
Parallelized demosaicing: Ja
Qt: 5.15.2
Qt WebEngine support: Ja
Rajce support: Ja
VKontakte support: Nein
XMP SDK: 5.6.0
Datenbanktreiber: QSQLITE
LibAVCodec: 58.35.100
LibAVFormat: 58.20.100
LibAVUtil: 56.22.100
LibGphoto2: 2.5.22
LibOpenCV: 4.5.3
LibQtAV: 1.13.0
Unterstützung für Baloo: Nein
Unterstützung für DBus: Nein
Unterstützung für HTML-Galerie: Ja
Unterstützung für Kalender: Ja
Unterstützung für Medienwiedergabe: Ja
Unterstützung für Panorama: Ja
Unterstützung von Akonadi-Kontakten: Nein
Comment 1 Maik Qualmann 2022-03-26 19:31:19 UTC
A crash cannot be reproduced here with a current git/master digiKam version. A transparent thumbnail and preview of the SVG file will appear. Please test it with our current digiKam-7.6.0 AppImage.
Since SVG files are supported via the KImageFormat plugin, I assume you have a version that is too old.

Maik
Comment 2 Maik Qualmann 2022-03-26 19:34:00 UTC
If you are using the unusable Ubuntu digiKam-7.5.0 Snap package, the problem can also be caused by this. Snap packages use a sandbox, we have already received many problems from these Ubuntu packages. We do not support Flatpak and Snap packages.

Maik
Comment 3 Maik Qualmann 2022-03-26 19:59:34 UTC
Ok, digikam crashes at the end of the program if the file was previously loaded. It doesn't matter whether the KImageFormat Loader or the ImageMagick Loader is used. The crash occurs in libgoobject. This isn't something we can fix.

Maik
Comment 4 Maik Qualmann 2022-03-26 20:37:58 UTC
The cause of the crash is our ImageMagick Metadata backend.

Maik
Comment 5 Maik Qualmann 2022-03-26 20:52:05 UTC
Git commit bb9eedbe5f3c7dc237d507f3d5b8deb3586a54c0 by Maik Qualmann.
Committed on 26/03/2022 at 20:51.
Pushed by mqualmann into branch 'qt5-maintenance'.

ignore SVG files with the ImageMagick metadata backend
FIXED-IN: 7.7.0

M  +2    -1    NEWS
M  +2    -1    core/libs/metadataengine/dmetadata/dmetadata_imagemagick.cpp

https://invent.kde.org/graphics/digikam/commit/bb9eedbe5f3c7dc237d507f3d5b8deb3586a54c0