ImageMagick crashes when identifying a JPG

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
quelle

ImageMagick crashes when identifying a JPG

Post by quelle »

Using:
ImageMagick 6.4.3 2008-08-28 Q8
Windows XP SP2

I am using IM to extract image properties from some images, and every so often, I get the following error in a popup: ImageMagick Studio library and utility programs has encountered a problem and needs to close.
Image

I get this error when running basic commands, like:

Code: Select all

identify quelle.jpg
The image can be found here: http://i404.photobucket.com/albums/pp12 ... quelle.jpg
(note: you might not be able to view the img in a web browser because it is a CMYK jpg, but it can still be saved using "Right-Click/Save As")

The results of identify -trace debug quelle.jpg show the following lines repeating, until I finally type CTRL-C to kill it.

Code: Select all

2008-10-04T21:28:29-06:00 0:07 0.094u 6.4.3 Trace identify[1316]: hashmap.c/AppendValueToLinkedList/165/Trace
  ...
2008-10-04T21:28:29-06:00 0:07 0.094u 6.4.3 Trace identify[1316]: xml-tree.c/GetNextXMLTreeTag/594/Trace
  ...
2008-10-04T21:28:29-06:00 0:07 0.094u 6.4.3 Trace identify[1316]: xml-tree.c/GetXMLTreeAttribute/638/Trace
  ...
2008-10-04T21:28:29-06:00 0:07 0.094u 6.4.3 Trace identify[1316]: xml-tree.c/GetXMLTreeAttribute/638/Trace
  ...
2008-10-04T21:28:29-06:00 0:07 0.094u 6.4.3 Trace identify[1316]: xml-tree.c/GetXMLTreeAttribute/638/Trace
  ...
2008-10-04T21:28:29-06:00 0:07 0.094u 6.4.3 Trace identify[1316]: xml-tree.c/GetXMLTreeAttribute/638/Trace
  ...
I understand that some images have corrupt data (which looks to be the case here), but usually IM just reports an error message (something like: identify: Corrupt JPEG data). Not with this image, though! Could you please tell me what is wrong with the image and can IM recover more gracefully, instead of displaying an error popup?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick crashes when identifying a JPG

Post by magick »

ImageMagick 6.4.4-2 Beta has a patch for the XML parser that fixes the problem you reported. 6.4.4-2 Beta is scheduled for release sometime this week.
quelle

Re: ImageMagick crashes when identifying a JPG

Post by quelle »

Thanks for the super fast response!

I just tried the newest release (ImageMagick 6.4.4 2008-10-04 Q8), and it now works for the previous image I posted, but not for another one :(

The 2nd image can be found here: http://i404.photobucket.com/albums/pp12 ... uelle2.jpg
(Right-Click/Save As)

The results of identify -trace debug quelle2.jpg again show the following lines repeating, until I finally type CTRL-C to kill it.

Code: Select all

2008-10-06T20:56:53-06:00 0:05 0.157u 6.4.4 Trace identify[4568]: xml-tree.c/GetXMLTreeAttribute/640/Trace
  ...
2008-10-06T20:56:53-06:00 0:05 0.157u 6.4.4 Trace identify[4568]: xml-tree.c/GetXMLTreeAttribute/640/Trace
  ...
2008-10-06T20:56:53-06:00 0:05 0.157u 6.4.4 Trace identify[4568]: xml-tree.c/GetXMLTreeAttribute/640/Trace
  ...
2008-10-06T20:56:53-06:00 0:05 0.157u 6.4.4 Trace identify[4568]: xml-tree.c/GetXMLTreeAttribute/640/Trace
  ...
2008-10-06T20:56:53-06:00 0:05 0.172u 6.4.4 Trace identify[4568]: hashmap.c/AppendValueToLinkedList/165/Trace
  ...
2008-10-06T20:56:53-06:00 0:05 0.172u 6.4.4 Trace identify[4568]: xml-tree.c/GetNextXMLTreeTag/596/Trace
  ...
This looks the same as the previous error I posted, which was fixed in the 6.4.4-2-Q8 release...

Is this a different kind of error?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick crashes when identifying a JPG

Post by magick »

We believe you... but your image works fine for us on the various computers we tried it on. We'll try some debugging tools and see if there is any memory corruption.
Post Reply