POV-Ray : Newsgroups : povray.beta-test : Out of memory error with media in 3.7b31 (scene works in 3.6) Server Time
5 Oct 2024 15:10:09 EDT (-0400)
  Out of memory error with media in 3.7b31 (scene works in 3.6) (Message 2 to 11 of 11)  
<<< Previous 1 Messages Goto Initial 10 Messages
From: Tom York
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 13 Mar 2009 22:45:00
Message: <web.49bb19c349c22c47d55e4a40@news.povray.org>
CShake <cshake+pov### [at] gmailcom> wrote:
> I've been getting 'Fatal error in renderer: Out of Memory' recently in a
> few of my scenes (in 3.7b31, both in Windows and Linux)

As you've found, it's seemingly triggered by the large number of lights traced
through media in the scene, not media properties directly.

It looks like one of the calls to std::sort in
MediaFunction::ComputeMediaLightInterval is causing a bad_alloc exception to be
thrown, probably due to the use of a fixed number of elements (64) for
LightSourceEntryVector and friends. I haven't spent much time on this but there
are lots of FIXME comments associated with this fixed size so presumably this is
a known (or anticipated) issue.

Doubling the fixed array size universally allows the scene to render, until the
number of lights in the array is doubled in the scene file which brings back
the problem again.

Tom


Post a reply to this message

From: Sven Geier
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 18 May 2009 13:25:01
Message: <web.4a11992a49c22c45b4449250@news.povray.org>
"Tom York" <alp### [at] zubenelgenubi34spcom> wrote:
> CShake <cshake+pov### [at] gmailcom> wrote:
> > I've been getting 'Fatal error in renderer: Out of Memory' recently in a
> > few of my scenes (in 3.7b31, both in Windows and Linux)
>
> As you've found, it's seemingly triggered by the large number of lights traced
> through media in the scene, not media properties directly.
>
> It looks like one of the calls to std::sort in
> MediaFunction::ComputeMediaLightInterval is causing a bad_alloc exception to be
> thrown, probably due to the use of a fixed number of elements (64) for
> LightSourceEntryVector and friends. I haven't spent much time on this but there
> are lots of FIXME comments associated with this fixed size so presumably this is
> a known (or anticipated) issue.
>
> Doubling the fixed array size universally allows the scene to render, until the
> number of lights in the array is doubled in the scene file which brings back
> the problem again.
>
> Tom

Was this ever fixed/corrected/worked around/something-or-other in b32?

I have a scene with a single (area-)light, no media but a whole bunch of objects
(~2500) which renders fine until I make them transparent - at which point I get
that same "out of memory error".

Which I searched on and found this thread...

(By ~2000 or so pretty much every computer in the known universe understood how
to use virtual memory and I thought messages like "out of memory" were an
archaic artifact of the bad old days. In a sense this error message is making
me feel young again... ;-)


Post a reply to this message

From: Sven Geier
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 18 May 2009 13:55:00
Message: <web.4a11a06b49c22c45b4449250@news.povray.org>
"Tom York" <alp### [at] zubenelgenubi34spcom> wrote:
> CShake <cshake+pov### [at] gmailcom> wrote:
> > I've been getting 'Fatal error in renderer: Out of Memory' recently in a
> > few of my scenes (in 3.7b31, both in Windows and Linux)
>
> As you've found, it's seemingly triggered by the large number of lights traced
> through media in the scene, not media properties directly.
>
> It looks like one of the calls to std::sort in
> MediaFunction::ComputeMediaLightInterval is causing a bad_alloc exception to be
> thrown, probably due to the use of a fixed number of elements (64) for
> LightSourceEntryVector and friends. I haven't spent much time on this but there
> are lots of FIXME comments associated with this fixed size so presumably this is
> a known (or anticipated) issue.
>
> Doubling the fixed array size universally allows the scene to render, until the
> number of lights in the array is doubled in the scene file which brings back
> the problem again.
>
> Tom

Was this ever fixed/worked around/eliminated for b32?

I just found this message because I was searching on an "out of memory" error
for a scene with an area light and a lot of semi-transparent objects ...


Post a reply to this message

