Page 1 of 1

Exception Magick::ErrorResourceLimit

Posted: 2011-04-07T07:37:20-07:00
by javib
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

Re: Exception Magick::ErrorResourceLimit

Posted: 2011-04-07T07:43:52-07:00
by magick
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.

Re: Exception Magick::ErrorResourceLimit

Posted: 2011-04-07T07:53:32-07:00
by javib
--

Re: Exception Magick::ErrorResourceLimit

Posted: 2011-04-11T22:42:22-07:00
by javib
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

Re: Exception Magick::ErrorResourceLimit

Posted: 2011-07-12T02:13:48-07:00
by javib
any idea?

thanks

Javi