# How to open Large vtu file in Paraview?

**URL:** https://discourse.paraview.org/t/how-to-open-large-vtu-file-in-paraview/10675
**Category:** ParaView Support
**Created:** [November 4, 2022, 7:36am UTC](https://discourse.paraview.org/t/how-to-open-large-vtu-file-in-paraview/10675 "2022-11-04T07:36:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![1997best](https://discourse.paraview.org/user_avatar/discourse.paraview.org/1997best/32/10329_2.png) [@1997best](https://discourse.paraview.org/u/1997best)
#### Post date: [November 4, 2022, 7:36am UTC](https://discourse.paraview.org/t/how-to-open-large-vtu-file-in-paraview/10675/1 "2022-11-04T07:36:09Z")

</div>

My result file is vtu format file, and I try to open in using Paraview.

If data file size is small ( ~2GB) it opened well.  
However if it’s size is more then 3 or 4 GB, I got some error message and can’t open it.  
How can I solve it?

///////  
ERROR: In vtkXMLDataParser.cxx, line 537  
vtkXMLDataParser (00000178C355D9E0): Error reading beginning of compression header. Read 0 of 12 bytes.

ERROR: In vtkXMLDataParser.cxx, line 881  
vtkXMLDataParser (00000178C355D9E0): ReadCompressionHeader failed. Aborting read.

ERROR: In vtkXMLUnstructuredDataReader.cxx, line 523  
vtkXMLUnstructuredGridReader (00000178B4888BB0): Cannot read points array from Points in piece 0. The data array in the element may be too short.  
//////

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [November 6, 2022, 10:01pm UTC](https://discourse.paraview.org/t/how-to-open-large-vtu-file-in-paraview/10675/2 "2022-11-06T22:01:17Z")

</div>

@1997best You didn’t state which OS you’re using. Windows perhaps?

There is a configuration problem when building VTK with the third party XML library, _EXPAT_, which means an incorrect stream size, type **long** , is used on 64 bit systems. For Mac and Linux it works because **long** is 4 bytes on 32 bit systems and 8 bytes on 64 bit systems, but on Windows **long** is always 4 bytes so the XML reader cannot go beyond 2Gb (the positive integral range).

> [@Error reading large VTK files in the Windows version](https://discourse.paraview.org/t/error-reading-large-vtk-files-in-the-windows-version/8199/22):
>
> Hi @vmajor A type conversion error is happening in the XML parser when the byte count passes 2^31 on Windows which results in a negative byte index. Here’s a quick and dirty fix for you to use, assuming you can do a local build, while a more rigorous solution is worked out. It won’t get you past the 4Gb file size limit on Windows but it will load past the 2Gb point. I hope that helps. vtkTypeInt64 vtkXMLParser::GetXMLByteIndex() { XML\_Parser parser = static\_cast\<XML\_Parser\>(this-\>Parser); #i…

[https://gitlab.kitware.com/paraview/paraview/-/issues/21145](https://gitlab.kitware.com/paraview/paraview/-/issues/21145)

---

<div class="post-metadata">

### Author: ![1997best](https://discourse.paraview.org/user_avatar/discourse.paraview.org/1997best/32/10329_2.png) [@1997best](https://discourse.paraview.org/u/1997best)
#### Post date: [November 7, 2022, 10:41am UTC](https://discourse.paraview.org/t/how-to-open-large-vtu-file-in-paraview/10675/3 "2022-11-07T10:41:15Z")

</div>

Thank you very much!  
Then, you means, can I open the same file in mac or linux?

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [November 7, 2022, 12:01pm UTC](https://discourse.paraview.org/t/how-to-open-large-vtu-file-in-paraview/10675/4 "2022-11-07T12:01:24Z")

</div>

Yes. You should be able to read a stream size up to 2^63 bits on a 64 bit system.
