# Paraview segmentation fault core dumped

**URL:** https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694
**Category:** ParaView Support
**Created:** [March 13, 2021, 6:01pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694 "2021-03-13T18:01:37Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [March 13, 2021, 6:01pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/1 "2021-03-13T18:01:37Z")

</div>

Good evening everyone,

I am having some problems with Paraview/ParaFoam since a while: when I press the commands “Pick Center” or “Select Cells On” the program crashes suddenly and returns the following error:

"_/home/cfd-user/OpenFOAM/OpenFOAM-8/bin/paraFoam: line 63: 4710 Segmentation fault (core dumped) LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:ParaView\_LIB\_DIR/mesa paraview "@"_ "

Does anyone know where is the problem ?

What can cause this segmentation core dumped fault?

I already experienced it with different models. I run Paraview/ParaFoam in a Linux/OpenSUSE installation in a virtual machine (running in Win10).

Thanks.

---

<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 13, 2021, 6:14pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/2 "2021-03-13T18:14:15Z")

</div>

> [@GLfast80](#):
>
> What can cause this segmentation core dumped fault?

many things.

> _paraFoam_

This is ParaView discourse. Are you able to reproduce with ParaView ?

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [March 13, 2021, 6:44pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/3 "2021-03-13T18:44:50Z")

</div>

Hi,

yes, this error happens also from a session of ParaView, and I just reproduced it:

“_cfd-user@localhost:~/OpenFOAM/OpenFOAM-8/my\_cases/case2\> paraview_  
_I/O : uncollated_  
_Segmentation fault (core dumped)_”

With the same commands as in ParaFoam: “Pick Center” or “Select Cells On”.  
I use ParaView 5.6.3.

When it happens the first time, then it is mathematical that it happens again every time you use those commands.

Thanks.

---

<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 15, 2021, 9:01am UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/4 "2021-03-15T09:01:01Z")

</div>

