MantisBT - VTK
View Issue Details
0007082VTK(No Category)public2008-05-23 07:572016-08-12 09:54
Charl Botha 
Kitware Robot 
normalmajoralways
closedmoved 
 
 
0007082: vtkMetaImageReader fails on a simple 256 x 256 signed short file
Running the attached python example on the included fixed.mhd breaks in one of two ways:
1. either the vtkMetaImageReader complains that it cannot allocate 1.5 million 2 byte units
2. if 1. coincidentally does succeed, the GetScalarRange() segfaults (an access violation - null pointer deref - on Windows)
We checked and double-checked this on Windows XP (SP2 and SP3) with a VS.NET 2005 build of the ParaView-3-2-1 tagged VTK, as well as on Ubuntu 7.10.

Example back trace of case 2:

(gdb) bt
#0 vtkDataArrayTemplate<short>::ComputeScalarRange (this=0x822c958, comp=0)
    at /data/scratch/jwd/archive/VTK/Common/vtkDataArrayTemplate.txx:856
#1 0xb7977c9f in vtkDataArrayTemplate<short>::ComputeRange (this=0x822c958,
    comp=0)
    at /data/scratch/jwd/archive/VTK/Common/vtkDataArrayTemplate.txx:819
#2 0xb724b573 in vtkDataSet::ComputeScalarRange (this=0x8059a10)
    at /data/scratch/jwd/archive/VTK/Common/vtkDataArray.h:295
#3 0xb7249735 in vtkDataSet::GetScalarRange (this=0x8059a10)
    at /data/scratch/jwd/archive/VTK/Filtering/vtkDataSet.cxx:151
#4 0xb74b05ce in PyvtkDataSet_GetScalarRange (self=0xb7c8f728,
    args=0xb7c8f02c)
    at /data/scratch/jwd/build/VTK-build/Filtering/vtkDataSetPython.cxx:1252
#5 0xb7ecde0d in PyCFunction_Call (func=0xb713e7ec, arg=0xb7c8f02c, kw=0x0)
    at Objects/methodobject.c:108
No tags attached.
zip vtkmetaimagereader_bug.zip (45,409) 2008-05-23 07:57
https://www.vtk.org/Bug/file/6492/vtkmetaimagereader_bug.zip
Issue History
2008-05-23 07:57Charl BothaNew Issue
2008-05-23 07:57Charl BothaFile Added: vtkmetaimagereader_bug.zip
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036976
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036976)
Kitware Robot   
2016-08-12 09:54   
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.