Assert fail when Image::read PNG file

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
kkzhou

Assert fail when Image::read PNG file

Post 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?
kkzhou

Re: Assert fail when Image::read PNG file

Post 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."
kkzhou

Re: Assert fail when Image::read PNG file

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Assert fail when Image::read PNG file

Post 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.
Post Reply