Please try with the last version of ParaView:  
[https://www.paraview.org/download/](https://www.paraview.org/download/)

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [May 7, 2021, 11:33am UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/5 "2021-05-07T11:33:37Z")

</div>

I finally have found the time to install it.  
But I am getting some troubles in sort out this issue.

I have installed on a virtual machine OpenFOAM-8 and Paraview v5.6.3 packaged in a Linux OpenSUSE distribution.

Now, I updated Paraview with the newest version 5.9.0, as you suggested. I downloaded the source code, compiled it in the Third Party directory with makeParaview, and the installation was completed successfully.

Paraview v5.9.0 opens up properly when running the script paraview in the respective folders (by manually clicking on it or in a new terminal after I updated the .bashrc file with the proper environment variables).

But when in a shell terminal, where OpenFOAM is running, I type Paraview or ParaFoam this opens up again the version 5.6.3 of Paraview, and not the latest one installed in the same directory.

How can I link Paraview 5.9.0 to OpenFOAM to get the proper Paraview/ParaFoam working?

Thanks in advance for your help.

GL

---

<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: [May 7, 2021, 1:15pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/6 "2021-05-07T13:15:33Z")

</div>

> How can I link Paraview 5.9.0 to OpenFOAM to get the proper Paraview/ParaFoam working?

This is an OpenFOAM question, not a ParaView one.

Why not using ParaView binary release from here:  
[https://www.paraview.org/download/](https://www.paraview.org/download/)

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [May 7, 2021, 1:36pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/7 "2021-05-07T13:36:08Z")

</div>

Yes, I know. But I already asked in others forums and so far could not get any response. I was wondering whether you have some precise procedures to pass me on how to link Paraview with OpenFOAM, to complete the process of installation.  
From my side I tried differents things but without success.

I downloaded also the binary release, in another directory, and it looks working fine so far without the problems encountered with the 5.6.3 version mentioned above.

GL

---

<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: [May 7, 2021, 1:37pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/8 "2021-05-07T13:37:17Z")

</div>

> [@GLfast80](#):
>
> how to link Paraview with OpenFOAM, to complete the process of installation.

This doesn’t make sense.

What are you trying to do ?

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [May 7, 2021, 1:42pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/9 "2021-05-07T13:42:29Z")

</div>

As described above,

"But when in a shell terminal, where OpenFOAM is running, I type paraview or paraFoam this opens up again the version 5.6.3 of Paraview, and not the latest one installed in the same directory.

How can I link Paraview 5.9.0 to OpenFOAM to get the proper Paraview/ParaFoam working?"

The best would be to have the possibility to choose between Paraview 5.6.3 and Paraview 5.9.0 (or whatever) when typing paraview/paraFoam within a shell terminal where OpenFOAM is running.

Can you help on this?

GL

---

<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: [May 7, 2021, 1:44pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/10 "2021-05-07T13:44:35Z")

</div>

Why do you want to run ParaView from the OpenFOAM terminal ? Just run ParaView from your system directly and access your OpenFOAM results.

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [May 7, 2021, 1:59pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/11 "2021-05-07T13:59:45Z")

</div>

Because this is what you normally do in a packaged distribution OpenFOAM+Paraview, where the PV4Foam reader module is integrated and set up to run the included Paraview version. My issue is how to “update” the PV4Foam reader module to run in general another Paraview version which does not come with OpenFOAM. This is what I meant with “complete the process of installation”: integration of a new Paraview version into an already existing OpenFOAM.

There are many instructions on the web, but often not precise and unique, therefore I can’t manage to do it so far.

Yes, to simplify my life, I can just run ParaView from my system directly and access OpenFOAM results, as you suggested.

GL

---

<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: [May 7, 2021, 2:01pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/12 "2021-05-07T14:01:50Z")

</div>

ParaView and OpenFOAM are two separate software and there is no reason for them to be packaged together.

@olesenm .

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [May 8, 2021, 2:19pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/13 "2021-05-08T14:19:44Z")

</div>

I noticed that in Paraview 5.9.0 the .vtk format has been updated to version 5.1: due to this change the routine in OpenFOAM surfaceFeatureConvert, by which we can convert from .vtk to .eMesh format, does not work anymore. The presence of new keywords as OFFSET, CONNETTIVITY, etc generates errors from this script.

Is it possible to save in 4.x .vtk (ASCII) format in Paraview 5.9.0?

Otherwise, do you know a workaround for that?

GL

---

<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: [May 8, 2021, 4:39pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/14 "2021-05-08T16:39:22Z")

</div>

> Is it possible to save in 4.x .vtk (ASCII) format in Paraview 5.9.0?

This is being worked on.

> do you know a workaround for that?

Use another format.

---

<div class="post-metadata">

### Author: ![GLfast80](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@GLfast80](https://discourse.paraview.org/u/GLfast80)
#### Post date: [May 8, 2021, 11:20pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/15 "2021-05-08T23:20:09Z")

</div>

For your information the only file formats supported by the routine surfaceFeatureConvert, needed to create the eMesh files, are the following:

“Valid types: ( bdf eMesh featureEdgeMesh inp nas obj vtk )”

None of them are available in “Save Data…” or “Save Geometry…” in ParaView. In my knowledge the only way is through the .vtk version 4.x file format.

GL

---

<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: [May 9, 2021, 10:31am UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/16 "2021-05-09T10:31:30Z")

</div>

> [@GLfast80](#):
>
> in ParaView. In my knowledge the only way is through the .vtk version 4.x file format.

Unfortunate. Converting from another format (eg: .vtu) to a 4.x .vtk using an old version of ParaView or VTK could be a solution until 4.x support comes back.

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [May 13, 2021, 1:50pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/17 "2021-05-13T13:50:11Z")

</div>

> [@mwestphal](#):
>
> ParaView and OpenFOAM are two separate software and there is no reason for them to be packaged together.
> 
> @olesenm .

I wholeheartedly agree. Packaging them together may be convenient, but is pretty horrible. The real problem here is keeping up with the (minor?) changes in the VTK format, which has been discussed on another thread. The old legacy format was dead simple to parse, which is why lots of different software handled it. The update to vtkCellArray results in changes to the legacy format that takes time to catch up with.

EDIT: added an [OpenFOAM issue](https://develop.openfoam.com/Development/openfoam/-/issues/2094) to update the legacy reading.

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [May 13, 2021, 1:52pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/18 "2021-05-13T13:52:37Z")

</div>

> [@GLfast80](#):
>
> For your information the only file formats supported by the routine surfaceFeatureConvert, needed to create the eMesh files, are the following:
> 
> “Valid types: ( bdf eMesh featureEdgeMesh inp nas obj vtk )”
> 
> None of them are available in “Save Data…” or “Save Geometry…” in ParaView. In my knowledge the only way is through the .vtk version 4.x file format.
> 
> GL

Look more closely for Wavefront `.obj` format. It must be there - at least it is in my paraview.

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [May 13, 2021, 2:01pm UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/19 "2021-05-13T14:01:13Z")

</div>

> [@mwestphal](#):
>
> > How can I link Paraview 5.9.0 to OpenFOAM to get the proper Paraview/ParaFoam working?
> 
> This is an OpenFOAM question, not a ParaView one.
> 
> Why not using ParaView binary release from here:  
> [https://www.paraview.org/download/](https://www.paraview.org/download/)

I can only second that.  
The [OpenFOAM FAQ: _Do I really need the paraview plugins?_](https://develop.openfoam.com/Development/openfoam/-/wikis/modules/visualization#do-i-really-need-the-paraview-plugins)

In short, normally no reason for a regular OpenFOAM user not to just use the regular ParaView binaries.

@mwestphal (or @cory.quammen ?) - could you add the FAQ link somewhere in top-level sticky?  
Would really like to wean people off of the idea that they need to build reader plugins for OpenFOAM. It just causes everyone lots of trouble, and it makes much more sense to concentrate efforts in improving the reader within VTK as required instead.

---

<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: [May 14, 2021, 8:34am UTC](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694/20 "2021-05-14T08:34:09Z")

</div>

I can definitely add a FAQ entry for that !

> [@I want to visualize my OpenFOAM simulation results with ParaView but I'm confused, which version should I use ?](https://discourse.paraview.org/t/i-want-to-visualize-my-openfoam-simulation-results-with-paraview-but-im-confused-which-version-should-i-use/7232):
>
> Short Answer: go to [paraview.org/download](http://paraview.org/download) download the last version of ParaView available Use it to visualize your results Long Answer: OpenFOAM ships with a script named paraFoam, which can be used to call ParaView with custom OpenFOAM-specific reader modules, as well as with the standard reader that comes with ParaView/VTK. As stated in the OpenFOAM wiki, There is almost no reason to use these particular reader modules instead of the official binary release. Also, this discourse cann…

[Next page](https://discourse.paraview.org/t/paraview-segmentation-fault-core-dumped/6694.md?page=2)
