MantisBT - VTK
View Issue Details
0013295VTK(No Category)public2012-07-05 06:072016-08-12 09:55
klaus triendl 
Dave DeMarle 
highminorhave not tried
closedmoved 
5.8.0 
 
Release
crash
0013295: vtkXMLUnstructuredGridReader cannot read vtu-files in ascii mode when a double data array contains INFINITE or MAX values
vtkXMLUnstructuredGridWriter seems to correctly write vtu-files in ascii mode with double data arrays containing INFINITE and MAX values.
However the vtkXMLUnstructuredGridReader reports the following error:

<error>
ERROR: In D:\projects\vtk-5.10.0\IO\vtkXMLDataReader.cxx, line 545
vtkXMLUnstructuredGridReader (0000000001DC9A30): Cannot read cell data array "doubles" from PointData in piece 0. The data array in the element may be too short.
</error>


Note that modes other than ascii, compressed or uncompressed, don't have this issue; however this issue makes up a bad combination together with issue 0013294.


Please see attached zip file, which contains:
* a test cpp file displaying how I produce the vtu-files
* a test msvc2010 project
* the source and resulting vtu files


I detected the issue already in version 5.8.0, it's still active in 5.10.0.
However, it doesn't show up in 6.0 (git #02aef09).
No tags attached.
related to 0013294closed Cory Quammen string arrays may cause vtkXMLUnstructuredGridWriter to produce corrupt vtu-files, which are unreadable or cause crash 
related to 0013382closed T.J. Corona vtkXMLUnstructuredGridWriter: corrupted output for polyhedral cells in appended mode 
related to 0013860closed Chuck Atkins the vtkXMLUnstructuredGridWriter crashes on MacOSX 10.6.8 
zip vtk-max_inf-bug.zip (70,682) 2012-07-05 06:07
https://www.vtk.org/Bug/file/9224/vtk-max_inf-bug.zip
Issue History
2012-07-05 06:07klaus triendlNew Issue
2012-07-05 06:07klaus triendlFile Added: vtk-max_inf-bug.zip
2013-06-25 14:22Dave DeMarleRelationship addedrelated to 0013860
2013-06-25 14:23Dave DeMarleRelationship addedrelated to 0013294
2013-06-25 14:23Dave DeMarleRelationship addedrelated to 0013382
2013-07-22 12:39Dave DeMarleStatusbacklog => expired
2013-07-22 12:39Dave DeMarleResolutionopen => fixed
2013-07-22 12:39Dave DeMarleAssigned To => Dave DeMarle
2016-08-12 09:55Kitware RobotNote Added: 0037287
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionfixed => moved

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