![]() |
OF 1.6.x installation, Suse 11.2, ParaView Segementation fault
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 |
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/binAdditionally, 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 |
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 |
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=CI hope this solves the problem! Best regards, Bruno |
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 |
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 |
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 |
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 |
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 installationMy 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 |
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 |
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:
#Good luck, Bruno |
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 |
Hello Peter,
Just in case, try running this again now: Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReaderThen do not forget to add the: Code:
export LC_ALL=CAfter 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 |
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 |
Greetings Peter,
Quote:
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 |
| All times are GMT -4. The time now is 23:44. |