Page 1 of 2

EPT error (Insufficient image data)

Posted: 2010-02-22T01:39:33-07:00
by kriks
Hi,

we've had a new error for 2 times now on some EPS :

Code: Select all

# identify -verbose 121510.eps
identify: Insufficient image data in file `121510.eps' @ ept.c/ReadEPTImage/223.

Code: Select all

# identify -version
Version: ImageMagick 6.5.7-8 2009-11-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Features: OpenMP

Code: Select all

# gs -v
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
opening with gimp or photoshop does not raise any error, and re-saving it seems to workaround the problem


the file is here : http://dl.free.fr/qrf0nOnTc

any idea ?

Re: EPT error (Insufficient image data)

Posted: 2010-02-22T06:53:47-07:00
by magick
The image is corrupt. It says the postscript image is 680067 bytes but it was in fact 680066 bytes. We'll patch ImageMagick to make this a warning rather than an error.

Re: EPT error (Insufficient image data)

Posted: 2010-02-22T07:14:51-07:00
by kriks
thanks a lot for this analysis!

we're waiting for the new patched version :D

Re: EPT error (Insufficient image data)

Posted: 2010-03-01T04:53:49-07:00
by kriks
Thank you, version 6.6.0-0 seems to work like a charm for us :D

Re: EPT error (Insufficient image data)

Posted: 2010-03-02T02:22:25-07:00
by kriks
wow, I spoke too fast.

when using +clip-path on a buggy image, convert will segfault with
convert -density 300 121758.eps -profile Photoshop5DefaultCMYK.icc -profile AdobeRGB1998.icc +clip-path '#1' -fuzz 100% -transparent white -fuzz 0% -strip -format JPEG -compress JPEG -quality 80 -type Optimize -depth 8 -resize 135x120 -flatten 121758.jpg

*** glibc detected *** convert: munmap_chunk(): invalid pointer: 0x00000000027cbfd0 ***
*** glibc detected *** convert: malloc(): memory corruption: 0x00000000027ceb60 ***
it seems that transforming the error in a warning has some consequences on later code (interpreting image headers ?)

Can you please have a look ?

Re: EPT error (Insufficient image data)

Posted: 2010-03-02T06:40:55-07:00
by magick
Post a URL to 121758.eps. We need to download it and reproduce the problem. We tried your command with 121510.eps and it ran without complaint.

Re: EPT error (Insufficient image data)

Posted: 2010-03-02T07:05:58-07:00
by kriks
sorry, here it is : http://dl.free.fr/tXL1jDWo5

Re: EPT error (Insufficient image data)

Posted: 2010-03-02T07:37:50-07:00
by magick
Grab ImageMagick 6.6.0-1 Beta from ftp://magick.imagemagick.org/pub/ImageMagick/beta. It has a patch that should fix the problem you reported. You may need to wait an hour before 6.6.0-1 is available since its building now.

Re: EPT error (Insufficient image data)

Posted: 2010-03-02T08:35:55-07:00
by kriks
thank you very much, we'll try it tomorrow and will keep you informed :)

Re: EPT error (Insufficient image data)

Posted: 2010-03-03T05:32:31-07:00
by kriks
it still crashes, here is the output for the same command on the same file :

Code: Select all

*** glibc detected *** convert: munmap_chunk(): invalid pointer: 0x0000000000de23d0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fdfa1cbedd6]
/usr/local/lib/libMagickCore.so.3(RelinquishMagickMemory+0xf)[0x7fdfa28a04cf]
/usr/local/lib/libMagickCore.so.3[0x7fdfa283f26c]
/usr/local/lib/libMagickCore.so.3(DrawImage+0x3ac9)[0x7fdfa284c4f9]
/usr/local/lib/libMagickCore.so.3[0x7fdfa297f016]
/usr/local/lib/libMagickCore.so.3(ReadImage+0x1a2)[0x7fdfa280c7e2]
/usr/local/lib/libMagickCore.so.3[0x7fdfa29b47f7]
/usr/local/lib/libMagickCore.so.3(ReadImage+0x1a2)[0x7fdfa280c7e2]
/usr/local/lib/libMagickCore.so.3(BlobToImage+0x1bf)[0x7fdfa27e0a8f]
/usr/local/lib/libMagickCore.so.3(ClipImagePath+0xf0)[0x7fdfa2890840]
/usr/local/lib/libMagickWand.so.3(MogrifyImage+0x38e6)[0x7fdfa2500d26]
/usr/local/lib/libMagickWand.so.3(MogrifyImages+0xe9)[0x7fdfa2503b29]
/usr/local/lib/libMagickWand.so.3(ConvertImageCommand+0xcbd)[0x7fdfa248dccd]
/usr/local/lib/libMagickWand.so.3(MagickCommandGenesis+0x1bd)[0x7fdfa24fd0ed]
convert[0x400ab5]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fdfa1c67abd]
convert[0x400999]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:02 667813                             /usr/local/bin/convert
00601000-00602000 r--p 00001000 08:02 667813                             /usr/local/bin/convert
00602000-00603000 rw-p 00002000 08:02 667813                             /usr/local/bin/convert
00b72000-01116000 rw-p 00000000 00:00 0                                  [heap]
7fdf8e7ac000-7fdf930da000 rw-p 00000000 00:00 0
7fdf94322000-7fdf98c50000 rw-p 00000000 00:00 0
7fdf98c50000-7fdf98c53000 r--p 00000000 08:02 147206                     /tmp/magick-XXFei2Vu
7fdf98c54000-7fdf98c55000 ---p 00000000 00:00 0
7fdf98c55000-7fdf99455000 rw-p 00000000 00:00 0
7fdf99455000-7fdf99456000 ---p 00000000 00:00 0
7fdf99456000-7fdf99c56000 rw-p 00000000 00:00 0
7fdf99c56000-7fdf99c57000 ---p 00000000 00:00 0
7fdf99c57000-7fdf9a457000 rw-p 00000000 00:00 0
7fdf9a457000-7fdf9a458000 ---p 00000000 00:00 0
7fdf9a458000-7fdf9ac58000 rw-p 00000000 00:00 0
7fdf9ac58000-7fdf9ac59000 ---p 00000000 00:00 0
7fdf9ac59000-7fdf9b459000 rw-p 00000000 00:00 0
7fdf9b459000-7fdf9b45a000 ---p 00000000 00:00 0
7fdf9b45a000-7fdf9bc5a000 rw-p 00000000 00:00 0
7fdf9bc5a000-7fdf9bc5b000 ---p 00000000 00:00 0
7fdf9bc5b000-7fdf9c45b000 rw-p 00000000 00:00 0
7fdf9ca2d000-7fdf9ca32000 r-xp 00000000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0
7fdf9ca32000-7fdf9cc31000 ---p 00005000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0
7fdf9cc31000-7fdf9cc32000 rw-p 00004000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0
7fdf9cc32000-7fdf9cc39000 r-xp 00000000 08:02 928453                     /lib/librt-2.10.1.so
7fdf9cc39000-7fdf9ce38000 ---p 00007000 08:02 928453                     /lib/librt-2.10.1.so
7fdf9ce38000-7fdf9ce39000 r--p 00006000 08:02 928453                     /lib/librt-2.10.1.so
7fdf9ce39000-7fdf9ce3a000 rw-p 00007000 08:02 928453                     /lib/librt-2.10.1.so
7fdf9ce3a000-7fdf9ce55000 r-xp 00000000 08:02 36676                      /usr/lib/libxcb.so.1.1.0
7fdf9ce55000-7fdf9d054000 ---p 0001b000 08:02 36676                      /usr/lib/libxcb.so.1.1.0
7fdf9d054000-7fdf9d055000 r--p 0001a000 08:02 36676                      /usr/lib/libxcb.so.1.1.0
7fdf9d055000-7fdf9d056000 rw-p 0001b000 08:02 36676                      /usr/lib/libxcb.so.1.1.0
7fdf9d056000-7fdf9d059000 r-xp 00000000 08:02 928503                     /lib/libuuid.so.1.3.0
7fdf9d059000-7fdf9d259000 ---p 00003000 08:02 928503                     /lib/libuuid.so.1.3.0
7fdf9d259000-7fdf9d25a000 r--p 00003000 08:02 928503                     /lib/libuuid.so.1.3.0
7fdf9d25a000-7fdf9d25b000 rw-p 00004000 08:02 928503                     /lib/libuuid.so.1.3.0
7fdf9d25b000-7fdf9d281000 r-xp 00000000 08:02 929805                     /lib/libexpat.so.1.5.2
7fdf9d281000-7fdf9d481000 ---p 00026000 08:02 929805                     /lib/libexpat.so.1.5.2
7fdf9d481000-7fdf9d483000 r--p 00026000 08:02 929805                     /lib/libexpat.so.1.5.2
7fdf9d483000-7fdf9d484000 rw-p 00028000 08:02 929805                     /lib/libexpat.so.1.5.2
7fdf9d484000-7fdf9d48b000 r-xp 00000000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0
7fdf9d48b000-7fdf9d68a000 ---p 00007000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0
7fdf9d68a000-7fdf9d68b000 r--p 00006000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0
7fdf9d68b000-7fdf9d68c000 rw-p 00007000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0
7fdf9d68c000-7fdf9d68e000 r-xp 00000000 08:02 36672                      /usr/lib/libXau.so.6.0.0
7fdf9d68e000-7fdf9d88d000 ---p 00002000 08:02 36672                      /usr/lib/libXau.so.6.0.0
7fdf9d88d000-7fdf9d88e000 r--p 00001000 08:02 36672                      /usr/lib/libXau.so.6.0.0
7fdf9d88e000-7fdf9d88f000 rw-p 00002000 08:02 36672                      /usr/lib/libXau.so.6.0.0
7fdf9d88f000-7fdf9d8a5000 r-xp 00000000 08:02 928479                     /lib/libgcc_s.so.1
7fdf9d8a5000-7fdf9daa4000 ---p 00016000 08:02 928479                     /lib/libgcc_s.so.1
7fdf9daa4000-7fdf9daa5000 r--p 00015000 08:02 928479                     /lib/libgcc_s.so.1
7fdf9daa5000-7fdf9daa6000 rw-p 00016000 08:02 928479                     /lib/libgcc_s.so.1
7fdf9daa6000-7fdf9db98000 r-xp 00000000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13
7fdf9db98000-7fdf9dd98000 ---p 000f2000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13
7fdf9dd98000-7fdf9dd9f000 r--p 000f2000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13
7fdf9dd9f000-7fdf9dda1000 rw-p 000f9000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13
7fdf9dda1000-7fdf9ddb6000 rw-p 00000000 00:00 0
7fdf9ddb6000-7fdf9de38000 r-xp 00000000 08:02 928441                     /lib/libm-2.10.1.so
7fdf9de38000-7fdf9e038000 ---p 00082000 08:02 928441                     /lib/libm-2.10.1.so
7fdf9e038000-7fdf9e039000 r--p 00082000 08:02 928441                     /lib/libm-2.10.1.so
7fdf9e039000-7fdf9e03a000 rw-p 00083000 08:02 928441                     /lib/libm-2.10.1.so
7fdf9e03a000-7fdf9e047000 r-xp 00000000 08:02 37161                      /usr/lib/libgomp.so.1.0.0
7fdf9e047000-7fdf9e246000 ---p 0000d000 08:02 37161                      /usr/lib/libgomp.so.1.0.0
7fdf9e246000-7fdf9e247000 r--p 0000c000 08:02 37161                      /usr/lib/libgomp.so.1.0.0
7fdf9e247000-7fdf9e248000 rw-p 0000d000 08:02 37161                      /usr/lib/libgomp.so.1.0.0Aborted

Re: EPT error (Insufficient image data)

Posted: 2010-03-03T08:20:19-07:00
by magick
If you are running under Linux, download and install the RSVG and RSVG-devel RPMS and rebuild / reinstall ImageMagick. That should fix the problem. In the mean-time we'll add a patch to the ImageMagick internal rendering engine to fix the bug you reported.

Re: EPT error (Insufficient image data)

Posted: 2010-03-03T08:40:54-07:00
by kriks
We already tried to use RSVG but it fails to render some path properly, and if I remember well, the workaround used in this example to transform a CMYK image with a clip-path does not work the same way, so it's safer for us to wait on a bugfix.
(the workaround was found with your help in this topic )

thank you

Re: EPT error (Insufficient image data)

Posted: 2010-05-03T06:36:18-07:00
by kriks
up

we have now a lot of these pictures with the same problem, even with non "too much old Photoshop" (CS3).

is it possible to correct this ? or should we invest in finding a workaround ?


thanks for your answer

Re: EPT error (Insufficient image data)

Posted: 2010-05-07T10:02:24-07:00
by magick
Failure for certain images can be a problem in the image file, in ImageMagick, or in one of the delegate libraries. We'll need a URL to a couple of your images that fail. We need to download them and reproduce the problem before we can track the source of the failure.

Re: EPT error (Insufficient image data)

Posted: 2010-05-10T00:31:27-07:00
by kriks