Page 1 of 1
Cache resources exhausted
Posted: 2008-01-30T15:36:26-07:00
by dognose
Just testing out the new version, and I started getting this new error message.
convert: Cache resources exhausted
Just wondering what it is and how I can avoid it. There are plenty of resources on the machine.
Re: Cache resources exhausted
Posted: 2008-01-30T19:18:01-07:00
by magick
Post the output of this command:
identify -list resource
ImageMagick seems to think you do not have enough disk resource.
Re: Cache resources exhausted
Posted: 2008-01-30T22:37:59-07:00
by dognose
Code: Select all
identify -list resource
File Area Memory Map Disk
------------------------------------------------
768 3.92677gb 2.94508gb 7.85355gb 16eb
does that seem right? did the units of "limit" change?
Re: Cache resources exhausted
Posted: 2008-01-30T22:42:55-07:00
by anthony
Seems right. Just use up memory, when you run out, then try to use a disk cache.
Other options let you limit memory usage so as to switch to disk based image caching sooner.
Re: Cache resources exhausted
Posted: 2008-01-31T07:40:24-07:00
by magick
Currently we're clueless how you are getting the cache resources exhausted message. It should only appear when the disk resource is consumed but you have 16 terabytes available. Check for other versions of ImageMagick on your system. Try removing them and rebuilding/reinstalling the current version. Perhaps you have a structure skew problem that is generating huge numbers in the cache statistics.
Re: Cache resources exhausted
Posted: 2008-01-31T10:18:02-07:00
by dognose
Sorry, I found the exact command that was causing the problem.
convert -limit memory 100 -limit disk 1 -resize 100x100! pencil.png p2.png
convert: Cache resources exhausted `pencil.png'.
convert: IDAT: CRC error `pencil.png'.
convert: Corrupt image `pencil.png'.
(it works fine with out the limits, and it works fine in previous versions)
That means it's running over 100mb of memory and 1 gig of disk?
I did just rebuild this version, so I'm hoping to get it working.
Re: Cache resources exhausted
Posted: 2008-01-31T11:31:38-07:00
by magick
Try this:
- convert -limit memory 100mb -limit disk 1gb -resize 100x100! pencil.png p2.png
Re: Cache resources exhausted
Posted: 2008-01-31T12:07:50-07:00
by dognose
Ah, yes, that's it. so the default units on limit were changed or removed?
thanks.
Re: Cache resources exhausted
Posted: 2008-01-31T18:03:27-07:00
by dognose
Code: Select all
montage: invalid argument for option `400mb': -limit.
So, the -limit settings are not universal for the command line tools?
Re: Cache resources exhausted
Posted: 2008-01-31T18:13:15-07:00
by magick
Sounds like a bug to us. Will have a patch in ImageMagick 6.3.8-3 Beta by tomorrow.