CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

FoamX starting on Fedora 8 x86_64 and i386 Error nsd ORBIIOPAddr %24myIOP ior %24FOAMX_CONFIGnsref %2360 devnull

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2007, 07:37
Default Dear OpenFoam users, I am t
  #1
New Member
 
Kari Pietarinen
Join Date: Mar 2009
Location: Espoo, Finland
Posts: 3
Rep Power: 17
rationaalinen is on a distinguished road
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/libssl.so.0.9.8b /lib64/libssl.so.0.9.8
ln -s /lib64/libcrypto.so.0.9.8b /lib64/libcrypto.so.0.9.8
ln -s /usr/lib64/elfutils/libebl_x86_64-0.125.so /lib64/libelf.so.0

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

and added following line in
$HOME/penFOAM/OpenFOAM-1.4.1/.bashrc:
export WM_64=on
and following lines in
$HOME/.bashrc
. 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: http://www.openfoam.org |
| \/ 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
rationaalinen is offline   Reply With Quote

Old   December 1, 2007, 10:04
Default Hello, A Good Day to you!
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello,

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!

Philippose
philippose is offline   Reply With Quote

Old   December 1, 2007, 10:37
Default Hi Kari, As Philippose said,
  #3
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
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:
export LIBXCB_ALLOW_SLOPPY_LOCK=1

That's all!

I hope it will be helpful,
Dragos
dmoroian is offline   Reply With Quote

Old   December 1, 2007, 12:12
Default Hello again :-)! I agree th
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
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)


Enjoy!

Philippose
philippose is offline   Reply With Quote

Old   December 1, 2007, 12:22
Default Dear Philippose and Dragos, th
  #5
New Member
 
Kari Pietarinen
Join Date: Mar 2009
Location: Espoo, Finland
Posts: 3
Rep Power: 17
rationaalinen is on a distinguished road
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 www.sourceforge.net as introduced in:
http://www.opencfd.co.uk/openfoam/
-> download

2. Copy libstdc++.so.6.0.9 from ~/gcc-4.2.1/lib64
to
/usr/lib64/ as
libstdc++.so.6

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

- Change
export WM_COMPILER_DIR=$WM_PROJECT_INST_DIR/$WM_ARCH/gcc-4.2.1$WM_COMPILER_ARCH
to
export WM_COMPILER_DIR=/usr

- Change
export JAVA_HOME=$WM_PROJECT_INST_DIR/$WM_ARCH/j2sdk1.4.2_05
to
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 is offline   Reply With Quote

Old   December 1, 2007, 12:56
Default Update to my previous message.
  #6
New Member
 
Kari Pietarinen
Join Date: Mar 2009
Location: Espoo, Finland
Posts: 3
Rep Power: 17
rationaalinen is on a distinguished road
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
rationaalinen is offline   Reply With Quote

Old   December 2, 2007, 12:40
Default The problem lies with libX11.f
  #7
Member
 
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17
asaha is on a distinguished road
The problem lies with libX11.fc8. Installing libX11.fc7 instead will resolve the issue.
asaha is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting FoamX error jaswi OpenFOAM Installation 15 February 7, 2012 15:53
FoamX not starting Javarelated error agrahn OpenFOAM Pre-Processing 5 October 20, 2007 06:33
Java error while starting FoamX erydj OpenFOAM Pre-Processing 2 May 4, 2007 09:53
FoamX Error after upgrade to Fedora Core 6 philippose OpenFOAM Installation 5 October 31, 2006 13:36
Java error while starting FoamX cfdengineering OpenFOAM Pre-Processing 16 June 28, 2006 21:02


All times are GMT -4. The time now is 03:48.