Segmentation Fault with ParaView After Upgrade
Hi all,
I recently upgraded OF to v2.2.0. However, whenever I run a case and view the results with paraView, I get the following error; whereby paraView just automatically closes. HTML Code:
Segmentation fault (core dumped) Code:
paraFoam -builtin Does anyone have any ideas on how to solve this problem? Thanks, David |
I ran into the same problem and posted it on a new thread as I haven't seen this one. Here is what I posted:
------------------------------------ So, as suggested by another member here I was trying to run the motorBike example found in Quote:
Quote:
Code:
Running surfaceFeatureExtract on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike Any idea what's the cause of this? Thanks. EDIT: Just wanted to say that the introductory "Cavity" tutorial worked just fine with the compiled OF, so my "newbie" guess is that it has to do with SnappyHexMesh. -------------------------------------------- Can anyone help? |
Hey sudo,
What I found, in my case, was when I upgraded to OF 2.2.0, OF was still referring some of its files to my 2.1.1 installation, while others were referred to the 2.2.0 installation. Unfortunately, I'm not familiar enough with Linux to solve this problem, so the approach I took was reformatting my computer; which solved the problem. For me this approach wasn't a big deal since this computer is dedicated for running OF. And I realize that ideally you want to avoid this. So, hopefully someone else who is more familiar with Linux and OF would know how the solve this referencing problem (assuming this is the reason why your installation is not working). David |
Thanks David,
In my case I compiled OF from source, it took like 3 hrs. to do that. I do not have this problem with the installed binary (same version) so I am thinking something went wrong with the compilation. I will give it a few days then recompile. |
Greetings to all!
What does your "~/.bashrc" file look like? Do the last few lines look something like the following :confused:: Code:
source /opt/openfoam211/etc/bashrc Code:
alias of211='source /opt/openfoam211/etc/bashrc' Then whenever you start a new terminal, decide which version you want, by running:
Code:
wmUNSET Best regards, Bruno |
Thanks Bruno but I don't think that's what I have wrong, see, since I compiled OF 2.2.0 from source, the last line of my .bashrc file (that I added per the installation instructions) is
Code:
source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc The one compiled from source is the one that is giving me the segmentation fault. |
Hi sudo,
OK, I've managed to take a look into this... could you attach the file "log.snappyHexMesh" that you should have in the "motorBike" folder. Because inside that file should be the whole story as to why it crashed! Best regards, Bruno |
Easy as pie, here:
File: log.snappyHexMesh Code:
-------------------------------------------------------------------------- |
Hi sudo,
:eek: Wicked error... but it seems familiar. OK, let's try and isolate-and-conquer this thing... 1. Right after you've executed Allrun, try this: Code:
foamJob -s -p snappyHexMesh -overwrite 2. If it does, check the first couple of lines after you've executed that command... you should find something like this: Code:
Executing: /usr/bin/mpirun -np 6 /opt/openfoam220/bin/foamExec -prefix /opt snappyHexMesh -overwrite -parallel | tee log 3. The error given is likely to either be related to something in the path above, such as a reference to a "machines" file, or it is because there is some network card/interface in the way... I have a reference to a solution on my blog post "Notes about running OpenFOAM in parallel", namely "decomposed case to 2-cores (Not working) (more precisely post #21 has valuable info)"... and I quote: Quote:
Bruno |
So I did:
Code:
$ ./Allrun Code:
$ foamJob -s -p snappyHexMesh -overwrite Code:
Parallel processing using OPENMPI with 6 processors |
The last quote in my previous post already has the possible solution, which is to specify which network interfaces to ignore. Said interfaces have to be listed directly using the mpirun line.
To know which network interfaces your system has got, you can run: Code:
ifconfig -a |
Ok, so:
1. I ran Code:
$ ifconfig -a Code:
eth0 Link encap:Ethernet HWaddr 00:24:8c:a7:21:f2 Code:
$ mpirun --mca btl_tcp_if_exclude lo,eth0,eth1 Code:
-------------------------------------------------------------------------- 3. I even tried to exclude TCP all together Code:
$ mpirun --mca btl ^tcp Code:
-------------------------------------------------------------------------- |
You forgot the rest of the train ;) namely:
Code:
-np 6 /home/OF_user/OpenFOAM/OpenFOAM-2.2.0/bin/foamExec -prefix /home/OF_user/OpenFOAM snappyHexMesh -overwrite -parallel | tee log Code:
mpirun --mca btl_tcp_if_exclude lo,eth0,eth1 -np 6 /home/OF_user/OpenFOAM/OpenFOAM-2.2.0/bin/foamExec -prefix /home/OF_user/OpenFOAM snappyHexMesh -overwrite -parallel | tee log Code:
mpirun --mca btl ^tcp -np 6 /home/OF_user/OpenFOAM/OpenFOAM-2.2.0/bin/foamExec -prefix /home/OF_user/OpenFOAM snappyHexMesh -overwrite -parallel | tee log |
Ok, fair enough but it didn't make any difference, and I think I know why :D.
From the annoying error message about the missing file, it seems that OF is set up to use the Openmpi 1.6.3 that shipped with vesion 2.2.0, thing is I never compiled it! The Openmpi I have is version 1.4.5 that I installed from Ubuntu 12.10 repos to compile OF. So, in short, do I just follow the instructions in the "INSTALL" file and compile Openmpi 1.6.3 via $ configure and $ make all install? So no wmake? And do I have to uninstall the old version? Just wanna be sure. Thanks a lot Bruno, your help is much appreciated. |
Hi sudo,
OK, edit the file "$WM_PROJECT_DIR/etc/bashrc"... you can see it's path by running: Code:
echo "$WM_PROJECT_DIR/etc/bashrc" Code:
export WM_MPLIB=OPENMPI Code:
export WM_MPLIB=SYSTEMOPENMPI If it still has problems, go to OpenFOAM's folder and run Allwmake once again: Code:
cd $WM_PROJECT_DIR Then try once again running in parallel... hopefully it will now work, ot at least give a proper error message :rolleyes: Best regards, Bruno |
AWESOME!!! There is at least something to celebrate, the previous error (segmentation fault) is gone. In more details:
1. I did these, just as Bruno suggested. Code:
echo "$WM_PROJECT_DIR/etc/bashrc" Code:
export WM_MPLIB=OPENMPI Code:
export WM_MPLIB=SYSTEMOPENMPI Code:
--> FOAM FATAL ERROR: |
I finally did this:
Code:
cd $WM_PROJECT_DIR |
All times are GMT -4. The time now is 22:11. |