POV-Ray : Newsgroups : povray.general : "out of memory" error during render in RC2 Server Time
26 Nov 2024 09:52:55 EST (-0500)
  "out of memory" error during render in RC2 (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: stevenvh
Subject: "out of memory" error during render in RC2
Date: 9 Jan 2011 11:25:00
Message: <web.4d29e0d04e3204bc0721a1d0@news.povray.org>
Hi,
I'm trying to render an image at 19050x7620 resolution in v3.7 RC2. The image
has radiosity, so the rendering takes some iterations. After some 40% of the
last iteration (pixel level) it stops with an "out of memory" error.
Is there a way to increase memory, like by some parameter in an ini-file, so I
can render the image completely?
TIA
Steven

I'm running v3.7 RC2 under Windows XP on a 4GB RAM machine.


Post a reply to this message

From: stevenvh
Subject: Re: "out of memory" error during render in RC2
Date: 9 Jan 2011 11:30:01
Message: <web.4d29e1a7aa4d819dc0721a1d0@news.povray.org>
"stevenvh" <nomail@nomail> wrote:
> I'm running v3.7 RC2 under Windows XP on a 4GB RAM machine.

Correction: that's 3GB of RAM


Post a reply to this message

From: Chris Cason
Subject: Re: "out of memory" error during render in RC2
Date: 9 Jan 2011 11:30:02
Message: <4d29e28a@news.povray.org>
On 10/01/2011 03:22, stevenvh wrote:
> Hi,
> I'm trying to render an image at 19050x7620 resolution in v3.7 RC2. The image
> has radiosity, so the rendering takes some iterations. After some 40% of the
> last iteration (pixel level) it stops with an "out of memory" error.
> Is there a way to increase memory, like by some parameter in an ini-file, so I
> can render the image completely?
> TIA
> Steven
> 
> I'm running v3.7 RC2 under Windows XP on a 4GB RAM machine.

RC2 has a memory indicator in the status bar just to the right of the
messages. Did you happen to notice what that was showing during the render
(especially towards the end?).

I probably ought to add code to print the memory stats even if a render
fails; currently, they're only printed if it succeeds. In cases like this
it would definitely have been worth having this info as I can't say without
knowing how much of your machine's physical resources it was using.

-- Chris


Post a reply to this message

From: stevenvh
Subject: Re: "out of memory" error during render in RC2
Date: 9 Jan 2011 12:25:01
Message: <web.4d29ee51aa4d819dc0721a1d0@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
>
> RC2 has a memory indicator in the status bar just to the right of the
> messages. Did you happen to notice what that was showing during the render
> (especially towards the end?).
>
> I probably ought to add code to print the memory stats even if a render
> fails; currently, they're only printed if it succeeds. In cases like this
> it would definitely have been worth having this info as I can't say without
> knowing how much of your machine's physical resources it was using.
>


Thanks for the reply, Chris.

No, I never took note of the memory indicator before. Anyway, this render had
been running for 6+ hours, and I wasn't always near my PC.
I'll restart the render tomorrow and try to monitor it.

I agree about printing the memory stats. I would think it's of little use if
everything went well, but be especially useful in case of errors.


Post a reply to this message

From: stevenvh
Subject: Re: "out of memory" error during render in RC2
Date: 9 Jan 2011 13:30:01
Message: <web.4d29fd82aa4d819dc0721a1d0@news.povray.org>
The .pov-state file after the error is 1.2GB. Is that an indication?


Post a reply to this message

From: Chris Cason
Subject: Re: "out of memory" error during render in RC2
Date: 9 Jan 2011 13:34:20
Message: <4d29ffac@news.povray.org>
On 10/01/2011 05:25, stevenvh wrote:
> The .pov-state file after the error is 1.2GB. Is that an indication?

no, unfortunately. however, do keep in mind that you can resume a render
using that file (radiosity info that was not saved separately would need to
be re-calculated though).

-- Chris


Post a reply to this message

From: stevenvh
Subject: Re: "out of memory" error during render in RC2
Date: 10 Jan 2011 08:45:00
Message: <web.4d2b0d41aa4d819dc0721a1d0@news.povray.org>
I captured the complete error message from yesterday's crash. I thought this
might be interesting as well:

**************************************************
Memory allocation failure exception thrown at base\povmscpp.cpp line 1908.
POVMSAttr_Set failed, out of memory
Memory allocation failure exception thrown at base\povmscpp.cpp line 1908.
Fatal error in renderer: Out of memory.
Render failed
**************************************************

I managed to trace today's rendering until the fatal error. I get the same
errors except that the POVMSAttr_Set line is missing.

Memory use:
In the last iteration (pixel level) stable at around 980MB until 25% is
rendered, then it starts decreasing until it is 560MB just before fatal error.
After it indicates 430MB (FWIW).

I'm running this on a quad-core Phenom 9500, which to my surprise was only ~18%
loaded, load spread evenly over the 4 cores. Rest of the time idle. Shouldn't
POV-Ray use close to 100% of cycles?


Post a reply to this message

From: stevenvh
Subject: Re: "out of memory" error during render in RC2
Date: 10 Jan 2011 12:35:00
Message: <web.4d2b4264aa4d819dc0721a1d0@news.povray.org>
The scene in my test had 71000 objects. To know if the number of objects is
relevant in this or not, I retried with just simple 3 objects. The result is the
same, at the exact same position: 43% in the final iteration.
Are there people who successfully managed to render high resolution images in
RC2, in the order of 100 million pixels?


Post a reply to this message

From: Le Forgeron
Subject: Re: "out of memory" error during render in RC2
Date: 10 Jan 2011 15:48:19
Message: <4d2b7093$1@news.povray.org>
Le 10/01/2011 18:31, stevenvh nous fit lire :
> Are there people who successfully managed to render high resolution images in
> RC2, in the order of 100 million pixels?
> 
> 
> 

Yes.
ovus.png PNG 19050x7620 19050x7620+0+0 8-bit DirectClass 5.659MB

Finite Objects:            4
Infinite Objects:          0
Light Sources:             1
Total:                     5

Done with Povray 3.7RC2 on Ubuntu(10.10) 64 bits, with enough disk & memory.
 ( povray ovus.pov +W19050 +H7620 +RP0 +RS1 -A )

Note: Despite the number of threads (-WT) by default, after a quick
start, there is mainly one core at 100% and the others off, due probably
to I/O to disk.


Post a reply to this message

From: stevenvh
Subject: Re: "out of memory" error during render in RC2
Date: 11 Jan 2011 05:00:01
Message: <web.4d2c29daaa4d819dc0721a1d0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 10/01/2011 18:31, stevenvh nous fit lire :
> > Are there people who successfully managed to render high resolution images in
> > RC2, in the order of 100 million pixels?
> >
> >
> >
>
> Yes.
> ovus.png PNG 19050x7620 19050x7620+0+0 8-bit DirectClass 5.659MB
>
> Finite Objects:            4
> Infinite Objects:          0
> Light Sources:             1
> Total:                     5
>
> Done with Povray 3.7RC2 on Ubuntu(10.10) 64 bits, with enough disk & memory.
>  ( povray ovus.pov +W19050 +H7620 +RP0 +RS1 -A )
>

Merci, Le Forgeron.
Maybe the fact that you can complete the rendering has to do with yours being
the 64-bit version, while mine is 32-bits.


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.