EPT error (Insufficient image data)

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

Re: EPT error (Insufficient image data)

Post by magick »

Take PM673007b.eps, for example. The image claims the emedded Postscript image is 143833 bytes whereas there are only 143832 bytes in the file. ImageMagick properly alerts you to the problem with a warning but goes ahead and renders the Postscript as expected. We're using ImageMagick 6.6.1-7.
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: EPT error (Insufficient image data)

Post by kriks »

Hi,

we've upgraded to IM6.6.1-7, and it seemed to work fine until a crash today :

Code: Select all

convert: Memory allocation failed `' @ fatal/draw.c/DrawImage/3116.
here is the exact command line that fails :

Code: Select all

convert -density 300 131131.eps -profile Photoshop5DefaultCMYK.icc -profile AdobeRGB1998.icc +clip-path '#1' -fuzz 100% -transparent white -fuzz 0% -strip -quiet -format JPEG -compress JPEG -quality 80 -type Optimize -depth 8 -resize 135x120 -flatten 131131.jpg
131131.eps : http://dl.free.fr/ogl9a2BsJ/131131.eps


And doing the exact same command with 130532.eps gives a segfault

130532.eps : http://dl.free.fr/o9VssDzGQ/130532.eps


thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EPT error (Insufficient image data)

Post by magick »

We can reproduce the problem you posted and have a patch for it in ImageMagick 6.6.1-8 Beta available by sometime tomorrow. Thanks.
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: EPT error (Insufficient image data)

Post by kriks »

thanks for the new version.

We still have crashes, but more verbose :

Code: Select all

# convert -density 300 131131.eps -profile Photoshop5DefaultCMYK.icc -profile AdobeRGB1998.icc +clip-path '#1' -fuzz 100% -transparent white -fuzz 0% -strip -quiet -format JPEG -compress JPEG -quality 80 -type Optimize -depth 8 -resize 135x120 -flatten 131131.jpg                                  
attribute not recognized: O                                                                                                  
convert: Memory allocation failed `' @ fatal/draw.c/DrawImage/3114.                                                          
*** glibc detected *** convert: corrupted double-linked list: 0x0000000000ff8f40 ***                                         
======= Backtrace: =========                                                                                                 
/lib/libc.so.6[0x7f66ceb27dd6]                                                                                               
/lib/libc.so.6[0x7f66ceb281ba]                                                                                               
/lib/libc.so.6[0x7f66ceb29518]                                                                                               
/lib/libc.so.6(cfree+0x6c)[0x7f66ceb2c70c]                                                                                   
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(RelinquishMagickMemory+0xf)[0x7f66cf70a72f]                         
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DestroyStringInfo+0x4e)[0x7f66cf7656fe]                             
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DestroySplayTree+0x5d)[0x7f66cf75a31d]                              
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DestroyImageProfiles+0x15)[0x7f66cf7283a5]                          
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DestroyImage+0x101)[0x7f66cf6f7c41]                                 
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DestroyImageList+0x38)[0x7f66cf702b08]                              
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7f66cf742cc9]                                                     
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DestroySplayTree+0x5d)[0x7f66cf75a31d]                              
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(RegistryComponentTerminus+0x33)[0x7f66cf742e03]                     
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(MagickCoreTerminus+0x6a)[0x7f66cf709fca]                            
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7f66cf6d758c]                                                     
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(CatchException+0x80)[0x7f66cf6d7ca0]                                
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DrawImage+0x5ce3)[0x7f66cf6b9b33]                                   
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7f66cf7ed616]                                                     
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(ReadImage+0x1a2)[0x7f66cf677782]                                    
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7f66cf822ea7]                                                     
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(ReadImage+0x1a2)[0x7f66cf677782]                                    
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(BlobToImage+0x1bf)[0x7f66cf649adf]                                  
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(ClipImagePath+0xf0)[0x7f66cf6fa3e0]                                 
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(MogrifyImage+0x3b61)[0x7f66cf36b121]                                
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(MogrifyImages+0xe9)[0x7f66cf36da49]                                 
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(ConvertImageCommand+0xcbd)[0x7f66cf2f6ecd]                          
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(MagickCommandGenesis+0x1dd)[0x7f66cf36726d]                         
convert[0x400af5]                                                                                                            
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f66cead0abd]                                                                       
convert[0x4009d9]                                                                                                            
======= Memory map: ========                                                                                                 
00400000-00401000 r-xp 00000000 08:02 101074                             /opt/applis/ImageMagick-6.6.1-8-1/bin/convert       
00601000-00602000 r--p 00001000 08:02 101074                             /opt/applis/ImageMagick-6.6.1-8-1/bin/convert       
00602000-00603000 rw-p 00002000 08:02 101074                             /opt/applis/ImageMagick-6.6.1-8-1/bin/convert       
00e60000-01163000 rw-p 00000000 00:00 0                                  [heap]                                              
7f66b8000000-7f66b8021000 rw-p 00000000 00:00 0                                                                              
7f66b8021000-7f66bc000000 ---p 00000000 00:00 0                                                                              
7f66bd551000-7f66c0d2d000 rw-p 00000000 00:00 0                                                                              
7f66c1863000-7f66c1864000 ---p 00000000 00:00 0                                                                              
7f66c1864000-7f66c2064000 rw-p 00000000 00:00 0                                                                              
7f66c2064000-7f66c2065000 ---p 00000000 00:00 0                                                                              
7f66c2065000-7f66c2865000 rw-p 00000000 00:00 0                                                                              
7f66c2865000-7f66c2866000 ---p 00000000 00:00 0                                                                              
7f66c2866000-7f66c3066000 rw-p 00000000 00:00 0                                                                              
7f66c3066000-7f66c3067000 ---p 00000000 00:00 0                                                                              
7f66c3067000-7f66c3867000 rw-p 00000000 00:00 0                                                                              
7f66c3867000-7f66c3868000 ---p 00000000 00:00 0                                                                              
7f66c3868000-7f66c4068000 rw-p 00000000 00:00 0                                                                              
7f66c4068000-7f66c4069000 ---p 00000000 00:00 0                                                                              
7f66c4069000-7f66c4869000 rw-p 00000000 00:00 0                                                                              
7f66c4869000-7f66c486a000 ---p 00000000 00:00 0                                                                              
7f66c486a000-7f66c506a000 rw-p 00000000 00:00 0                                                                              
7f66c5e61000-7f66c963d000 rw-p 00000000 00:00 0                                                                              
7f66c963d000-7f66c9642000 r-xp 00000000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0                          
7f66c9642000-7f66c9841000 ---p 00005000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0                          
7f66c9841000-7f66c9842000 rw-p 00004000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0                          
7f66c9842000-7f66c9849000 r-xp 00000000 08:02 928453                     /lib/librt-2.10.1.so                                
7f66c9849000-7f66c9a48000 ---p 00007000 08:02 928453                     /lib/librt-2.10.1.so                                
7f66c9a48000-7f66c9a49000 r--p 00006000 08:02 928453                     /lib/librt-2.10.1.so                                
7f66c9a49000-7f66c9a4a000 rw-p 00007000 08:02 928453                     /lib/librt-2.10.1.so                                
7f66c9a4a000-7f66c9a65000 r-xp 00000000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                            
7f66c9a65000-7f66c9c64000 ---p 0001b000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                            
7f66c9c64000-7f66c9c65000 r--p 0001a000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                            
7f66c9c65000-7f66c9c66000 rw-p 0001b000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                            
7f66c9c66000-7f66c9c69000 r-xp 00000000 08:02 928503                     /lib/libuuid.so.1.3.0                               
7f66c9c69000-7f66c9e69000 ---p 00003000 08:02 928503                     /lib/libuuid.so.1.3.0                               
7f66c9e69000-7f66c9e6a000 r--p 00003000 08:02 928503                     /lib/libuuid.so.1.3.0                               
7f66c9e6a000-7f66c9e6b000 rw-p 00004000 08:02 928503                     /lib/libuuid.so.1.3.0                               
7f66c9e6b000-7f66c9e72000 r-xp 00000000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                       
7f66c9e72000-7f66ca071000 ---p 00007000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                       
7f66ca071000-7f66ca072000 r--p 00006000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                       
7f66ca072000-7f66ca073000 rw-p 00007000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                       
7f66ca073000-7f66ca075000 r-xp 00000000 08:02 36672                      /usr/lib/libXau.so.6.0.0                            
7f66ca075000-7f66ca274000 ---p 00002000 08:02 36672                      /usr/lib/libXau.so.6.0.0                            
7f66ca274000-7f66ca275000 r--p 00001000 08:02 36672                      /usr/lib/libXau.so.6.0.0                            
7f66ca275000-7f66ca276000 rw-p 00002000 08:02 36672                      /usr/lib/libXau.so.6.0.0                            
7f66ca276000-7f66ca28c000 r-xp 00000000 08:02 928479                     /lib/libgcc_s.so.1                                  
7f66ca28c000-7f66ca48b000 ---p 00016000 08:02 928479                     /lib/libgcc_s.so.1                                  
7f66ca48b000-7f66ca48c000 r--p 00015000 08:02 928479                     /lib/libgcc_s.so.1                                  
7f66ca48c000-7f66ca48d000 rw-p 00016000 08:02 928479                     /lib/libgcc_s.so.1                                  
7f66ca48d000-7f66ca57f000 r-xp 00000000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                        
7f66ca57f000-7f66ca77f000 ---p 000f2000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                        
7f66ca77f000-7f66ca786000 r--p 000f2000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                        
7f66ca786000-7f66ca788000 rw-p 000f9000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                        
7f66ca788000-7f66ca79d000 rw-p 00000000 00:00 0 Aborted

