# Paraview crashes when opening xdmf files created with FEniCSx

**URL:** https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453
**Category:** ParaView Support
**Tags:** python
**Created:** [April 17, 2022, 1:17am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453 "2022-04-17T01:17:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![teja781](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@teja781](https://discourse.paraview.org/u/teja781)
#### Post date: [April 17, 2022, 1:17am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453/1 "2022-04-17T01:17:22Z")

</div>

Hello,

I am trying to open an xdmf file that was generated by running some code on FEniCSx, to visualize the results. But the software crashes when I hit the ‘Apply’ button after import. This only happens when I run the code on multiple processes. The output file generated by the exact same code when run in serial was handled by ParaView without any trouble.

Here are the files I am having trouble with.

[s.h5](https://discourse.paraview.org/uploads/short-url/9AwKHkEzObHVEZkG4NShOkGOJcK.h5) (91.8 KB)  
[s.xdmf](https://discourse.paraview.org/uploads/short-url/uYSOWvboYl1Ir4KUZp2StuAdeJx.xdmf) (1.0 KB)

Thank you for any help I can get!

---

<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: [April 17, 2022, 7:07am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453/2 "2022-04-17T07:07:56Z")

</div>

Is the file size of “s.h5” the same for serial and multiprocess calculations?

---

<div class="post-metadata">

### Author: ![teja781](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@teja781](https://discourse.paraview.org/u/teja781)
#### Post date: [April 17, 2022, 6:27pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453/3 "2022-04-17T18:27:16Z")

</div>

The file size in the serial case is slightly bigger. 94344 bytes compared to 94016 bytes. I am attaching the files for serial case, just in case.

[s.h5](https://discourse.paraview.org/uploads/short-url/dkdnnbJ4NUmkXmKyXIUTKyCakKV.h5) (92.1 KB)  
[s.xdmf](https://discourse.paraview.org/uploads/short-url/gxefTM7jN5XyhD1qp7MnRHfP7yP.xdmf) (1.0 KB)

Thank you

---

<div class="post-metadata">

### Author: ![teja781](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@teja781](https://discourse.paraview.org/u/teja781)
#### Post date: [April 17, 2022, 11:38pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453/4 "2022-04-17T23:38:09Z")

</div>

I have no idea why, but naming the function instance when I create it in FEniCSx solves this problem for me. Perhaps a bug in the FEniCSx software.

Thank you

---

<div class="post-metadata">

### Author: ![total\_noobie](https://discourse.paraview.org/user_avatar/discourse.paraview.org/total_noobie/32/9747_2.png) [@total\_noobie](https://discourse.paraview.org/u/total_noobie)
#### Post date: [August 15, 2022, 6:19am UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453/5 "2022-08-15T06:19:43Z")

</div>

> [@teja781](#):
>
> I have no idea why, but naming the function instance when I create it in FEniCSx solves this problem for me. Perhaps a bug in the FEniCSx software.

Sorry for bumping this up, but:

What do you mean by naming the function instance? Response would be very much appreciated.

---

<div class="post-metadata">

### Author: ![teja781](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@teja781](https://discourse.paraview.org/u/teja781)
#### Post date: [August 15, 2022, 10:43pm UTC](https://discourse.paraview.org/t/paraview-crashes-when-opening-xdmf-files-created-with-fenicsx/9453/6 "2022-08-15T22:43:54Z")

</div>

After creating a function instance, name it using the name method. For example,

```auto
u = fem.Function(V)
u.name = "Displacement"

```
