[vtkusers] Fwd: [Insight-users] std::bad_alloc on rendering with vtkImagePlaneWidget

John Drescher drescherjm at gmail.com
Tue Oct 6 09:40:40 EDT 2009


No, sorry that was not the trick

-----Ursprüngliche Nachricht-----
Von: John Drescher [mailto:drescherjm at gmail.com]
Gesendet: Dienstag, 06. Oktober 2009 15:19
An: Lodron, Gerald; VTK
Betreff: Re: [Insight-users] std::bad_alloc on rendering with
vtkImagePlaneWidget

> I debugged it, the exception comes at vtkOpenGLTexture.cxx at following line
>
> tptr = p = new unsigned char[xsize*ysize*bpp];
>
> Where xsize is -858993460, ysize is -858993460 and bpp is 4. That seems that i need a few more RAMs,lol
>

I believe these are 0xcccccccc or are uninitialized variables.

You may need to do an Update on your image before you do

planeWidgetX->SetInput(vtkImage);

John



-- 
John M. Drescher



More information about the vtkusers mailing list