Hello,
I installed OpenFOAM
Hello,
I installed OpenFOAM 1.0.2 on two similiar systems. On the first everyhting went quite smoothly. However, during the second installation everything seemed to go fine until I tried to run FoamX or paraFoam. The error given was "segmentation fault" and both systems have the exact same software installed: Suse 9.2. Alhtough, I cannot start paraview or FoamX, the cases can be run from the terminal. Does anyone know what is wrong? Thanks in advance. |
Your Open-GL set up is incorre
Your Open-GL set up is incorrect. Wrong driver? Get a simple GL program (glxinfo, glxgears) and see if it runs. Check the X-server log files.
|
The only difference between th
The only difference between the 2 systems is that on one (the one that produces the segmentation fault)there is a problem with starting PCMCIA which can be related with the wireless card.
I have seen that both paraFoam and FoamX seem to run on networks. Can this be the problem? I do not think it is related with OpenGL drivers but I will check this better. |
When I enter runFoamX, I recie
When I enter runFoamX, I recieve the following error (line 131: Segmentation fault):
Jobs overview (from $FOAM_JOB_DIR): Running : 0 Finished : 0 Some of the jobs reported as running might actually no longer be running. You can these remove old jobInfo using the FoamX ProcessEditor or with the foamCheckJobs script. Starting NameServer with inet:linux:1234 ... Starting FoamX Host Browser with inet:linux:1234 ... /home/billy/OpenFOAM/OpenFOAM-1.0.2/applications/utilities/preProcessing/FoamX/b in/runFoamXHB: line 131: 11655 Segmentation fault FoamXHostBrowser -ORBNamingAddr $myIOP runFoamXHB : cleanup runFoamXHB: Killing name server nsd(pid 11651). /home/billy/OpenFOAM/OpenFOAM-1.0.2/applications/utilities/preProcessing/FoamX/b in/runFoamXHB: line 66: 11651 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_USER_CONFIG/ns.ref </dev/null |
Your FoamXHostBrowser has cras
Your FoamXHostBrowser has crashed. You probably don't have networking setup or you don't have 'localhost' and the machine name in the /etc/hosts. There is a section in the toplevel README file about this.
|
First of all, I would like to
First of all, I would like to congratulate the OpenFOAM team for this execellent software. I have run worked on some examples and I am very impressed.
In relation to this problem, I have checked the OpenGL drivers and they are OK. I also checked the file /etc/hosts and the localhost is defined with address 127.0.0.1. When I check the installation with foamInstallationTest, everything seems OK. It can ping the localhost and no problem seems to be present in the list. Further suggestions are very welcome. Thank you, Billy. |
Can you do
ssh linux
or
Can you do
ssh linux or rsh linux? Do you have permission to open port 1234 on your machine (linux)? |
rsh does not work.
ssh lin
rsh does not work.
ssh linux gives output: The autenticity of host 'linux (192.168.205.76)' can't be established. ... Are you sure you want to continue connecting (yes/no)? I entered yes and then when I run ssh linux again it asks for a password. Note: I installed OpenFOAM on 2 laptops, which are not connected to a network at this time. Since I am a newbie to linux, I don't know how to check if I have permission on port 1234. BTW, I ran the same command on the other laptop on which OpenFOAM is working fine and the output is the same. Is it possible that it has to do with the network card configuration? |
To enable password-less ssh ty
To enable password-less ssh type "man ssh-keygen" which will give you instructions on how to enable this feature.
Getting rsh to work on the more recent linux distros is more tricky and involves activating the various rsh deamons and utilities. This is done in Suse via Yast in the "network services"->"network services(initd)" interface. |
Thank you very much for all yo
Thank you very much for all your help. I have solved the problem with the installation. The problem was that I always compiled the sources. By not compiling from the sources the programs worked OK. (Please remember I am a total nob using linux. The only reason I changed to linux was to use OpenFOAM but now I like it much more than any other OS.)
As I mentioned I made two OpenFOAM installations on two laptop systems running Suse 9.2. I think I mixed up the gcc versions (Suse version and OpenFOAM version) when I compiled the sources and on one of them this worked and on the other it did not work. The funny thing is that I am almost sure I ran Allwmake with the environment variables defined correctly and linked to the gcc version supplied with OpenFOAM and afterwards I had the segmentation fault errors. On the other I had compiled the sources with gcc which came with Suse and it worked fine. Since I am a newbie to linux, this is very confusing for me. Can there be some option that is activated in the Suse's version and not on the other version? |
Don't know about the option. D
Don't know about the option. Do 'gcc -v' to see the configuration options.
The gcc we ship is the exact one we created the binaries with and works fine for us so I don't really know what and how. |
i have the same problem as Bil
i have the same problem as Billy, and i'm really frustrated. i have tried ssh VM, and passwordless is okay, and when i installFoamtest all OKAY, and when i telnet 127.0.0.1:1234,
[Daniel@VM ~]$ telnet VM 1234 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused but still: [Daniel@VM ~]$ FoamX Starting NameServer with inet:VM:1234 ... Starting FoamX Host Browser with inet:VM:1234 ... /home/Daniel/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 131: 19267 Segmentation fault FoamXHostBrowser -ORBNamingAddr $myIOP runFoamXHB : cleanup runFoamXHB: Killing name server nsd(pid 19261). /home/Daniel/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 66: 19261 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref </dev/null Can anyone help me, thanks in advance! |
If I do telnet 127.0.0.1:1234
If I do telnet 127.0.0.1:1234 I get
telnet: 127.0.0.1:1234: Name or service not known 127.0.0.1:1234: Unknown host Looks like you have some protection issue. Is this the SElinux issue (search this board)? |
Hi, Mattijs, thank you for you
Hi, Mattijs, thank you for your reply.
My SElinux has been disabled many days before since i found some in this board suggesting about that, and i also turned off firewall and reboot many times... I'm a newbie to linux world, according to many board' posts, i found my /etc/hosts or hosts.conf is not bad. I use Fedora core 6, and openFoam-1.3, so far I found blockMesh or paraFoam or icoFoam or icoStructFoam and so on works, but I just want to have my FoamX work (yes, It worked two days before for one time, just one time). I have kept being entangled on this issue for 3 weeks. |
Try not mapping your 'VM' to l
Try not mapping your 'VM' to localhost (127.0.0.1) but instead to its real ip address.
As some kind of security measure Corba does not seem to like to connect to localhost. |
Do you mean to change VM 's IP
Do you mean to change VM 's IP address to real IP address?
After mapping 'VM' to real IP address, I get "uncought mico exception..." as some posts have mentioned, and i have tried to figure it out, but http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif What can i do? |
From your post:
Daniel@VM ~
From your post:
[Daniel@VM ~]$ telnet VM 1234 Trying 127.0.0.1... So either VM is not in /etc/hosts or it is given the 127.0.0.1 address. If I do the same on my machine I get 'Trying : 10.0.0.250' which is my ip address. telnet hunt 1234 Trying 10.0.0.250... telnet: connect to address 10.0.0.250: Connection refused |
Check your host alias in the h
Check your host alias in the host configuration.
IP: 127.0.0.1 Alias: VM If you are using Suse, goto to yast to set it. I found that if the alias is not set up FoamX won't start. Billy |
Hello, now i continue getting
Hello, now i continue getting only when sentence "Segmentation faults", when i type "icoFoam . cavity", which used to work very well before! I'm not sure where i changed?
therefore, firstly, I recompiled the source codes by type ./Allwmake, and after a long time, it finished, and I still got "Segmentation faults", then according to the wiki instruction, I swiched WM_COMPILE_OPTION set to Debug, and after a long long time I got some messages below, what's the problem, can anybody help me, much appreciated! ------------------------------------------------ SOURCE_DIR=. SOURCE=chemkinToFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/specie/lnInclude -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/combustion/lnInclu de -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPDebug/chemkinToFoam.o /home/Daniel/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/chemkinToFo am g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/specie/lnInclude -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/combustion/lnInclu de -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread Make/linuxGcc4DPDebug/chemkinToFoam.o -L/home/Daniel/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPDebug \ -lcombustionThermophysicalModels -lbasicThermophysicalModels -lspecie -lOpenFOAM -ggdb3 -DFULLDEBUG -liberty -o /home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/chemkinToFo am /usr/bin/ld: cannot find -lOpenFOAM collect2: ld returned 1 exit status make: *** [/home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/chemkinToF oam] Error 1 + cd miscellaneous + ./Allwmake + wmake foamDebugSwitches SOURCE_DIR=. SOURCE=foamDebugSwitches.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPDebug/foamDebugSwitches.o /home/Daniel/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/foamDebugSw itches g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread Make/linuxGcc4DPDebug/foamDebugSwitches.o -L/home/Daniel/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPDebug \ -lFoamX -lFoamXServer -L/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxGcc4DPDebug/ lib -lmicocoss2.3.11 -lmico2.3.11 -ldl -lGstream -lGL -lLESfilters -lODE -lcompressibleLESmodels -lfoamUtil -lbasicThermophysicalModels -lfiniteVolume -lcombustionThermophysicalModels -lcompressibleTurbulenceModels -ldieselSpray -ledgeMesh -lengine -lerrorEstimation -ldynamicMesh -lfaceDecompFiniteElement -lfiniteArea -lincompressibleTransportModels -lincompressibleTurbulenceModels -lincompressibleLESmodels -llagrangian -llaminarFlameSpeedModels -lliquids -lrandomProcesses -lsampling -lspecie -lthermophysicalFunctions -ltriSurface -lOpenFOAM -ggdb3 -DFULLDEBUG -liberty -o /home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/foamDebugSw itches /usr/bin/ld: cannot find -lOpenFOAM collect2: ld returned 1 exit status make: *** [/home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/foamDebugS witches] Error 1 + wmake foamInfoExec SOURCE_DIR=. SOURCE=foamInfoExec.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPDebug/foamInfoExec.o /home/Daniel/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/foamInfoExe c g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -I/home/Daniel/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread Make/linuxGcc4DPDebug/foamInfoExec.o -L/home/Daniel/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPDebug \ -lOpenFOAM -ggdb3 -DFULLDEBUG -liberty -o /home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/foamInfoExe c /usr/bin/ld: cannot find -lOpenFOAM collect2: ld returned 1 exit status make: *** [/home/Daniel/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPDebug/foamInfoEx ec] Error 1 ------------------------------------------------- |
Hi Daniel,
From your posts +
Hi Daniel,
From your posts [16]+ Stopped ping VMI get the impression that you are using Ctrl+Z to stop your processes. If this is the case then it might be a problem for FoamX since, the above mentioned sequence stops the process, but that in the linux terminology means: not running but still in memory. That also means: all the resources allocated for the process are still allocated, including different files on the harddisk. Bottomline, when you want to kill a process in linux, use Ctrl+C not Ctrl+Z! Your last post says the compilation did not go well. Remember, it is allways a good discipline to clean the previous compilation, using wcleanAll, before you start a completely new one. I hope my long post will be helpful, Dragos |
All times are GMT -4. The time now is 16:20. |