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

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


> 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



More information about the vtkusers mailing list