View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007754VTK(No Category)public2008-09-29 15:432016-08-12 09:55
Reporterzippy 
Assigned ToKitware Robot 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007754: vtkTIFFReader crash with segfault by reading multipage TIFF
Descriptionimport 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.
Additional Information- VTK Release 5.2.0
- Python
- Gentoo Linux
Tagspython
Project
Type
Attached Files

 Relationships

  Notes
(0013618)
zippy (reporter)
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 (reporter)
2008-10-23 17:00

Please offer a patch!!!
(0032237)
Richard Whitehead (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-09-29 15:43 zippy New Issue
2008-09-29 18:42 zippy Note Added: 0013618
2008-10-02 20:38 zippy Note Edited: 0013618
2008-10-23 17:00 zippy Tag Attached: python
2008-10-23 17:00 zippy Note Added: 0013922
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2014-01-30 05:49 Richard Whitehead Note Added: 0032237
2016-08-12 09:55 Kitware Robot Note Added: 0037022
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team