Page 1 of 1

Assert fail when Image::read PNG file

Posted: 2009-10-16T03:18:54-07:00
by kkzhou
When reading an image
http://WWW.re-hair.com/hair/images/www2.png
libMagick++ asserts fail in
'magick/quantum.c:215: DestroyQuantumInfo: Assertion `quantum_info->signature == 0xabacadabUL' failed.'

I've tried 6.5.4-10 6.5.5-10 and 6.5.6-8. I found
viewtopic.php?f=3&t=14577
reported the same situation as I've encountered, and I checked Changlog:
"
2009-09-07 6.5.5-8 Cristy <quetzlzacatenango@image...>
# Check that quantum_info is defined before destroying it in the PNG coder.
# Add -interline-spacing option to convert.
"

So, is my bug another one?

Re: Assert fail when Image::read PNG file

Posted: 2009-10-18T20:16:10-07:00
by kkzhou
http://a.tbcdn.cn/sys/common/icon/trade/xcard.png
http://www.danstube.com/templates/darkm ... s/logo.png
http://WWW.re-hair.com/hair/images/www2.png

I found these URLs above which make ImageMagick crash when
"magick/cache.c:1871: GetAuthenticPixels: Assertion `cache_info->signature == 0xabacadabUL' failed."

Re: Assert fail when Image::read PNG file

Posted: 2009-10-19T04:30:21-07:00
by kkzhou
The fail of
"magick/cache.c:1871: GetAuthenticPixels: Assertion `cache_info->signature == 0xabacadabUL' failed."
doesn't happen if I disable the optimization '-O2' in the Makefile

Re: Assert fail when Image::read PNG file

Posted: 2009-10-19T07:17:31-07:00
by magick
Try ImageMagick 6.5.7-0, the current release. We get:
  • -> convert logo.png null:
    convert: Expected 8 bytes; found 0 bytes `logo.png' @ png.c/PNGWarningHandler/1436.
    convert: Read Exception `logo.png' @ png.c/PNGErrorHandler/1419.
    convert: Corrupt image `logo.png' @ png.c/ReadPNGImage/2935.
    convert: missing an image filename `null:' @ convert.c/ConvertImageCommand/2823.
    -> convert logo.png www2.png xcard.png null:
    convert: Expected 8 bytes; found 0 bytes `logo.png' @ png.c/PNGWarningHandler/1436.
    convert: Read Exception `logo.png' @ png.c/PNGErrorHandler/1419.
    convert: Corrupt image `logo.png' @ png.c/ReadPNGImage/2935.
    convert: Ignoring bad adaptive filter type `www2.png' @ png.c/PNGWarningHandler/1436.
    convert: Extra compressed data. `www2.png' @ png.c/PNGWarningHandler/1436.
    convert: Extra compression data `www2.png' @ png.c/PNGWarningHandler/1436.
    convert: IDAT: CRC error `www2.png' @ png.c/PNGErrorHandler/1419.
    convert: Corrupt image `www2.png' @ png.c/ReadPNGImage/2935.