[vtkusers] Computing memory size needed - bad_alloc

Bartosz Wiklak bwiklak at gmail.com
Mon Jun 15 03:36:09 EDT 2009


Hmm, I also found this bug report:
http://www.cmake.org/Bug/view.php?id=6443

On Mon, Jun 15, 2009 at 9:30 AM, Bartosz Wiklak<bwiklak at gmail.com> wrote:
> Hi,
> I'm using vtkFixedPointVolumeRayCastMapper. While scene rendering I'm
> getting bad_alloc exception from
> vtkFixedPointVolumeRayCastMapper::ComputeGradients.
>
> I tried:
>
>                                        try
>                                        {
>                                                myRenderer->window->Render();
>                                        }catch (exception &e)
>                                        {
>                                                myRenderer->renderer3D->RemoveActor(myRenderer->volume3D);
>                                                myRenderer->window->Render();
>
>                                        }
> but pipeline is broken after this.
> How can I estimate memory needed to render scene (not using vtkParallel)?
> How to recover after such bad_alloc exception?
>
> Thx,
> Bartek
>



More information about the vtkusers mailing list