Bug 406979 - Specific PNG crashes Digikam
Summary: Specific PNG crashes Digikam
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Thumbs (show other bugs)
Version: 6.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-27 17:40 UTC by Sebas
Modified: 2020-08-01 20:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebas 2019-04-27 17:40:59 UTC
Digikam 6.0 and 6.1.

A specific PNG file crashes the whole application. I think it happens when Digikam tries to generate a thumbnail. I moved the file out of the collection and now it seems fine. Although, knowing Digikam's stability for me...it is just waiting for the next crash and database corruption. *sigh*

I can provide the file to a developer. Just asking you to delete it afterwards because there is a person in the picture (not me). Let me know how to get it to you.
Comment 1 caulier.gilles 2019-04-27 18:24:09 UTC
Hi just share PNG samples through the cloud.

Best

Gilles Caulier
Comment 2 Sebas 2019-04-27 18:35:56 UTC
I can mail it to you. Don't wish to put this one up in public.
Comment 3 Maik Qualmann 2019-04-27 23:29:18 UTC
Please send me a PNG file.

Maik
Comment 4 Sebas 2019-04-28 07:34:38 UTC
Done.
Comment 5 Maik Qualmann 2019-04-28 10:30:01 UTC
The PNG file is clearly broken. However, digiKam does not crash here under Linux, but like other programs it can not display the image. Gimp loads half a image.

libpng error: IDAT: CRC error
digikam.dimg.png: Internal libPNG error during reading file. Process aborted!
digikam.dimg: Try to load image with ImageMagick codecs
digikam.dimg: ImageMagick exception [ "/daten/Bilder/Zugang/aa/DSC_3784_RT1.png" ] digikam: IDAT: CRC error `/daten/Bilder/Zugang/aa/DSC_3784_RT1.png' @ error/png.c/MagickPNGErrorHandler/1714

Maik
Comment 6 caulier.gilles 2019-04-28 11:17:34 UTC
Other question is : is Exiv2 can parse this broken files without to crash host application ?

Gilles
Comment 7 Maik Qualmann 2019-04-28 12:14:38 UTC
I think the reason it crashes on Windows is that "catch" does not work under MinGW. Let's see if I can debug it with the PNG file.

Maik
Comment 8 Sebas 2019-04-28 14:03:42 UTC
Hmm weird. Image displays well here in Windows Photo Viewer and is editable in Paint.NET. Broken in IrfanView.

So this must be corruption...which is worrying...
Comment 9 Maik Qualmann 2019-06-28 19:52:22 UTC

*** This bug has been marked as a duplicate of bug 408592 ***
Comment 10 Sebas 2020-08-01 19:37:50 UTC
No crash in 7.0.0.
Comment 11 caulier.gilles 2020-08-01 20:15:51 UTC
Thanks for the feedback