[vtkusers] Bug in vtkPImageWriter?

Kevin H. Hobbs hobbsk at ohiou.edu
Thu Jun 8 12:29:38 EDT 2006


I think there is a bug in vtkPImageWriter that causes it to not actually
limit the size of the pipeline. I tried the attached with image size
500x500x500 and the memory usage was more than a gigabyte. I tried an
image size of 1000x1000x1000 and got:

ERROR: In /home/kevin/kitware/VTK/Common/vtkDataArrayTemplate.txx, line 106
vtkDoubleArray (0x5231a0): Unable to allocate 1000000000 elements of size 8 bytes.

ERROR: In /home/kevin/kitware/VTK/Filtering/vtkImageData.cxx, line 2100
vtkImageData (0x520690): Coordinate (0, 0, 0) out side of array (max = -1

ERROR: In /home/kevin/kitware/VTK/Filtering/vtkImageData.cxx, line 2100
vtkImageData (0x520690): Coordinate (999, 999, 999) out side of array (max = -1

Segmentation fault

This doesn't sound like streaming to me. The existing test for the
writer uses only a small image needing only a hundred kilobytes or so
which could not detect the problem.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pwrite_test.cxx
Type: text/x-c++src
Size: 903 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060608/7d6cd767/attachment.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060608/7d6cd767/attachment.pgp>


More information about the vtkusers mailing list