POV-Ray : Newsgroups : povray.beta-test : Out of memory error with media in 3.7b31 (scene works in 3.6) : Re: Out of memory error with media in 3.7b31 (scene works in 3.6) Server Time
5 Oct 2024 15:07:54 EDT (-0400)
  Re: Out of memory error with media in 3.7b31 (scene works in 3.6)  
From: Sven Geier
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

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