Paraview 5.7.0 fails to load vtk unstructured xml files larger than 2 GB
I am trying to open an unstructured vtk xml file (*.vtu) with paraview 5.7.0
The file is pretty large, 2.24 GB. Paraview takes some time loading it and before the load is complete, the following error appears.
ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\IO\XML\vtkXMLUnstructuredDataReader.cxx, line 603
vtkXMLUnstructuredGridReader (0000022F26E89330): Cannot read cell offsets from Cells in piece 0 because the "offsets" array is not long enough.
I cannot upload such a big file, but the xml structure is as follows:
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="1.0">
<UnstructuredGrid>
<Piece NumberOfPoints="5257931" NumberOfCells="3155100">
<PointData>
<DataArray type="Float64" Name="ARRAY1" format="ascii" NumberOfComponents="3">
x y z
x y z
...
</DataArray>
<DataArray type="Float64" Name="ARRAY2" format="ascii" NumberOfComponents="3">
x y z
x y z
...
</DataArray>
<DataArray type="Float64" Name="ARRAY3" format="ascii" NumberOfComponents="3">
x y z
x y z
...
</DataArray>
<DataArray type="Float64" Name="ARRAY4" format="ascii" NumberOfComponents="3">
x y z
x y z
...
</DataArray>
<DataArray type="Float64" Name="ARRAY5" format="ascii" NumberOfComponents="3">
x y z
x y z
...
</DataArray>
<DataArray type="Float64" Name="ARRAY6" format="ascii" NumberOfComponents="3">
x y z
x y z
...
</DataArray>
</PointData>
<Points>
<DataArray type="Float64" Name="geometry" format="ascii" NumberOfComponents="3">
Px Py Pz
Px Py Pz
...
</DataArray>
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="ascii" NumberOfComponents="1">
...
</DataArray>
<DataArray type="Int64" Name="offsets" format="ascii" NumberOfComponents="1">
10 20 30 40 ...
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii" NumberOfComponents="1">
24 24 24 24 24 24 ...
</DataArray>
</Cells>
</Piece>
</UnstructuredGrid>
</VTKFile>
I've found out that removing any of the PointData DataArrays (ARRAY1 to ARRAY 6), the file sizes 1.98 GB and it loads successfully. This means that geometry, connectivities, offsets and types are ok.
Is there a limit of 2GB for .vtu files? Or am I doing something wrong. Is there any alternative?
Thank you!