[vtkusers] Bug in XML Image IO?

Kevin H. Hobbs hobbsk at ohiou.edu
Thu Jun 8 14:56:16 EDT 2006

The attached code demonstrates what might be a bug in the XML Image IO.
Please pardon the use of GSL, I just needed a quick and dirty way to
make a big image full of junk. That part probably isn't important, but I
don't know.

The program writes out a big file full of random shorts, stream converts
it to an XML image file, then stream converts that to another XML image
file. It is the last step that fails.

When I call the program with image size and the number of pieces I used
in my real work I get the errors below which are the same as the ones I
get in my real work.

[kevin at gargon huge_streamed_test]$ ./huge_streamed_test 1265 910 875 256
Now we have a big raw image.
Now we have a big VTI image.
ERROR: In /home/kevin/kitware/VTK/IO/vtkXMLStructuredDataReader.cxx,
line 314
vtkXMLImageDataReader (0x51e4e0): Error reading extent 158 158 0 113 218
218 from piece 0

ERROR: In /home/kevin/kitware/VTK/IO/vtkXMLDataReader.cxx, line 481
vtkXMLImageDataReader (0x51e4e0): Cannot read point data array
"ImageFile" from PointData in piece 0.  The data array in the element
may be too short.

These errors repeat for other pieces, and then a segfault.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: huge_streamed_test.cxx
Type: text/x-c++src
Size: 2282 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060608/d6e6d809/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/d6e6d809/attachment.pgp>

More information about the vtkusers mailing list