MantisBT - VTK
View Issue Details
0013382VTK(No Category)public2012-08-21 05:312015-08-27 07:01
Tim Hutton 
T.J. Corona 
normalminorhave not tried
closedfixed 
5.8.0 
 
TBD
incorrect functionality
0013382: vtkXMLUnstructuredGridWriter: corrupted output for polyhedral cells in appended mode
The Graphics\Cxx\TestPolyhedron0.cxx test works in ASCII mode, but comment-out this line and it breaks:

writer->SetDataModeToAscii();

Alternatively, explicitly change it to:

writer->SetDataModeToAppended();

(Binary mode works fine.)

The resulting vtu file has malformed XML. It starts like this:

" offset="588"="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <UnstructuredGrid>
...etc."

Still an issue in VTK 5.10.0.

An improved test would try all the different data modes (ascii, binary, appended) and compressors (zlib, none).
No tags attached.
related to 0013860closed Chuck Atkins the vtkXMLUnstructuredGridWriter crashes on MacOSX 10.6.8 
related to 0013295closed Dave DeMarle vtkXMLUnstructuredGridReader cannot read vtu-files in ascii mode when a double data array contains INFINITE or MAX values 
related to 0013294closed Cory Quammen string arrays may cause vtkXMLUnstructuredGridWriter to produce corrupt vtu-files, which are unreadable or cause crash 
Issue History
2012-08-21 05:31Tim HuttonNew Issue
2013-06-25 14:23Dave DeMarleRelationship addedrelated to 0013860
2013-06-25 14:23Dave DeMarleRelationship addedrelated to 0013295
2013-06-25 14:24Dave DeMarleRelationship addedrelated to 0013294
2014-10-28 02:48Lars BilkeNote Added: 0033671
2015-08-04 09:53Menno DeijNote Added: 0034877
2015-08-26 15:39T.J. CoronaNote Added: 0035070
2015-08-27 02:14Menno DeijNote Added: 0035075
2015-08-27 06:59T.J. CoronaNote Added: 0035076
2015-08-27 07:01T.J. CoronaNote Added: 0035077
2015-08-27 07:01T.J. CoronaStatusbacklog => closed
2015-08-27 07:01T.J. CoronaAssigned To => T.J. Corona
2015-08-27 07:01T.J. CoronaResolutionopen => fixed

Notes
(0033671)
Lars Bilke   
2014-10-28 02:48   
This is still an issue in 6.1 on Mac OS X 10.9
(0034877)
Menno Deij   
2015-08-04 09:53   
This is still an issue in origin/master.
(0035070)
T.J. Corona   
2015-08-26 15:39   
I am having trouble reproducing this bug. Can you run the test under lldb with Guard Malloc on (env DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib)?
(0035075)
Menno Deij   
2015-08-27 02:14   
This bug was resolved after this request was merged
https://gitlab.kitware.com/vtk/vtk/merge_requests/501 [^]

If you are testing on origin/master that maybe why it is not reproduceable?

Also, see the attached data https://gitlab.kitware.com/vtk/vtk/uploads/5a809cfb40449e6ec58a96028a01906e/grid_only_0_0.zip [^] to have a test case.
(0035076)
T.J. Corona   
2015-08-27 06:59   
Thanks for the explanation! I will close this ticket then.
(0035077)
T.J. Corona   
2015-08-27 07:01   
This issue was fixed in commit
https://gitlab.kitware.com/vtk/vtk/commit/f2fd417af9fdb4d92a87f3bd5e2cb888a82b0883 [^]