Page 1 of 1

Insufficient memory (case 4) @ error/jpeg.c/JPEGErrorHandler/297

Posted: 2016-03-07T08:51:46-07:00
by davidb2002
My server was recently updated to ImageMagick 6.7.2-7 2015-07-23 Q16. After this, I have noticed a few large files have trouble running some resizing commands which worked fine previously. Upon catching the errors, I get this:

Code: Select all

Insufficient memory (case 4) /my/image/file/big-photo.jpg @ error/jpeg.c/JPEGErrorHandler/297
I take it this implies Imagick doesn't have sufficient memory to run the commands? here is my resource list:

Code: Select all

File         Area       Memory          Map         Disk    Thread         Time
-------------------------------------------------------------------------------
 768     21.123GB    78.687GiB    157.37GiB    unlimited        24    unlimited
As you can see, i've got loads of memory. So, where is the memory bottlneck likely to be?

Re: Insufficient memory (case 4) @ error/jpeg.c/JPEGErrorHandler/297

Posted: 2016-03-07T10:03:19-07:00
by fmw42
Might your /tmp directory be too full?

Might your server have some limit on file size in its Environment variables?

Re: Insufficient memory (case 4) @ error/jpeg.c/JPEGErrorHandler/297

Posted: 2016-03-07T17:08:31-07:00
by magick
The "Insufficient memory (case 4)" exception is returned by the JPEG delegate library, not ImageMagick.