Page 1 of 1

Cache resource exhausted IM 6.5.2-5 2011-04-26 Q16 OpenMP

Posted: 2013-03-11T09:03:23-07:00
by v.svetoslavov
Hi

I have the following command to convert a tif of approximately 20000 x 20000 pixels.

Code: Select all

convert -quality 85 -compress LZW myfile.tif -profile (...path)/sRGB.icm -intent Relative -black-point-compensation -interpolate bilinear -scale 683x700! -strip JPG:~/test.jpg
As is visible, the command is executed without any limit parameters.
Available resources reported from identify -list resource is as follows:

Code: Select all

File       Area     Memory        Map       Disk
------------------------------------------------
 768   12.033gb   9.0251gb   24.067gb       16eb
The command on one specific system results in Cache resource exhausted error, although no limit parameters are present. I also did try to limit memory (-limit memory 16MB) or area (-limit area 0), as suggested in ImageMagick's architecture page. The error remains the same.

Can you suggest any reasons why this happens and how it can be avoided (workarounds). Upgrading ImageMagick at this point is not an option, I will appreciate any suggestions to handle the problem with the imagemagick version provided.

This is a Linux installation of ImageMagick. If more info is necessary regarding how it is compiled or what it has available I will try to provide it, but please tell me what commands to execute in order to obtain the info.
I will try to acquire permission to attach the image to the thread

I apologize if this question was answered somewhere else, if so, I haven't been able to find it.

Thanks in advance!

Best Regards,
V. Svetoslavov

Re: Cache resource exhausted IM 6.5.2-5 2011-04-26 Q16 OpenM

Posted: 2013-03-11T09:42:13-07:00
by magick
To find out why its failing, add -debug cache to your command line. One workaround may be to use -define registry:temporary-path=/data/tmp, where /data/tmp is a path where there is plenty of free temporary disk space. Use something like
  • convert -limit memory 2MB -limit map 4mb -define registry:temporary-path=/data/tmp ...
If your version of ImageMagick does not support the -define registry:temporary-path option, use the MAGICK_TMPDIR environment variable instead.

Re: Cache resource exhausted IM 6.5.2-5 2011-04-26 Q16 OpenM

Posted: 2013-03-12T00:53:36-07:00
by v.svetoslavov
Thanks for the quick reply!

I will try to check the workarounds provided ASAP and will add whatever outcome I get.