CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   FoamX starting on Fedora 8 x86_64 and i386 Error nsd ORBIIOPAddr %24myIOP ior %24FOAMX_CONFIGnsref %2360 devnull (

rationaalinen December 1, 2007 07:37

Dear OpenFoam users, I am t
Dear OpenFoam users,

I am trying to run FoamX (OpenFOAM-1.4.1 version) on Fedora 8 Linux x86_64x86_642.6.23.1-49.fc8 SMP system. The same problem occurs also with 32bit installation on another PC. All packages have been updated to the newest available with yum. The X86_64 system has also some 32bit compability libraries because I am running WINE and Firefox32 in 64bit system.

I have created following symbolic links as root:
ln -s /lib64/ /lib64/
ln -s /lib64/ /lib64/
ln -s /usr/lib64/elfutils/ /lib64/

I have also installed 1386 and x86_64 versions on following libraries via yum:
libXpm-devel.x86_64 is not available

and added following line in
export WM_64=on
and following lines in
. HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
export PATH=$PATH:~/OpenFOAM/OpenFOAM-1.4.1/bin/

Result of foamInstallationTest:
Base configuration ok.
Critical systems ok.

I would really appreciate if someone could consult how to solve following FoamX starting problem:

//With my best regards Kari

FoamX &
[1] 3338
[pietarin@newton ~]$ Starting NameServer with inet:newton:1234 ...
Starting FoamX Host Browser with inet:newton:1234 ...
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: |
| \/ M anipulation | |

Exec : FoamXHostBrowser
Date : Dec 01 2007
Time : 12:56:37
Host : newton
PID : 3416
Root :
Case :
Nprocs : 1
HostBrowser running.....
Setting LANG to en_EN
Using jar /home/pietarin/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/Foam X/lib/FoamX.jar
Using jar /home/pietarin/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/Foam X/lib/jlfgr-1_0.jar
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
/home/pietarin/OpenFOAM/OpenFOAM-1.4.1/bin/FoamX: line 244: 3421 Aborted $jdkhome/bin/java -cp "$jars" -DFoamX.SystemPath=$WM_PROJECT_DIR -DFoamX.SystemConfigPath=$FOAMX_CONFIG -DFoamX.UserConfigPath=$FOAMX_CONFIG FoamX.App $orbArgs $args
/home/pietarin/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 139: 3416 Killed FoamXHostBrowser -ORBNamingAddr $myIOP
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 3412).
/home/pietarin/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 66: 3412 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref < /dev/null

philippose December 1, 2007 10:04

Hello, A Good Day to you!

A Good Day to you!

I was looking through the error message you are getting when trying to run FoamX, and the line:

java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock` failed.

is the cause of the problem.

This is something that cropped up in Fedora 8, and is caused by the xlib libraries. There has been a patch to the "xcb_xlib.c" file floating around on Ubuntu websites for a while, and the latest version of xlib (available from the xlib home-page... but needs to be compiled... which is not totally trivial though not too difficult either :-)!).

However, I think this problem should be fixable without having to recompile xlib.... which version of "java" do you use ??

Could you run the following command in a console and paste the results:

java -version

If you are using the Fedora 8 default "Iced Tea" version, things should work without any hassles...

Have a nice weekend!


dmoroian December 1, 2007 10:37

Hi Kari, As Philippose said,
Hi Kari,
As Philippose said, the problem is your X libraries. There are many discussions on the net about this type of error and each side (java and xorg) blames the other. Though there is a work around. Before you start any java application you should initialize an environment variable. In bash it should be:

That's all!

I hope it will be helpful,

philippose December 1, 2007 12:12

Hello again :-)! I agree th
Hello again :-)!

I agree that "export LIBXCB_ALLOW_SLOPPY_LOCK=1" works (in some cases), however, I dont think it will solve the problem in the case of Fedora 8.

The problem is, that the version of xlib that is available for Fedora 8 (so far), does not have the piece of code in "xcb_xlib.c", which looks for this environment variable. So, during the time when I was fighting with a similar problem, I was not able to solve the issue with this bash export alone.

What I did in my case, was to download the latest xlib source code from the official website, and compile it on my system, and then as mentioned, used the "export LIBXCB_ALLOW_SLOPPY_LOCK=1" method to get past the error.

On the other hand, since the current problem directly emanates from the "java" that is being used to start FoamX, the easiest solution would be to use the version of Java shipped with Fedora 8 rather than the Java version separately installed in the "linux" folder of an OpenFOAM installation.

FoamX (from the SVN release of OpenFOAM-1.4.1-dev) on my machine works perfectly fine with the "IcedTea" version of Java that is automatically installed by Fedora 8.

The version of Java I use is:

java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)



rationaalinen December 1, 2007 12:22

Dear Philippose and Dragos, th
Dear Philippose and Dragos, thank you for your fast responce.

At first I used the default java and gcc 64bit versions, which were preferred in OpenFOAM-1.4.1 download section.

As Philippose informed, the compilation of xlib package is not a trivial and in addition I don't want to take risk that I ruin my system.

export LIBXCB_ALLOW_SLOPPY_LOCK=1 in $HOME/.bashrc sounds like a very easy solution. However I am not 100% that doing only that solves the problem, because I have done some other modifications.

Thank you again for your efforts Philippose and Dragos.

ONE WAY TO SOLVE PROBLEM (with gcc and java installed with base system Fedora 8):
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea 64-Bit Server VM (build 1.7.0-b21, mixed mode)
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

1. Download the correct version of (64bit in this case) gcc from as introduced in:
-> download

2. Copy from ~/gcc-4.2.1/lib64
/usr/lib64/ as

3. Modify ~/OpenFOAM/OpenFOAM-1.4.1/.bashrc file (three lines):
- Add

- Change
export WM_COMPILER_DIR=/usr

- Change
export JAVA_HOME=$WM_PROJECT_INST_DIR/$WM_ARCH/j2sdk1.4.2_05
export JAVA_HOME=/usr

4. Update .bashrc files by typing in shell:
. /home/pietarin/.bashrc

Now the FoamX should run smoothly without problems.
This solution procedure has been tested
by running a cavity tutorial case as described in Userguide.

//Best Regards Kari

rationaalinen December 1, 2007 12:56

Update to my previous message.
Update to my previous message.

Point 4 should be:
Update .bashrc files by typing in shell:
. $HOME/.bashrc

Now the Fedora 8 86_64 system gcc and java version are being used instead of extra packages located in ~/OpenFOAM/linux or ~/OpenFOAM/linux64 folders.

foamInstallationTest tells following:
Software versions
Software Version Location
gcc 4.1.2 /usr/bin/gcc
java 1.7.0 /usr/bin/java
gzip 1.3.12 /usr/bin/gzip
tar 1.3.12 /bin/tar
icoFoam ...penFOAM-1.4.1/applications/bin/linux64GccDPOpt/icoFoam

Base configuration ok.

Critical systems ok.

//Best Regards Kari

asaha December 2, 2007 12:40

The problem lies with libX11.f
The problem lies with libX11.fc8. Installing libX11.fc7 instead will resolve the issue.

All times are GMT -4. The time now is 16:31.