Page 1 of 1

6.6.9-3: crash when "convert a.png -resize 33% png8:b.png"

Posted: 2011-04-06T05:17:15-07:00
by pepr
I am using Window 7 64-bit. After installing the ImageMagick-6.6.9-3-Q16-windows-x64-dll.exe, the

Code: Select all

convert a.png -resize 33% png8:b.png
crashed and produced the empty b.png. The a.png is the snapshot of the application window
and can be downloaded from http://www.skil.cz/bug/ImageMagick/a.png

The same problem was observed with the 32-bit version of the ImageMagick version (the same release).
After returning back to ImageMagick-6.6.3-4-Q16-windows-x64-dll.exe it work (almost) fine.

My reason for the wanted update was that the older version complains about
invalid background palette index when converting another file

Code: Select all

C:\tmp\a>convert c.png -resize 33% png8:d.png
Magick: Invalid background palette index `d.png' @ warning/png.c/PNGWarningHandler/1503.
The c.png can be downloaded as http://www.skil.cz/bug/ImageMagick/c.png

Thanks,
Petr

Re: 6.6.9-3: crash when "convert a.png -resize 33% png8:b.pn

Posted: 2011-04-06T09:57:21-07:00
by fmw42
Both commands ran successfully (no crash) on my IM 6.6.9.3 Q16 Mac OSX Tiger. HOWEVER, neither resulting image could be opened.

Re: 6.6.9-3: crash when "convert a.png -resize 33% png8:b.pn

Posted: 2011-04-06T10:21:25-07:00
by glennrp
I'm seeing a "double-free" crash with both commands on my
Ubuntu platform with IM-6.9.3 apparently during the quantization to the 3-3-3-1
palette. It is in a section of code where there is a comment "should not
reach this", so there's some kind of logic error there.

edit: The problem was that a bogus image->colormap was attached to
the non-PseudoClass image that was passed to the PNG encoder.
This is fixed (in the PNG encoder, not fixing the underlying problem) in SVN
revision 4193 (IM-6.6.9-4).

Re: 6.6.9-3: crash when "convert a.png -resize 33% png8:b.pn

Posted: 2011-04-12T00:52:48-07:00
by pepr
Thanks! The 6.6.9-4 works now :D