[vtkusers] vtkImageViewer buggy?
David Gobbi
dgobbi at irus.rri.on.ca
Mon Apr 9 16:16:07 EDT 2001
Were any error messages printed? The most likely things that
could cause a crash are:
1) wrong filename or file couldn't be read (VTK can only handle
some uncompressed TIFF files, and even though it will print
an error message your program will probably still crash).
I would recommend against using TIFF with VTK.
2) bad OpenGL or Mesa on Linux (what version of Linux are you
using?)
Upgrading to VTK 3.2 is unlikely to fix either of these, but I
would recommend that you upgrade to VTK 3.2 in any case because
it is a pretty solid, up-to-date release.
- David
--
David Gobbi, MSc dgobbi at irus.rri.on.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Mon, 9 Apr 2001, Joe Murray wrote:
> 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
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list