Exception Magick::ErrorResourceLimit

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
javib
Posts: 4
Joined: 2011-04-07T05:52:47-07:00
Authentication code: 8675308

Exception Magick::ErrorResourceLimit

Post by javib » 2011-04-07T07:37:20-07:00

Hi,

I'm working with Magick++ and Windows XP 32bits, 2Gb RAM, 70Gb HD...

When I use getPixels from a big image (1559x25937) I'have the next exception "Magick::ErrorResourceLimit"

How and Where can I setting limits? Magick++ take limits from configuration files or environment variables on windows xp? I modified configuration files (configure.xml and policy.xml) but this don't work.

thanks

Javi

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

Re: Exception Magick::ErrorResourceLimit

Post by magick » 2011-04-07T07:43:52-07:00

Are you trying to getPixels() for the entire image? If so you would likely get a resource limit exception. Instead try grabbing a scanline at a time. Otherwise see http://www.imagemagick.org/script/resources.php. Try setting the area limit to 0 to force all pixels to disk to reduce the memory requirements. If that fails, set MAGICK_DEBUG to cache to track how ImageMagick is allocating your image resources.

javib
Posts: 4
Joined: 2011-04-07T05:52:47-07:00
Authentication code: 8675308

Re: Exception Magick::ErrorResourceLimit

Post by javib » 2011-04-07T07:53:32-07:00

--

javib
Posts: 4
Joined: 2011-04-07T05:52:47-07:00
Authentication code: 8675308

Re: Exception Magick::ErrorResourceLimit

Post by javib » 2011-04-11T22:42:22-07:00

When the process start writing to disk crash wih exception memory allocation, but resources isn't full (view log).

[IMG=http://img849.imageshack.us/img849/5236/errorzv.jpg][/IMG]

why do it write to disk?

thanks

Javo

javib
Posts: 4
Joined: 2011-04-07T05:52:47-07:00
Authentication code: 8675308

Re: Exception Magick::ErrorResourceLimit

Post by javib » 2011-07-12T02:13:48-07:00

any idea?

thanks

Javi

Post Reply