View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013382VTK(No Category)public2012-08-21 05:312015-08-27 07:01
ReporterTim Hutton 
Assigned ToT.J. Corona 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0013382: vtkXMLUnstructuredGridWriter: corrupted output for polyhedral cells in appended mode
DescriptionThe 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).
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships
related to 0013860closedChuck Atkins the vtkXMLUnstructuredGridWriter crashes on MacOSX 10.6.8 
related to 0013295closedDave DeMarle vtkXMLUnstructuredGridReader cannot read vtu-files in ascii mode when a double data array contains INFINITE or MAX values 
related to 0013294closedCory Quammen string arrays may cause vtkXMLUnstructuredGridWriter to produce corrupt vtu-files, which are unreadable or cause crash 

  Notes
(0033671)
Lars Bilke (reporter)
2014-10-28 02:48

This is still an issue in 6.1 on Mac OS X 10.9
(0034877)
Menno Deij (reporter)
2015-08-04 09:53

This is still an issue in origin/master.
(0035070)
T.J. Corona (developer)
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 (reporter)
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 (developer)
2015-08-27 06:59

Thanks for the explanation! I will close this ticket then.
(0035077)
T.J. Corona (developer)
2015-08-27 07:01

This issue was fixed in commit
https://gitlab.kitware.com/vtk/vtk/commit/f2fd417af9fdb4d92a87f3bd5e2cb888a82b0883 [^]

 Issue History
Date Modified Username Field Change
2012-08-21 05:31 Tim Hutton New Issue
2013-06-25 14:23 Dave DeMarle Relationship added related to 0013860
2013-06-25 14:23 Dave DeMarle Relationship added related to 0013295
2013-06-25 14:24 Dave DeMarle Relationship added related to 0013294
2014-10-28 02:48 Lars Bilke Note Added: 0033671
2015-08-04 09:53 Menno Deij Note Added: 0034877
2015-08-26 15:39 T.J. Corona Note Added: 0035070
2015-08-27 02:14 Menno Deij Note Added: 0035075
2015-08-27 06:59 T.J. Corona Note Added: 0035076
2015-08-27 07:01 T.J. Corona Note Added: 0035077
2015-08-27 07:01 T.J. Corona Status backlog => closed
2015-08-27 07:01 T.J. Corona Assigned To => T.J. Corona
2015-08-27 07:01 T.J. Corona Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team