XML reader producing wrong output
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When the attached file is loaded, the XML reader produces wrong output. It looks like the parser has some issues parsing ASCII data. If all arrays are enabled, the reader fails with an error. If all arrays are disabled, the file loads but the output is wrong. Although the number of points is 503 in the file, the output has 581 points. Although the number of cells is 2592 in the file, the output has 2880 cells. The original message from the user (ufnoise .at. gmail .dot. com) that reported it is as follows:
I am writing an ascii xml file for an unstructured mesh. I have scalar and vector data on lines. If I have any vector data listed before scalar data, I get a crash upon hitting the apply button in paraview: ERROR: In /home/berk/Work/ReleaseBuilds/ParaView3/VTK/IO/vtkXMLDataReader.cxx, line 532 vtkXMLUnstructuredGridReader (0x8aeed88): Cannot read cell data array "ElectricField" from PointData in piece 1. The data array in the element may be too short.
This is how I am declaring data to be vector data.
However, if I ensure that the vector data are listed after the scalar data in the cell data section, everything is cool.