# Paraview crashes when opneing xdmf files from dolfinx

**URL:** https://discourse.paraview.org/t/paraview-crashes-when-opneing-xdmf-files-from-dolfinx/15581
**Category:** ParaView Support
**Tags:** python
**Created:** [October 18, 2024, 11:55am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opneing-xdmf-files-from-dolfinx/15581 "2024-10-18T11:55:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Skonki](https://discourse.paraview.org/user_avatar/discourse.paraview.org/skonki/32/15393_2.png) [@Skonki](https://discourse.paraview.org/u/Skonki)
#### Post date: [October 18, 2024, 11:55am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opneing-xdmf-files-from-dolfinx/15581/1 "2024-10-18T11:55:33Z")

</div>

Continuing the discussion from [Paraview crashes when opening xdmf files created with FEniCSx](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453):

I am facing a very similar problem. My code crashes either when I want to visualize the results or when i want to apply the properties. The solution in the mentioned post was to name the functionspace in FEniCSx. I applied this solution without success. The file I try to open is very small so I do not think it is a problem of memory.

The specs of my setup are:  
Lenovo Think Pad with an Intel(R) Core™ i7-8550U CPU @1.80GHZ. It’s a 64-Bit-System with Windows 11 Pro version 23H2. I have an Intel(R) UHD Graphics 620 graphic card.  
I use ParaView version 5.13.0 and I have python 3.10.12 installed.

I attached the file. Anyone an idea how to solve this issue?  
[diffusion.xdmf](https://discourse.paraview.org/uploads/short-url/1aAGZ7b2zN1nYdWZuuDDsYMFhXy.xdmf) (13.2 KB)  
[diffusion.h5](https://discourse.paraview.org/uploads/short-url/1hpK5U28o0JzM6G7eVa9cyTed9X.h5) (3.0 MB)

---

<div class="post-metadata">

### Author: ![sherin.sugathan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sherin.sugathan/32/15264_2.png) [@sherin.sugathan](https://discourse.paraview.org/u/sherin.sugathan)
#### Post date: [October 18, 2024, 1:18pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-opneing-xdmf-files-from-dolfinx/15581/2 "2024-10-18T13:18:56Z")

</div>

did you miss to share the diffusion.h5 file?

---

<div class="post-metadata">

### Author: ![Skonki](https://discourse.paraview.org/user_avatar/discourse.paraview.org/skonki/32/15393_2.png) [@Skonki](https://discourse.paraview.org/u/Skonki)
#### Post date: [October 18, 2024, 1:40pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-opneing-xdmf-files-from-dolfinx/15581/3 "2024-10-18T13:40:34Z")

</div>

Yes I did. Sorry for that, the post is updated now.

---

<div class="post-metadata">

### Author: ![Skonki](https://discourse.paraview.org/user_avatar/discourse.paraview.org/skonki/32/15393_2.png) [@Skonki](https://discourse.paraview.org/u/Skonki)
#### Post date: [October 21, 2024, 9:39am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opneing-xdmf-files-from-dolfinx/15581/4 "2024-10-21T09:39:21Z")

</div>

I could solve the issue myself.

Apparently my Python code from WSL did not copy the h5 file correctly but only a reference to the original file within the Ubuntu file system on WSL. Paraview did not recognize / had no access to this file which is why it did break. I have solved the issue by coding a batch script on my windows system which I can call from the WSL linux subsystem. This batch simply copies the files now and then everything works.

Sorry for the inconvenience.
