Author Topic: Out of memory error on an images more than 8000x6000px  (Read 3546 times)

Offline StasV

  • Newcomer
  • Posts: 29
Out of memory error on an images more than 8000x6000px
« on: 2010 October 31 03:28:24 »
Hello!
PI gives out an OUT OF MEMORY error at any operations with the image more than  approximately 8000x6000px
For example, simple operation Pixel Math gets ea error.
When I reduce the image approximately by 10-15 %, all works normally and  PI use  less than 500MB of memory.
Each time, I have a lot of free memory

I made the test. Change memory in the computer: 1G, 2G, 4G
The error does not depend on a real memory.

System:
Win XP 4G Ram
PI 1.06.01.0625

Logs:

PixelMath: Processing view: m2_clone
Writing swap files...
43.92 MB/s
*** Error: Out of memory
Reading swap files...
635.84 MB/s
<* failed *>


StarAlignment: Processing view: m2
m1:
*** Error: Out of memory
<* failed *>
« Last Edit: 2010 October 31 08:04:04 by StasV »
FSQ106ED, ASA DDM60 mount, STL11k,  HomeDome HD6
Remote control observatory, San Pedro De Atacama, Chile. In collaboration with Yuri Beletsky

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Out of memory error on a images more than 8000x6000px
« Reply #1 on: 2010 October 31 06:15:11 »
Hi,

you are not alone with this problem on 32 bit version of Windows, just search for "out of memory" in this forum.

Doing the math, your image should consume something like 550 MBytes=8000pxels*6000pixels*3channels*4bytes, so you would expect that this fits into your RAM. But since you are using a 32 bit OS, Windows at most will give you 3GB (sometimes only 2GB depending on your BIOS) and much of this is fragmented into smaller pieces.

For me, the situation got much better when I changed to Win7 64 bits, which would by my recommendation for you.

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline StasV

  • Newcomer
  • Posts: 29
Re: Out of memory error on a images more than 8000x6000px
« Reply #2 on: 2010 October 31 07:37:46 »
Thanks!
Now I think like you more often

But I do not understand, why there is a threshold size of the image?

I increase the size of the image gradually. And  supervise memory, PI used and OS free memory 
The OS System has a lot of free memory.
Since some size of the image, I get an error suddenly.
On the previous step before a threshold, OS has a lot of free memory
FSQ106ED, ASA DDM60 mount, STL11k,  HomeDome HD6
Remote control observatory, San Pedro De Atacama, Chile. In collaboration with Yuri Beletsky

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Out of memory error on an images more than 8000x6000px
« Reply #3 on: 2010 October 31 12:07:45 »
This is also what I saw: I did not get memory despite the fact that Task manager displayed plenty of emtpy space. The explanation given by Juan usually is that there is still much free space, but no single continuous piece as required by PI. After seeing that Win7-x64 (with the same amount of physical memory) works so much better, I think that this explanation is probably correct.

So if your hardware and your budget permits: Invest in a Win7-x64 license @120$ or so (or go to Linux, as many people on this forum would probably recommend).


Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)