|
[Sponsors] |
OF 1.6.x installation, Suse 11.2, ParaView Segementation fault |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 22, 2010, 06:05 |
OF 1.6.x installation, Suse 11.2, ParaView Segementation fault
|
#1 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hello all,
perhaps somebody is able to help me. Everything works fine ... at least I think so ... but starting paraview always results in a segmentation fault. My distribution is Suse 11.2. Has anybody an idea, how I can go on to find out the problem? I looked already a lot around, but I didn't found anything usefull. Best Regards, Peter |
|
April 22, 2010, 10:28 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Peter,
In Ubuntu 10.04 (comes out at the end of this month) I've had to rebuild both Paraview and PV3FoamReader, so that Paraview wouldn't simply result in a "core dumped". The actual reason was associated with the fact that when the OpenFOAM environment is set, Paraview searches for plugins to load, and PV3FoamReader depends on something that clashes with something else that Paraview has loaded. To confirm if the problem you have is the same as I had, edit your $HOME/.bashrc file and comment out OpenFOAM's bashrc. Then start a new terminal and go to the folder where Paraview's binary is and run paraview: Code:
cd $HOME/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linux/bin ./paraview Additionally, if you had written the steps you took or what guide you followed to installed OpenFOAM on your machine, it would have helped to isolate the issue So, I can only assume that you unpacked the ThirdParty binary package and only built OpenFOAM's code, thus the "segmentation fault" problem. Best regards, Bruno
__________________
|
|
April 22, 2010, 11:38 |
|
#3 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hi,
yeah ... thank you very much, that is it. I initialiase my OF environment always with an alias so it was quite easy for me to reproduce what you wrote .... just let out he initializing before starting paraview ... ;-) Can you tell me what you exactly mean with a complete rebuild? I didn't used the binaries but compiled my OF version incl. paraview from scratch ... Thx & best Regards, Peter |
|
April 22, 2010, 11:54 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hello again,
Quote:
If you did, the other possibility that comes to mind is that your Linux box (Suse) isn't in english. If it isn't, then that's the problem! With OpenFOAM's environment active, edit the file "$WM_PROJECT_DIR/bin/paraFoam" and insert somewhere before it calls paraview, the following line: Code:
export LC_ALL=C I hope this solves the problem! Best regards, Bruno
__________________
|
||
April 22, 2010, 12:14 |
|
#5 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hi,
you're right my Suse distribution is german. But what you write would mean, that paraview should run properly isn't it? But paraview and of course paraFoam make the problem. At the end I tried it with you proposal as well as I made an export LC... before starting paraview as well as I made an export LANGUAGE="en_US.UTF8" before starting paraview but nothing worked. Do you have further ideas? Should I change the whole language of my system for that and try out? Best Regards, Peter |
|
April 22, 2010, 12:34 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi,
OK, three other possibilities:
If none of these work, but you still want to figure out why it won't work properly, we'll need to know:
Best regards, Bruno
__________________
|
|
April 22, 2010, 14:24 |
|
#7 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hello,
I recompiled paraview right now, because I figurend out that I hadn't installed qt4-dev. Didn't helped, so next step will be deleting and recompiling qt4 as well, perhaps the missing qt4 dep. is already here a problem. Next steps will follow on Monday. Have a nice weekend & thx, Peter |
|
April 26, 2010, 04:50 |
|
#8 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hello,
hope everybody is fine directly after the weekend ;-) ...but now to my threat from last week. I could reduce the problem on one file now. After a simple solution would be difficult in my opinion and your proposals were quite good but for nearly every proposals at the end I had a reason why that couldn't be the reason I searched myself. In the OF lib directory is a file called libOpenFOAM.so. I know, it's one of the essential OF libraries. I have no idea what paraview has to do with this file, but, if I rename this file paraview works, and if the file is there, paraview gives a segmentation fault. I can't delete it because OF would complain when the file is missing. Has anybody an idea, what the reason for this paraview behaviour can be? Thanks and best Regards, Peter |
|
April 26, 2010, 07:29 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Peter,
As far as I know, the reason for that happening is that OpenFOAM+PV3FoamReader were built with one gcc version, and Paraview was built with another gcc version, thus each depend on one or more C/C++ libraries of different versions! So, what gcc version are you using? The one that comes with openSUSE or the one that comes with OpenFOAM? The best bet right now would be to use only the openSUSE's version. In $WM_PROJECT_DIR/etc/settings.sh, edit it and search and change to be like this: Code:
# Select compiler installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # compilerInstall = OpenFOAM | System compilerInstall=System My advice would be to rename your current $HOME/OpenFOAM folder (just in case keep it) and make a new $HOME/OpenFOAM folder and unpack only the source package ThirdParty, git clone again OpenFOAM 1.6.x and build everything with the system compiler!! Best regards, Bruno
__________________
|
|
April 26, 2010, 07:37 |
|
#10 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hi,
you were right ... I used the OF compiler to build the OF environment. Now I will follow your suggest not to use the OF compiler but build the complete environment with the system compiler. Hope that works. I will report as I know more. Thx & best Regards, Peter |
|
April 26, 2010, 07:47 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
I forgot to not forget setting WM_NCOMPPROCS to the number of processors. This way it'll build way faster!
You can add this to the end of OpenFOAM's bashrc script: Code:
# # Set the number of cores to build on # WM_NCOMPPROCS=1 if [ -r /proc/cpuinfo ] then WM_NCOMPPROCS=$(egrep "^processor" /proc/cpuinfo | wc -l) [ $WM_NCOMPPROCS -le 8 ] || WM_NCOMPPROCS=8 fi echo "Building on " $WM_NCOMPPROCS " cores" export WM_NCOMPPROCS Good luck, Bruno
__________________
Last edited by wyldckat; April 26, 2010 at 07:49. Reason: typo and bad phrasing fixed |
|
April 27, 2010, 07:24 |
|
#12 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hello Bruno,
first the bad point ... recompile with the system compiler wasn't successful, I've the same problem as before. Give paraview the link to the libOpenFOAM.so library and starting up paraview results in a segmentation fault. Four your information: The gcc version that I used:gcc-Version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) You've any other ideas? Best regards, Peter |
|
April 27, 2010, 08:50 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hello Peter,
Just in case, try running this again now: Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader ./Allwclean ./Allwmake Then do not forget to add the: Code:
export LC_ALL=C After all of this, if it still seg faults, then.... well, then it's reaaaally weird what's going on! The only other thing that comes to mind is that you might have some other program folder added to the environment LD_LIBRARY_PATH variable that has some particular library that get's mixed up somehow in the middle of the look up of libraries. So, you could try:
Best regards, Bruno
__________________
|
|
June 8, 2010, 03:36 |
|
#14 |
New Member
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 17 |
Hello,
to close this thread: I tried nearly everything, but without any great success. At the end, I got last week the updated source files over git. Now paraView starts but when using paraFoam the mesh is corrupted in most cases. Convert the mesh to vtk and read it in with the same reader works, so probably there's a bug and this will be fixed hopefully with the next release ... Best Regards, Peter |
|
June 8, 2010, 19:22 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Peter,
Do you mean ParaView from git, or OpenFOAM from git? If you mean ParaView, edit the $WM_PROJECT_DIR/bin/paraFoam script and change where it says ".OpenFOAM" to ".foam", because the plugin available starting from ParaView 3.8.0 can open properly the OpenFOAM cases... or at least it should And last I saw, the git version of ParaView was already in version 3.9.0! If you only mean OpenFOAM's git version, there is a thread that has a tweaked script for using foamToVTK+ParaView: http://www.cfd-online.com/Forums/ope...-parafoam.html Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OF 1.6 installation on SUSE 11.2 | jonya | OpenFOAM Installation | 15 | May 3, 2010 06:05 |
ParaView segmentation fault only for multiphase | gwierink | OpenFOAM | 9 | March 25, 2010 08:23 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |
[OpenFOAM] Segmentation fault with paraFoam and paraview 3.6.1 on Fedora 11 32 and 64 bit | nanes | ParaView | 2 | September 11, 2009 10:12 |
Paraview installation troubles | jjhall | OpenFOAM Installation | 3 | April 17, 2008 13:59 |