vtkXMLUnstructuredGridReader cannot read vtu-files in ascii mode when a double data array contains INFINITE or MAX values
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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: 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.
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 #13294 (closed).
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 #02aef097).