View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

stsdas error: out of memory

Arp wrote on Jun 25, 2009

Hi!

Im trying to filter a relatively big mosaic, something around 16000 x 12000 pixels. When I start the adaptive task, it says "PANIC in `/iraf/extern/stsdas/bin.suse/x_restore.e': Memory has been corrupted
ERROR: Out of memory"

Im running on a Intel Q6600 with 4 GB Ram.

Is there any way to somehow use disk space as memory? Or is there another possibility to somehow avoid this?

Mike Fitzpatrick wrote on Jun 25, 2009

There are two error messages here: The 'memory corrupted' usually indicates a coding problem of some kind, i.e. an array overflow that corrupted memory. STScI would have to debug this and might need your parameters or some way to reproduce the problem to properly track it down.

The second error is "out of memory" and I think is really the issue: Your image is ~768MB and the ADAPTIVE task allocates 5 full images (>3.5GB) as work space. So, not only does this exceed the 32-bit restriction currently in the system, but may also be more than your process limit allows. There are workarounds for the second thing, but the task would need to be rewritten to use less memory. I don't really know of an equivalent filtering task, sorry.

My only suggestion is to try to process the image in smaller pieces and then recombine it later. Hope this helps.

-Mike

Last post on Jun 25, 2009