MantisBT - VTK
View Issue Details
0007754VTK(No Category)public2008-09-29 15:432016-08-12 09:55
zippy 
Kitware Robot 
normalcrashalways
closedmoved 
 
 
0007754: vtkTIFFReader crash with segfault by reading multipage TIFF
import vtk

reader = vtk.vtkTIFFReader()
print reader.CanReadFile("/medi2/ct_scans/Beckenknochen.tif") -> 3
reader.SetFileName("/medi2/ct_scans/Beckenknochen.tif")

reader.Update() -> Segmentation fault

The test image ist a 16bit multiframe TIFF.
- VTK Release 5.2.0
- Python
- Gentoo Linux
python
Issue History
2008-09-29 15:43zippyNew Issue
2008-09-29 18:42zippyNote Added: 0013618
2008-10-02 20:38zippyNote Edited: 0013618
2008-10-23 17:00zippyTag Attached: python
2008-10-23 17:00zippyNote Added: 0013922
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2014-01-30 05:49Richard WhiteheadNote Added: 0032237
2016-08-12 09:55Kitware RobotNote Added: 0037022
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0013618)
zippy   
2008-09-29 18:42   
(edited on: 2008-10-02 20:38)
reader with: DebugOn():

Debug: In /var/tmp/portage/sci-libs/vtk-5.2.0/work/VTK/IO/vtkImageReader2.h, line 93
vtkTIFFReader (0x861320): vtkTIFFReader (0x861320): setting NumberOfScalarComponents to 1

Debug: In /var/tmp/portage/sci-libs/vtk-5.2.0/work/VTK/Filtering/vtkAlgorithm.h, line 150
vtkTIFFReader (0x861320): vtkTIFFReader (0x861320): setting AbortExecute to 0

Debug: In /var/tmp/portage/sci-libs/vtk-5.2.0/work/VTK/IO/vtkImageReader2.h, line 89
vtkTIFFReader (0x861320): vtkTIFFReader (0x861320): returning DataScalarType of 5

Debug: In /var/tmp/portage/sci-libs/vtk-5.2.0/work/VTK/IO/vtkImageReader2.h, line 89
vtkTIFFReader (0x861320): vtkTIFFReader (0x861320): returning DataScalarType of 5

Debug: In /var/tmp/portage/sci-libs/vtk-5.2.0/work/VTK/IO/vtkImageReader2.h, line 89
vtkTIFFReader (0x861320): vtkTIFFReader (0x861320): returning DataScalarType of 5

Debug: In /var/tmp/portage/sci-libs/vtk-5.2.0/work/VTK/IO/vtkImageReader2.h, line 89
vtkTIFFReader (0x861320): vtkTIFFReader (0x861320): returning DataScalarType of 5

Segmentation fault

(0013922)
zippy   
2008-10-23 17:00   
Please offer a patch!!!
(0032237)
Richard Whitehead   
2014-01-30 05:49   
Still present in VTK 6.0.0.

Possible patch (works for my case): in vtkTIFFReader::ReadVolume and vtkTIFFReader::ReadTiles, add a second parameter "int* outExtent".
In these calls, add a line:
this->OutputExtent = outExtent;

Where called from vtkTIFFReaderUpdate, pass the outExtent local variable as this second parameter.
(0037022)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.