CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Paraview - Segmentation fault (https://www.cfd-online.com/Forums/paraview/86475-paraview-segmentation-fault.html)

grjmell March 23, 2011 13:03

Paraview - Segmentation fault
 
I know this error has been discussed in places previously, but nowhere did i find the solution. First I installed paraviewopenfoam381 on my ubuntu laptop. When i try to run it, I get a message in the terminal "Segmentation fault". I can't even open it. after searching on google, it seemed that compiling from source would help. So i rebuilt paraview (and enabled python while at it) following this:
http://www.paraview.org/Wiki/ParaView:Build_And_Install

The build is successful, but i get exactly the same segmentation fault. I have installed and built paraview previously on a ubuntu desktop with no problems... anyone have any ideas?

wyldckat March 23, 2011 16:41

Greetings grjmell,

Might I suggest that you skim through my list of topics about problems with ParaView: Related issues to ParaView with OpenFOAM - Fixes and solutions

The most relevant thread might be this one: Segmentation fault when visualizing in ParaView

Best regards and good luck!
Bruno

Bdew8556 August 22, 2019 23:09

This issue is still happening with version 18.10. We're running it on windows.
Tyring to view a VTK file of some bad mesh. I made the file via

foamToVTK -cellSet skewCells

Any ideas??

[Moderator note: 18.10 refers to a version provided by CFD-Support.]

Carlo_P August 23, 2019 03:13

Hey Brett,
this problem appears with all the simulations or only with one specific case?


A simple solution can be to run "paraFoam" that is installed with OpenFoam

Rasmusiwersen December 20, 2019 05:01

Segmentation fault when exporting .vtp to .vtk
 
Hi,

I am experiencing sort of the same problems, when exporting a .vtp file to .vtk.

Following is my python script:

import os,sys
import numpy as np
from decimal import Decimal
from paraview.simple import *

path = './postProcessing/freeSurface'

files = os.listdir(path)
val=np.empty(0)

for name in files:
ff=Decimal(name)
val = np.append(val, ff)

val = np.sort(val)

for name in val:
name = np.str(name)
print(name)
freeSurfacevtp = XMLPolyDataReader(FileName=[path + '/' + name + '/freeSurface.vtp'])
freeSurfacevtp.CellArrayStatus = ['alpha.water']
SaveData(path + '/' + name + '/freeSurface.vtk', proxy=freeSurfacevtp, FileType='Ascii')

I have a directory comprised by folders ranging from 0.02 to 96 for every 0.01. Each folder contains a .vtp file. The above script is run over all folders to convert the .vtp file to .vtk. At folder ~46, i get the error:
Segmentation fault (core dumped)

Note the python script is executed through ubuntu.
I haven't had luck with any debugging yet. Do either of you guys know what might be happening?

jjfm20 January 9, 2024 13:14

Same exact error
 
Hi, I have the same error, do you have any solution? thanks


All times are GMT -4. The time now is 08:43.