# I cannot read a .vtp file I could open yesterday. Can someone try to open it?

**URL:** https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938
**Category:** ParaView Support
**Tags:** vtk
**Created:** [February 14, 2024, 11:08am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938 "2024-02-14T11:08:40Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [February 14, 2024, 11:08am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/1 "2024-02-14T11:08:40Z")

</div>

Hi all,

I am trying to open a .vtp file I was able to open yesterday… I am using Arch Linux and Paraview, I just performed the usual system update, no fancy stuff.  
It is even stranger because I cannot open .vtp files saved from vtk files which instead open correctly.

I am attaching the problematic vtp file, error message and Paraview information at the bottom of this message.

Thank, I am by no means an expert but this seems a bug to me.

Edit: The problem with saving a vtp from a vtk file seems to be related to the mode of exporting, Ascii and Binary seem to work, the Appended apparently does not. I am attaching a picture.

 ![Paraview_Vtp_exporting_problem](https://discourse.paraview.org/uploads/default/original/2X/c/cac6a0e40f5aa3846272551875fae00fc124a5a6.png)

The problem with the attached .vtp file persist: it does not come form a vtk that I have and yesterday it was read without problems, can anyone try to open it?

[cylinder.vtp](https://discourse.paraview.org/uploads/short-url/mmC8dLkm86pEai3nsLYNQcRDyLX.vtp) (5.2 KB)

```auto
ERROR: In vtkXMLParser.cxx, line 375
vtkXMLDataParser (0x61d4aa65edb0): Error parsing XML in stream at line 44, column 89, byte index 3064: not well-formed (invalid token)

ERROR: In vtkXMLReader.cxx, line 520
vtkXMLPolyDataReader (0x61d4a95182d0): Error parsing input file. ReadXMLInformation aborting.

```

```auto
Client Information:
Version: 5.11.2
VTK Version: 9.2.20220823
Qt Version: 5.15.12
vtkIdType size: 64bits
Embedded Python: On
Python Library Path: /usr/lib/python3.11
Python Library Version: 3.11.7 (main, Jan 29 2024, 16:03:57) [GCC 13.2.1 20230801]
Python Numpy Support: On
Python Numpy Path: /usr/lib/python3.11/site-packages/numpy
Python Numpy Version: 1.26.3
Python Matplotlib Support: On
Python Matplotlib Path: /usr/lib/python3.11/site-packages/matplotlib
Python Matplotlib Version: 3.8.2
Python Testing: Off
MPI Enabled: On
Disable Registry: Off
Test Directory: 
Data Directory: 
SMP Backend: TBB
SMP Max Number of Threads: 16
OpenGL Vendor: Intel
OpenGL Version: 4.6 (Core Profile) Mesa 23.3.5-arch1.1
OpenGL Renderer: Mesa Intel(R) Graphics (ADL GT2)
Accelerated filters overrides available: No

Connection Information:
Remote Connection: No

```

---

<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: [February 19, 2024, 10:41am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/2 "2024-02-19T10:41:03Z")

</div>

Works fine with ParaView 5.12.0-RC2 here:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/bb56de2ed537bb4695cd8ec2fcbcee5e496614fb.png)

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 19, 2024, 3:29pm UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/3 "2024-02-19T15:29:23Z")

</div>

Hi @nihil39, could you try resetting your settings through the Edit → Reset to Default Settings menu option? If you choose the “Yes, and backup current settings”, that would save a file I may be able to look at to get a clue how settings sometimes get corrupted. and lead to strange behavior like this.

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [February 20, 2024, 9:37am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/4 "2024-02-20T09:37:53Z")

</div>

Here they are, Thank you.

[ParaView5.11.2b.ini](https://discourse.paraview.org/uploads/short-url/4axd9Y3r9QlamCGrsCQZXae2wKQ.ini) (12.1 KB)  
[ParaView-UserSettings\_b.json](https://discourse.paraview.org/uploads/short-url/tgMlw720MnxS4s0WA7nf8LbzKgX.json) (3.2 KB)

I don’t know if it is a problem related to a Linux version of something.

[dpaste/FkN2m (Plain Text)](https://dpaste.org/FkN2m) ← Dpaste link for .ini file  
[dpaste/Mm2Yv (Plain Code)](https://dpaste.org/Mm2Yv) ← Dpaste link for .json file

---

<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: [February 20, 2024, 9:41am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/5 "2024-02-20T09:41:23Z")

</div>

> [@nihil39](#):
>
> if it is a problem related to a Linux version of something.

I’m using the Linux version.

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [February 20, 2024, 9:54am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/6 "2024-02-20T09:54:43Z")

</div>

Ok, maybe different libraries versions because we are using different Linux distributions (Arch Linux here), I don’t know.

Or maybe my Paraview version does not support a more recent version of something that Arch Linux has automatically updated, you are using Paraview 5.12, but mine are just wild guesses, shots in the dark.

---

<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: [February 20, 2024, 9:58am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/7 "2024-02-20T09:58:57Z")

</div>

> [@nihil39](#):
>
> Arch Linux here

Me too, I’m using the binary release from [https://paraview.org/download](https://paraview.org/download)

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [February 22, 2024, 9:46am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/8 "2024-02-22T09:46:47Z")

</div>

If it’s not an inconvenience for you, given the fact that you are already using Arch, could you try to install the stable 5.11.2 version that is in the Arch repositories? I really can’t understand what is happening in my system which seems, for the rest, to be working fine.

If it is not possible for you, never mind.

Thank you.

---

<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: [February 22, 2024, 9:54am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/9 "2024-02-22T09:54:13Z")

</div>

I **confirm** that this is not working with paraview package from archlinux package manager.

Looks like an issue with the XML parser, which is using system expat in your case and which is not the case of the binary release.

You may want to open an issue on the arch linux package itself and link to this discussion.

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [February 22, 2024, 12:55pm UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/10 "2024-02-22T12:55:41Z")

</div>

Thank you, I asked for a username and password to file a bug for the Arch Linux package. Apparently for spam reason you have to request an account by mail. I will then post a bug and link this thread. I will report here if it is fixed or not.

---

<div class="post-metadata">

### Author: ![Oblomov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/oblomov/32/288_2.png) [@Oblomov](https://discourse.paraview.org/u/Oblomov)
#### Post date: [March 2, 2024, 10:19am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/11 "2024-03-02T10:19:12Z")

</div>

As an adidtional piece of information, I’m having the same issue in Debian testing/unstable, also with ParaView 5.11.2(+dfsg-6+b1) and libexpat1 2.6.0-1 (not sure which version of libexpat is being used by Arch). I’ll report the issue to Debian and link to this thread.

---

<div class="post-metadata">

### Author: ![Oblomov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/oblomov/32/288_2.png) [@Oblomov](https://discourse.paraview.org/u/Oblomov)
#### Post date: [March 2, 2024, 10:26am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/12 "2024-03-02T10:26:21Z")

</div>

BTW I tried downgrading libexpat1 on my Debian installation to 2.5.0-2+b2 and it solved the issue for me, which seems to confirm that the issue is in the expat library rather than in ParaView itself.

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [March 5, 2024, 9:55am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/13 "2024-03-05T09:55:35Z")

</div>

The expat version I am using now, which causes the problem, is:

```auto
core/expat 2.6.1-1 (116.3 KiB 414.4 KiB) (Installed)
An XML parser library

```

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [March 5, 2024, 10:22am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/14 "2024-03-05T10:22:37Z")

</div>

So it is a bug with libexpat 2.6, not with Paraview, right?  
Maybe Paraview binary version 5.12-RC is using libexpat 2.5?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 5, 2024, 3:45pm UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/15 "2024-03-05T15:45:10Z")

</div>

Yes, ParaView 5.12.0 is using expat 2.5: [https://gitlab.kitware.com/paraview/common-superbuild/-/blob/6999b3a595e1816f40e8018e8ee1aa97c1783452/versions.cmake#L646](https://gitlab.kitware.com/paraview/common-superbuild/-/blob/6999b3a595e1816f40e8018e8ee1aa97c1783452/versions.cmake#L646)

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [March 5, 2024, 3:56pm UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/16 "2024-03-05T15:56:05Z")

</div>

Thank you, if I understand it correctly, Arch Linux tries to compile ParaView against the system version of expat which has this issue. But maybe the problems is related to vtk too from what I can understand reading the bug report in Arch [here](https://gitlab.archlinux.org/archlinux/packaging/packages/paraview/-/issues/4) (I tried to file the bug but they didn’t provide me an account, I wrote them a week ago, but luckily someone filed it for me. 🙂 )

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [March 11, 2024, 9:31am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/17 "2024-03-11T09:31:22Z")

</div>

Maybe a useful information: Paraview 5.12 has been released in Arch Linux and the problem is still here. I think Arch Linux developers are not that keen on using the internal version of the package libraries in general. In our case the internal version is expat 2.5 but the Arch Linux package build is linked against the expat system version (2.6.1) which causes the bug.

---

<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: [March 11, 2024, 9:37am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/18 "2024-03-11T09:37:22Z")

</div>

Which is expected of ArchLinux. We need to fix it.

---

<div class="post-metadata">

### Author: ![nihil39](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nihil39](https://discourse.paraview.org/u/nihil39)
#### Post date: [March 11, 2024, 9:47am UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/19 "2024-03-11T09:47:25Z")

</div>

I have a question/curiosity, I’m not an expert at all. Paraview does not require a specific version of expat for particular reasons, right? Are you using expat 2.5 because it was the latest release when you started to write the code for Paraview 5.12?

By the way I think that if the problem is expat maybe expat developers have to fix the bug, I don’t know if it would be easier for us Arch Paraview user to use in the meantime the binary package downloadable from the Paraview website.

edit: I have just read that the bug is on VTK and someone is working to solve it.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 11, 2024, 6:26pm UTC](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938/20 "2024-03-11T18:26:09Z")

</div>

> [@nihil39](#):
>
> Are you using expat 2.5 because it was the latest release when you started to write the code for Paraview 5.12?

Yes, exactly so: [https://gitlab.kitware.com/paraview/common-superbuild/-/commit/6744ee3df360a374ec66f0793def67b379aca8c3](https://gitlab.kitware.com/paraview/common-superbuild/-/commit/6744ee3df360a374ec66f0793def67b379aca8c3)

expat 2.6.0 came out just about a month before ParaView 5.12.0.

[Next page](https://discourse.paraview.org/t/i-cannot-read-a-vtp-file-i-could-open-yesterday-can-someone-try-to-open-it/13938.md?page=2)
