[vtkusers] Example Segfaults

Shawn Waldon swaldon at cs.unc.edu
Wed Jun 19 16:06:24 EDT 2013


Hello all,

I was trying to compile and run this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows
on Mac OSX 10.8, linking against vtk 5.10.1.  I got a segfault when I tried
to run it.  Here is the gdb stack trace:
(gdb) where
#0  0x00007fff8ace78b5 in glGetString ()
#1  0x00000001005d60db in vtkFrameBufferObject::IsSupported
(win=0x1031218f0) at
/Users/swaldon/src/VTK/Rendering/vtkFrameBufferObject.cxx:60
#2  0x0000000100005776 in main ()

If I comment out the line:

bool supported = vtkFrameBufferObject::IsSupported(renderWindow); //
adapted from line 182 of vtkShadowMapPass.cxx

and replace it with:
bool supported = true;
it works fine, but this call looks important and I thought I should at
least report the issue somewhere.

Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130619/643c3a53/attachment.htm>


More information about the vtkusers mailing list