# Paraview error when opening .vtu file

**URL:** https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007
**Category:** ParaView Support
**Created:** [December 8, 2020, 10:34am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007 "2020-12-08T10:34:15Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Sabrina](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@Sabrina](https://discourse.paraview.org/u/Sabrina)
#### Post date: [December 8, 2020, 10:34am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/1 "2020-12-08T10:34:16Z")

</div>

Dear All,

I am currently getting an error when I try to open a specific .vtu file with ParaView:

```
ERROR: In /Users/kitware/dashboards/buildbot-slave/a64f5607/build/superbuild/paraview/src/VTK/IO/XMLParser/vtkXMLDataParser.cxx, line 654

vtkXMLDataParser (0x7ff36794ffb0): Error reading uncompressed binary data header. Read 0 of 4 bytes.

ERROR: In /Users/kitware/dashboards/buildbot-slave/a64f5607/build/superbuild/paraview/src/VTK/IO/XML/vtkXMLUnstructuredDataReader.cxx, line 632

vtkXMLUnstructuredGridReader (0x7ff367947f70): Cannot read cell offsets from Cells in piece 0 because the "offsets" array is not long enough.

```

The version of ParaView I am using is 5.8.0 in a macOS 10.15.5 (Catalina). I should add that I usually open similar files created in the exact same way with no issues.  
I have attached the file in [this](https://ikpcloud.ikp.physik.tu-darmstadt.de/index.php/s/uyVXZ25vTSeWyFg) link, if anyone would be able to try and/or take a look and shed some light on this issue.

Thank you very much in advance,  
Sabrina

---

<div class="post-metadata">

### Author: ![E.Sun](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/d07c76/32.png) [@E.Sun](https://discourse.paraview.org/u/E.Sun)
#### Post date: [June 11, 2021, 2:26am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/2 "2021-06-11T02:26:57Z")

</div>

Hello Sabrina,

Have you found a solution to your problem by any chance? I am using ParaView 5.9.0 on Windows 10, and I went into the same issue.  
Thank you!

Ethan

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 11, 2021, 6:27am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/3 "2021-06-11T06:27:05Z")

</div>

please share your data @E.Sun

---

<div class="post-metadata">

### Author: ![Sabrina](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@Sabrina](https://discourse.paraview.org/u/Sabrina)
#### Post date: [June 11, 2021, 6:58am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/4 "2021-06-11T06:58:26Z")

</div>

Hi Ethan,

Not precisely but the problem went away when I reduced the size of the file (\<2GB).

Hope this helps,  
Sabrina

---

<div class="post-metadata">

### Author: ![E.Sun](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/d07c76/32.png) [@E.Sun](https://discourse.paraview.org/u/E.Sun)
#### Post date: [June 11, 2021, 2:39pm UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/5 "2021-06-11T14:39:38Z")

</div>

Hi,  
My file is attached here:  
[https://drive.google.com/file/d/1AZ3a6bmXK4fE9VHP\_sBbAPE7oLitFuD1/view?usp=sharing](https://drive.google.com/file/d/1AZ3a6bmXK4fE9VHP_sBbAPE7oLitFuD1/view?usp=sharing)  
Thank you for your time!

---

<div class="post-metadata">

### Author: ![mnpica](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mnpica](https://discourse.paraview.org/u/mnpica)
#### Post date: [December 8, 2021, 2:01am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/6 "2021-12-08T02:01:40Z")

</div>

Dear All,  
I have the same issue with ParaView 5.10.0-RC2 on Windows 10.

```auto
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\IO\XML\vtkXMLUnstructuredDataReader.cxx, line 680
vtkXMLUnstructuredGridReader (00000280A4697190): Cannot read cell offsets from Cells in piece 0 because the "offsets" array is not long enough.

```

Is there any methods to solve this problem?  
I will be grateful for any help you can provide.

[Job-netduino-2\_0-10\_0-C3D8-HT\_Step-1\_PART-GLOBALf001.vtu](https://discourse.paraview.org/uploads/short-url/vL3hkE9TCh3U8hf8koZOvrZikpt.vtu) (146.7 KB)

---

<div class="post-metadata">

### Author: ![E.Sun](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/d07c76/32.png) [@E.Sun](https://discourse.paraview.org/u/E.Sun)
#### Post date: [December 8, 2021, 2:46am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/8 "2021-12-08T02:46:14Z")

</div>

Hi Freda, I got away with this issue by deleting some of the fields I don’t need. So my .vtu file size was maintained below 2GB, roughly.

---

<div class="post-metadata">

### Author: ![mnpica](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mnpica](https://discourse.paraview.org/u/mnpica)
#### Post date: [December 8, 2021, 3:41am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/9 "2021-12-08T03:41:22Z")

</div>

Hi Ethan,

Thanks for your advice.  
I’ve generate a small testing file. (146.7 KB)  
But the problem still exists.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 8, 2021, 10:04am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/11 "2021-12-08T10:04:03Z")

</div>

@mnpica you file is most likely malformed. How did you generate it ?

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [December 8, 2021, 10:29am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/12 "2021-12-08T10:29:25Z")

</div>

In the third line of the file (Job-netduino-2\_0-10\_0-C3D8-HT\_Step-1\_PART-GLOBALf001.vtu), the number of cells declared seems to be different.  
In fact, it can be loaded by modifying as follows:

> NumberOfCells=“208”

---

<div class="post-metadata">

### Author: ![mnpica](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mnpica](https://discourse.paraview.org/u/mnpica)
#### Post date: [December 9, 2021, 1:57am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/13 "2021-12-09T01:57:17Z")

</div>

I’m trying to convert Abaqus .ODB file into .vtu file via  
[https://github.com/Liujie-SYSU/odb2vtk](https://github.com/Liujie-SYSU/odb2vtk)

Is there any other solution for Abaqus file?  
Thanks!

---

<div class="post-metadata">

### Author: ![mnpica](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mnpica](https://discourse.paraview.org/u/mnpica)
#### Post date: [December 9, 2021, 1:58am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/14 "2021-12-09T01:58:43Z")

</div>

Thank you Kyochimi !!!  
It works!

---

<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: [December 26, 2021, 12:40am UTC](https://discourse.paraview.org/t/paraview-error-when-opening-vtu-file/6007/15 "2021-12-26T00:40:01Z")

</div>

See this issue. [Error reading large VTK files in the Windows version - #21 by vmajor](https://discourse.paraview.org/t/error-reading-large-vtk-files-in-the-windows-version/8199/21)
