[vtkusers] vtkImageViewer buggy?

Joe Murray jmurray at agyinc.com
Mon Apr 9 16:01:44 EDT 2001


I'm running vtk-3.1-731N on Linux through Python.

I get a seg fault using the following code:

.
.
.
# import vtk libraries
import sys
from libVTKCommonPython import *
from libVTKGraphicsPython import *
from libVTKImagingPython import *

# make a TIFF reader and read in the input data
reader = vtkTIFFReader()
reader.SetFileName(sys.argv[1])

# view the image
viewer = vtkImageViewer()
viewer.SetInput(reader.GetOutput())
viewer.Render()
.
.
.

(gdb) core-file core
Core was generated by `python1.5 test.py 11523A_93.tif'.
Program terminated with signal 11, Segmentation fault.
#0  0x419685d0 in ?? ()

What's causing this core dump?  Should I get vtk-3.2?  

Thanks,

jm

-- 
Joseph Murray
Bioinformatics Specialist, AGY Therapeutics
290 Utah Avenue, South San Francisco, CA 94080
(650) 228-1146




More information about the vtkusers mailing list