From: Tom York
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 18 May 2009 14:15:00
Message: <web.4a11a45149c22c47d55e4a40@news.povray.org>
"Sven Geier" <.sven.at.sgeier.dot.net.nospamplease> wrote:
> Was this ever fixed/worked around/eliminated for b32?
>
> I just found this message because I was searching on an "out of memory" error
> for a scene with an area light and a lot of semi-transparent objects ...

As far as I remember the fixed length light source array only affected media.
I've no idea at all if it was fixed in later betas. If this problem you talk
about happens with the latest beta and does not involve media, then I suggest
submitting a minimal scene showing the problem as a new thread.

Tom


Post a reply to this message

From: Thomas de Groot
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 17 Aug 2009 10:57:44
Message: <4a896fe8@news.povray.org>
Ah! got also this renderer out of memory, with media (using the smokegen 
macro by Mikael Carneholm), and with beta 33.

Thomas


Post a reply to this message

From: Tom York
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 17 Aug 2009 18:15:00
Message: <web.4a89d5bb49c22c47d55e4a40@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
> Ah! got also this renderer out of memory, with media (using the smokegen
> macro by Mikael Carneholm), and with beta 33.
>
> Thomas

To the minimalscenemobile!


Post a reply to this message

From: Thomas de Groot
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 18 Aug 2009 10:44:31
Message: <4a8abe4f$1@news.povray.org>
"Tom York" <alp### [at] zubenelgenubi34spcom> schreef in bericht 
news:web.4a89d5bb49c22c47d55e4a40@news.povray.org...
> To the minimalscenemobile!

Yep. I shall boil something down. Already corrected the (ancient) macro to 
method 3 and intervals 1, but still happens. I shall come with something to 
test soon.

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 19 Aug 2009 11:32:12
Message: <4a8c1afc@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> schreef in bericht 
news:4a8abe4f$1@news.povray.org...
>
> "Tom York" <alp### [at] zubenelgenubi34spcom> schreef in bericht 
> news:web.4a89d5bb49c22c47d55e4a40@news.povray.org...
>> To the minimalscenemobile!
>
> Yep. I shall boil something down. Already corrected the (ancient) macro to 
> method 3 and intervals 1, but still happens. I shall come with something 
> to test soon.


...problem is: I cannot get the error again, try what I may... :-(
I leave it for now. My impression tentatively is that my settings for 
smokegen.

Thomas


Post a reply to this message

From: Tom York
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 21 Aug 2009 15:15:00
Message: <web.4a8ef14f49c22c47d55e4a40@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
> "Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> schreef in bericht
> news:4a8abe4f$1@news.povray.org...
> >
> > "Tom York" <alp### [at] zubenelgenubi34spcom> schreef in bericht
> > news:web.4a89d5bb49c22c47d55e4a40@news.povray.org...
> >> To the minimalscenemobile!
> >
> > Yep. I shall boil something down. Already corrected the (ancient) macro to
> > method 3 and intervals 1, but still happens. I shall come with something
> > to test soon.
>
>
> ...problem is: I cannot get the error again, try what I may... :-(
> I leave it for now. My impression tentatively is that my settings for
> smokegen.
>
> Thomas

I'll have a look at the latest source available to me to see if the issue I saw
before has been addressed; I'm well behind the official source now anyway, so
it's a good excuse.

Still, no guarantees; the windows source is apparently on beta 32, so it could
easily have been fixed in 33 or 34 and the reason behind what you're seeing
could be something different.

Tom


Post a reply to this message

From: Thomas de Groot
Subject: Re: Out of memory error with media in 3.7b31 (scene works in 3.6)
Date: 22 Aug 2009 11:03:09
Message: <4a9008ad$1@news.povray.org>
"Tom York" <alp### [at] zubenelgenubi34spcom> schreef in bericht 
news:web.4a8ef14f49c22c47d55e4a40@news.povray.org...
>
> I'll have a look at the latest source available to me to see if the issue 
> I saw
> before has been addressed; I'm well behind the official source now anyway, 
> so
> it's a good excuse.
>
> Still, no guarantees; the windows source is apparently on beta 32, so it 
> could
> easily have been fixed in 33 or 34 and the reason behind what you're 
> seeing
> could be something different.
>
My answer was truncated. I am almost sure that my settings for smokegen 
where causing the error, so as far as that (heavy) use of media is 
concerned, it is not at fault with beta 33.

Thomas


Post a reply to this message

<<< Previous 1 Messages Goto Initial 10 Messages

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