Page 1 of 1

ImageMagick crashes when identifying a JPG

Posted: 2008-10-04T20:11:23-07:00
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?

Re: ImageMagick crashes when identifying a JPG

Posted: 2008-10-05T07:26:47-07:00
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.

Re: ImageMagick crashes when identifying a JPG

Posted: 2008-10-06T20:05:02-07:00
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?

Re: ImageMagick crashes when identifying a JPG

Posted: 2008-10-07T06:35:07-07:00
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.