[Paraview] Error reading legacy VTK-file with Windows Version >5.2.x

m-it m-it at thi.de
Fri May 18 09:23:46 EDT 2018


Hi,

i have here a strange behaviour of the Windows Version of Paraview with Version above 5.2 reading a (legacy) VTK-ASCII file.

With Version 5.5.0 (and also 5.4) i get the following errors:
Generic Warning: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\IO\Legacy\vtkDataReader.cxx, line 1436
Error reading ascii data. Possible mismatch of datasize with declaration.

ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\IO\Legacy\vtkUnstructuredGridReader.cxx, line 348
vtkUnstructuredGridReader (0000025018454BA0): Unrecognized keyword: -3.7


Paraview then shows nothing.
Version 5.2.0 Windows works as expected (and maybe any older).

Paraview Version 5.4.0 Linux and macOS Versions 5.4.1 and 5.5.0 work, too.

The VTK-file is generated with OpenFOAM's foamToVTK.

Here are the first lines of an sample file (which creates the mentioned error message): 
# vtk DataFile Version 2.0
SRe17
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 4059 float
25 0 -0.8125 25 1 -0.8125 25 1 0.15 25 0
0.15 25 2 0.15 25 2 1.1125 25 1 1.1125
26 2 -3.7 26 3 -3.7 26 3 -2.7375 26
2 -2.7375 26 4 -3.7 26 4 -2.7375 26 4
-1.775 26 3 -1.775 25 0 1.1125 25 1 2.075
25 0 2.075 25 2 2.075 25 1 3.0375 25
0 3.0375 25 2 3.0375 25 3 2.075 25 3
3.0375 25 1 4 25 0 4 25 2 4
25 3 4 25 4 3.0375 25 4 4 26
1 -3.7 26 1 -2.7375 26 2 -1.775 26 4
-0.8125 26 3 -0.8125 26 2 -4 26 3 -4
26 4 -4 26 1 -4 26 0 -3.7 26
0 -2.7375 26 1 -1.775 26 0 -1.775 26 1
-0.8125 26 0 -0.8125 26 2 -0.8125 26 2 0.15
26 1 0.15 26 3 0.15 26 4 0.15 26
3 1.1125 26 2 1.1125 26 4 1.1125 26 2
2.075 26 3 2.075 26 4 2.075 26 3 3.0375


If necessary i can provide a small full sample (with about 1MB of data).

I've googled around a bit and found only a few (and quite old) messages concerning this error (but I guess with a different background, regarding very small values - I can't see that this is the case here). One lead me to try to change all occurences of the dataType of the POINT type from float to double.
This works and the data can be visualized as expected with all Paraview versions on all platforms.

I just wonder about the different behaviour of the different versions of Paraview on Windows (5.2 vs. 5.4/5.5) and the difference between Paraview Windows and Linux/macOS?

Thanks in adavance.

Michael


-- 
Michael Rebele                     Technische Hochschule Ingolstadt
m-it at thi.de



More information about the ParaView mailing list