Page 1 of 1

Memory allocation failed when identify icon file

Posted: 2007-06-16T10:52:47-07:00
by sinasalek
Hi,
I have a problem when using this command.
D:\Programs\ImageMagick\identify.exe -verbose "test\acrobat33333.ico"

the error is "Memory allocation failed"
i searched a lot but none of the available solutions didn't solve the
problem.
event using -limit didn't help.
the problem usually occurs when i try to identify icon files with
dimensions more than or equal to 256x256.
here is one of the icons : http://salek.ws/temp/acrobat33333.ico
do u have any idea?

ImageMagick Version : 6.3.4-6 (2007-06-02)
OS : Windows XP 32Bit SP2
RAM : 1GB
CPU : AMD Athlon 64Bit X2
Hard Disk (C): 10GB free space
Hard Disk (D): 7GB free space

here is the output of -debug all:

the debug output was large, because icon file contains multi images. i
think error occurs after processing
128x128 next image. so i copied only logs after that.
the rest is here : http://salek.ws/temp/PowerCmd.txt
the problem is don't how to use this output!
any help appreciated :)

Code: Select all

......
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Exception identify.exe[3772]: cache.c/OpenCache/3338/Exception
  no pixels defined in cache `D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico'
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Exception identify.exe[3772]: icon.c/ReadICONImage/309/Exception
  Memory allocation failed `D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico'
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy 
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 72kb/337.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[17]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 72kb/265.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[16]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 72kb/193.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[15]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 32kb/161.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[14]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 32kb/129.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[13]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 32kb/97.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[12]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 18kb/79.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[11]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 18kb/61.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[10]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 18kb/43.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[9]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 8kb/35.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[8]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 8kb/27.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[7]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 8kb/19.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[6]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 4.5kb/15kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[5]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 4.5kb/10.5kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[4]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 4.5kb/6kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[3]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 2kb/4kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[2]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 2kb/2kb/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[1]
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Resource identify.exe[3772]: resource.c/RelinquishMagickResource/819/Resource
  Memory: 2kb/0b/1.5gb
2007-06-16T20:59:17+03:00 0:01 0.234u 6.3.4 Cache identify.exe[3772]: cache.c/DestroyCacheInfo/2012/Cache
  destroy D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico[0]
identify.exe: Memory allocation failed `D:\Developing\Projects\Web\Sites\Ace Rainbow\site\icon\files\test\acrobat33333.ico'.

Re: Memory allocation failed when identify icon file

Posted: 2007-06-16T15:36:03-07:00
by magick
We have a patch in ImageMagick 6.3.4-10 Beta to fix the problem you reported.

Re: Memory allocation failed when identify icon file

Posted: 2007-06-16T22:52:48-07:00
by sinasalek
magick wrote:We have a patch in ImageMagick 6.3.4-10 Beta to fix the problem you reported.
6.3.4-10 has solved the issue