Code: Select all

# convert -density 300 130532.eps -profile Photoshop5DefaultCMYK.icc -profile AdobeRGB1998.icc +clip-path '#1' -fuzz 100% -transparent white -fuzz 0% -strip -quiet -format JPEG -compress JPEG -quality 80 -type Optimize -depth 8 -resize 135x120 -flatten 130532.jpg                              
*** glibc detected *** convert: double free or corruption (out): 0x0000000001d662d0 ***                                  
======= Backtrace: =========                                                                                             
/lib/libc.so.6[0x7feb56d59dd6]                                                                                           
/lib/libc.so.6(cfree+0x6c)[0x7feb56d5e70c]                                                                               
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(RelinquishMagickMemory+0xf)[0x7feb5793c72f]                     
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7feb578dc1dc]                                                 
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(DrawImage+0x3a49)[0x7feb578e9899]                               
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7feb57a1f616]                                                 
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(ReadImage+0x1a2)[0x7feb578a9782]                                
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3[0x7feb57a54ea7]                                                 
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(ReadImage+0x1a2)[0x7feb578a9782]                                
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(BlobToImage+0x1bf)[0x7feb5787badf]                              
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickCore.so.3(ClipImagePath+0xf0)[0x7feb5792c3e0]                             
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(MogrifyImage+0x3b61)[0x7feb5759d121]                            
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(MogrifyImages+0xe9)[0x7feb5759fa49]                             
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(ConvertImageCommand+0xcbd)[0x7feb57528ecd]                      
/opt/applis/ImageMagick-6.6.1-8-1/lib/libMagickWand.so.3(MagickCommandGenesis+0x1dd)[0x7feb5759926d]                     
convert[0x400af5]                                                                                                        
/lib/libc.so.6(__libc_start_main+0xfd)[0x7feb56d02abd]                                                                   
convert[0x4009d9]                                                                                                        
======= Memory map: ========                                                                                             
00400000-00401000 r-xp 00000000 08:02 101074                             /opt/applis/ImageMagick-6.6.1-8-1/bin/convert   
00601000-00602000 r--p 00001000 08:02 101074                             /opt/applis/ImageMagick-6.6.1-8-1/bin/convert   
00602000-00603000 rw-p 00002000 08:02 101074                             /opt/applis/ImageMagick-6.6.1-8-1/bin/convert   
01b67000-01e21000 rw-p 00000000 00:00 0                                  [heap]                                          
7feb40000000-7feb40021000 rw-p 00000000 00:00 0                                                                          
7feb40021000-7feb44000000 ---p 00000000 00:00 0                                                                          
7feb442c7000-7feb483da000 rw-p 00000000 00:00 0                                                                          
7feb48f10000-7feb48f11000 ---p 00000000 00:00 0                                                                          
7feb48f11000-7feb49711000 rw-p 00000000 00:00 0                                                                          
7feb49711000-7feb49712000 ---p 00000000 00:00 0                                                                          
7feb49712000-7feb49f12000 rw-p 00000000 00:00 0                                                                          
7feb49f12000-7feb49f13000 ---p 00000000 00:00 0                                                                          
7feb49f13000-7feb4a713000 rw-p 00000000 00:00 0                                                                          
7feb4a713000-7feb4a714000 ---p 00000000 00:00 0                                                                          
7feb4a714000-7feb4af14000 rw-p 00000000 00:00 0                                                                          
7feb4af14000-7feb4af15000 ---p 00000000 00:00 0                                                                          
7feb4af15000-7feb4b715000 rw-p 00000000 00:00 0                                                                          
7feb4b715000-7feb4b716000 ---p 00000000 00:00 0                                                                          
7feb4b716000-7feb4bf16000 rw-p 00000000 00:00 0                                                                          
7feb4bf16000-7feb4bf17000 ---p 00000000 00:00 0                                                                          
7feb4bf17000-7feb4c717000 rw-p 00000000 00:00 0                                                                          
7feb4d75c000-7feb5186f000 rw-p 00000000 00:00 0                                                                          
7feb5186f000-7feb51874000 r-xp 00000000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0                      
7feb51874000-7feb51a73000 ---p 00005000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0                      
7feb51a73000-7feb51a74000 rw-p 00004000 08:02 36674                      /usr/lib/libXdmcp.so.6.0.0                      
7feb51a74000-7feb51a7b000 r-xp 00000000 08:02 928453                     /lib/librt-2.10.1.so                            
7feb51a7b000-7feb51c7a000 ---p 00007000 08:02 928453                     /lib/librt-2.10.1.so                            
7feb51c7a000-7feb51c7b000 r--p 00006000 08:02 928453                     /lib/librt-2.10.1.so                            
7feb51c7b000-7feb51c7c000 rw-p 00007000 08:02 928453                     /lib/librt-2.10.1.so                            
7feb51c7c000-7feb51c97000 r-xp 00000000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                        
7feb51c97000-7feb51e96000 ---p 0001b000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                        
7feb51e96000-7feb51e97000 r--p 0001a000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                        
7feb51e97000-7feb51e98000 rw-p 0001b000 08:02 36676                      /usr/lib/libxcb.so.1.1.0                        
7feb51e98000-7feb51e9b000 r-xp 00000000 08:02 928503                     /lib/libuuid.so.1.3.0                           
7feb51e9b000-7feb5209b000 ---p 00003000 08:02 928503                     /lib/libuuid.so.1.3.0                           
7feb5209b000-7feb5209c000 r--p 00003000 08:02 928503                     /lib/libuuid.so.1.3.0                           
7feb5209c000-7feb5209d000 rw-p 00004000 08:02 928503                     /lib/libuuid.so.1.3.0                           
7feb5209d000-7feb520a4000 r-xp 00000000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                   
7feb520a4000-7feb522a3000 ---p 00007000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                   
7feb522a3000-7feb522a4000 r--p 00006000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                   
7feb522a4000-7feb522a5000 rw-p 00007000 08:02 37207                      /usr/lib/libpathplan.so.4.0.0                   
7feb522a5000-7feb522a7000 r-xp 00000000 08:02 36672                      /usr/lib/libXau.so.6.0.0                        
7feb522a7000-7feb524a6000 ---p 00002000 08:02 36672                      /usr/lib/libXau.so.6.0.0                        
7feb524a6000-7feb524a7000 r--p 00001000 08:02 36672                      /usr/lib/libXau.so.6.0.0                        
7feb524a7000-7feb524a8000 rw-p 00002000 08:02 36672                      /usr/lib/libXau.so.6.0.0                        
7feb524a8000-7feb524be000 r-xp 00000000 08:02 928479                     /lib/libgcc_s.so.1                              
7feb524be000-7feb526bd000 ---p 00016000 08:02 928479                     /lib/libgcc_s.so.1                              
7feb526bd000-7feb526be000 r--p 00015000 08:02 928479                     /lib/libgcc_s.so.1                              
7feb526be000-7feb526bf000 rw-p 00016000 08:02 928479                     /lib/libgcc_s.so.1                              
7feb526bf000-7feb527b1000 r-xp 00000000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                    
7feb527b1000-7feb529b1000 ---p 000f2000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                    
7feb529b1000-7feb529b8000 r--p 000f2000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                    
7feb529b8000-7feb529ba000 rw-p 000f9000 08:02 33920                      /usr/lib/libstdc++.so.6.0.13                    
7feb529ba000-7feb529cf000 rw-p 00000000 00:00 0                                                                          
7feb529cf000-7feb52a51000 r-xp 00000000 08:02 928441                     /lib/libm-2.10.1.so                             
7feb52a51000-7feb52c51000 ---p 00082000 08:02 928441                     /lib/libm-2.10.1.so                             
7feb52c51000-7feb52c52000 r--p 00082000 08:02 928441                     /lib/libm-2.10.1.so                             
7feb52c52000-7feb52c53000 rw-p 00083000 08:02 928441                     /lib/libm-2.10.1.so                             
7feb52c53000-7feb52c60000 r-xp 00000000 08:02 37161                      /usr/lib/libgomp.so.1.0.0                       
7feb52c60000-7feb52e5f000 ---p 0000d000 08:02 37161                      /usr/lib/libgomp.so.1.0.0                       
7feb52e5f000-7feb52e60000 r--p 0000c000 08:02 37161                      /usr/lib/libgomp.so.1.0.0 Aborted
any thought ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EPT error (Insufficient image data)

Post by magick »

We implemented the patch incorrectly. We fixed it in ImageMagick 6.6.1-9 Beta available by sometime tomorrow. Thanks.
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: EPT error (Insufficient image data)

Post by kriks »

thanks for this new version.

Tests are OK, a full process is currently running, to see if everything is running well.
I will tell you later.
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: EPT error (Insufficient image data)

Post by kriks »

great, the full process has been tested with success :D

it's going in production today, thanks for your reactivity
kriks
Posts: 114
Joined: 2008-01-04T05:52:03-07:00

Re: EPT error (Insufficient image data)

Post by kriks »

everything worked as expected.

a big THANKS to you!
Post Reply