Bug 320263 - FILEIO : some PNG files are not rendered with "IDAT: CRC error"
Summary: FILEIO : some PNG files are not rendered with "IDAT: CRC error"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-PNG (show other bugs)
Version: 3.1.0
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-25 15:50 UTC by Hannes H
Modified: 2022-01-14 23:11 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes H 2013-05-25 15:50:54 UTC
Some PNGs are not displayed by digikam and showfoto anymore. They display fine in gwenview.

Here's the output of showfoto on the image linked to below[1]:
% showfoto IMG_0693-IMG_0699_equisolid.png
showfoto(3175)/digikam (core): Error to get physical memory information form a recognized platform 
libpng error: IDAT: CRC error
showfoto(3175)/digikam (core) Digikam::EditorCore::getImg: d->image is NULL 
showfoto(3175)/digikam (core): Error to get physical memory information form a recognized platform 
libpng error: IDAT: CRC error
showfoto(3175)/digikam (core) Digikam::ThumbnailCreator::createThumbnail: Cannot create thumbnail for  "[...]/IMG_0693-IMG_0699_equisolid.png" 
showfoto(3175)/digikam (core) Digikam::ThumbnailCreator::load: Thumbnail is null for  "[...]/IMG_0693-IMG_0699_equisolid.png"

[1] http://soulrebel.in-berlin.de/pub/IMG_0693-IMG_0699_equisolid.png (warning big file!)

Reproducible: Always

Steps to Reproduce:
open the file
Actual Results:  
can't see the file

Expected Results:  
be able to see/edit the file
Comment 1 caulier.gilles 2013-05-25 16:43:23 UTC
Nice Panorama !

No problem to load it in editor. My computer has 16Gb of RAM...

http://www.flickr.com/photos/digikam/8827523886/sizes/o/

Gilles Caulier
Comment 2 Hannes H 2013-05-25 17:54:35 UTC
(In reply to comment #1)
> Nice Panorama !
> 
> No problem to load it in editor. My computer has 16Gb of RAM...
> 
> http://www.flickr.com/photos/digikam/8827523886/sizes/o/

I have 8GB, I don't think thats the issue...
Comment 3 caulier.gilles 2013-05-25 18:34:57 UTC
Check your libpng... With mine, there is no problem, no error message on the console...

Also, try digiKam 3.2.0

Best

Gilles Caulier
Comment 4 Hannes H 2013-06-08 19:13:22 UTC
I have updated to digikam 3.2.0, my libpng is 1.5.16. All other programs, also gwenview and okular have no problems opening the picture. I am quite sure this is an issue in digikam...

Thanks for your help.
Comment 5 caulier.gilles 2013-11-25 14:19:32 UTC
Sound like a regression in libPNG because here with libpng 1.5.13, there is no problem...

Can you reproduce the problem with digiKam 3.5.0 ?

Gilles Caulier
Comment 6 caulier.gilles 2014-08-22 12:16:08 UTC
Hannes,

What's news about this file using last digiKam 4.2.0 ?

Gilles Caulier
Comment 7 Hannes H 2014-08-22 12:59:38 UTC
On 22.08.2014 14:16, Gilles Caulier wrote:
> https://bugs.kde.org/show_bug.cgi?id=320263
> 
> --- Comment #6 from Gilles Caulier <caulier.gilles@gmail.com> ---
> Hannes,
> 
> What's news about this file using last digiKam 4.2.0 ?

FreeBSD is still on 3.5.0, so I can't check right now, but I will as
soon as the port gets updated...

Thanks,
Hannes
Comment 8 caulier.gilles 2015-05-11 12:37:46 UTC
Hannes,

This file still valid using last digiKam 4.9.0 ?

Gilles Caulier
Comment 9 Hannes H 2015-05-12 20:48:29 UTC
Dear Gilles,

thanks for asking. I just checked with 
 digikam-4.2.0_1
 png-1.6.17
which are the current versions on FreeBSD, the problem persists:

hannes@fbsdmain /tmp % showfoto IMG_0693-IMG_0699_equisolid.png
showfoto(1430)/digikam (core) *Digikam::EditorCore::getImg: d->image is NULL 
showfoto(1430)/digikam (core) *Digikam::EditorCore::getImg: d->image is NULL 
showfoto(1430)/digikam (core): Error to get physical memory information form a recognized platform 
libpng warning: IDAT: Too much image data
showfoto(1430)/digikam (core) *Digikam::EditorCore::getImg: d->image is NULL 
showfoto(1430)/digikam (core) *Digikam::EditorCore::getImg: d->image is NULL 
showfoto(1430)/digikam (core) *Digikam::EditorCore::getImg: d->image is NULL 
showfoto(1430)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "No such object path '/modules/ktimezoned'" 

showfoto(1430)/digikam (core): Error to get physical memory information form a recognized platform 
libpng warning: IDAT: Too much image data
showfoto(1430)/digikam (core) Digikam::ThumbnailCreator::createThumbnail: Cannot create thumbnail for  "/tmp/IMG_0693-IMG_0699_equisolid.png" 
showfoto(1430)/digikam (core) Digikam::ThumbnailCreator::load: Thumbnail is null for  "/tmp/IMG_0693-IMG_0699_equisolid.png"
Comment 10 caulier.gilles 2015-05-12 21:06:05 UTC
How do you generate this image ? 

Can you share the original file to convert to PNG to try to reproduce here ?

Gilles Caulier
Comment 11 caulier.gilles 2016-07-04 20:06:01 UTC
This file still valid using digiKam 5.0.0 ?

Gilles Caulier
Comment 12 caulier.gilles 2016-11-25 20:05:09 UTC
What's about this file using digiKam AppImage bundle 5.4.0 pre release given at
this url :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 13 caulier.gilles 2020-08-03 04:54:56 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 14 caulier.gilles 2022-01-14 21:41:22 UTC
With my last changes done in bug #386396, i can open the PNG image
shared by Hannes from original comment. 

I close this file now
Comment 15 Hannes H 2022-01-14 23:11:42 UTC
Wow, happy new decade everyone :)

I haven't used digikam in years, but I just installed it to double-check. It no longer crashes 👍