Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Software

Software Help on software problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2007-11-03, 02:38 PM CDT
RVF16's Avatar
RVF16 Offline
Registered User
 
Join Date: Mar 2007
Posts: 148
Java problem on fedora release 8 - test 3

Hallo to all.

While testing Fedora 8 Test 3, i found this problem when trying to run some java apps :

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

After Googling it i found a thread where someone pointed the finger to libx11 updates.

So i installed the fc7 libX11-1.0.3-8.fc7.i386.rpm and libX11-devel-1.0.3-8.fc7.i386.rpm with the following command :
rpm -ihv --force libX11-1.0.3-8.fc7.i386.rpm libX11-devel-1.0.3-8.fc7.i386.rpm
(you can find them by fc7 search in http://rpm.pbone.net/index.php3/stat/2/simple/2)

and then removed the problematic version (libX11-1.1.3-4.fc8.i386.rpm and libX11-devel-1.1.3-4.fc8.i386.rpm) via SMART package manager.
It worked so try it out until an update comes out with this resolved.

Regards.
Reply With Quote
  #2  
Old 2007-11-03, 03:15 PM CDT
leigh123linux's Avatar
leigh123linux Offline
Administrator
 
Join Date: Oct 2006
Location: Hampshire UK
Posts: 16,644
Quote:
Originally Posted by RVF16
Hallo to all.

While testing Fedora 8 Test 3, i found this problem when trying to run some java apps :

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

After Googling it i found a thread where someone pointed the finger to libx11 updates.

So i installed the fc7 libX11-1.0.3-8.fc7.i386.rpm and libX11-devel-1.0.3-8.fc7.i386.rpm with the following command :
rpm -ihv --force libX11-1.0.3-8.fc7.i386.rpm libX11-devel-1.0.3-8.fc7.i386.rpm
(you can find them by fc7 search in http://rpm.pbone.net/index.php3/stat/2/simple/2)

and then removed the problematic version (libX11-1.1.3-4.fc8.i386.rpm and libX11-devel-1.1.3-4.fc8.i386.rpm) via SMART package manager.
It worked so try it out until an update comes out with this resolved.

Regards.
Have you reported it to Java as it is a fault with there rpm or bin not being compiled against the new version libX11 !!
Reply With Quote
  #3  
Old 2007-11-03, 03:59 PM CDT
RVF16's Avatar
RVF16 Offline
Registered User
 
Join Date: Mar 2007
Posts: 148
I don't know where to report this cause as far as i understood reading another relevant thread one points own finger to the other.
Java (1.6.0_03) does work great with previous libX11 so probably its libX11 faulty.

And here is another one regarding Firestarter firewall :
After running it if you dare to click the "Active Connections" label it will crash after a while.
It is described as "***MEMORY-ERROR***: firestarter[3290]: GSlice: assertion failed: sinfo->n_allocated > 0"
Still searching for a solution to this one.
Reply With Quote
  #4  
Old 2007-11-03, 04:08 PM CDT
leigh123linux's Avatar
leigh123linux Offline
Administrator
 
Join Date: Oct 2006
Location: Hampshire UK
Posts: 16,644
Quote:
Originally Posted by RVF16
I don't know where to report this cause as far as i understood reading another relevant thread one points own finger to the other.
Java (1.6.0_03) does work great with previous libX11 so probably its libX11 faulty.

And here is another one regarding Firestarter firewall :
After running it if you dare to click the "Active Connections" label it will crash after a while.
It is described as "***MEMORY-ERROR***: firestarter[3290]: GSlice: assertion failed: sinfo->n_allocated > 0"
Still searching for a solution to this one.
F8 is cutting edge and uses a new version libX11 that java is incompatible with ., as for the firewall issue have you tried the new firewall frontend that is included as standard as it is better than Firestarter.
Reply With Quote
  #5  
Old 2007-11-04, 01:40 AM CST
RVF16's Avatar
RVF16 Offline
Registered User
 
Join Date: Mar 2007
Posts: 148
I have messed a bit with the new fedora firewall and it looks great butl the reason i still want firestarter on my desktop is the display of active connections.
Many, switching from Windows to Linux, have expressed the need for a NetLimiter style application and firestarter is a step towards that though its early days for an adequate app.

Now regarding Java i got your point about the incompatibility with the latest libX11. Where do i report this, in http://bugs.sun.com/? The only thing i have is this message "java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed." and i got confused with their bug report form.
Reply With Quote
  #6  
Old 2007-11-04, 06:03 AM CST
a_user Offline
Registered User
 
Join Date: Nov 2007
Posts: 5
a fix from somewhere on the net

Hello,
I have found the following post on one of the Sun's forums. It did work for me. All yo have to to is to change the installation path in the trick.
***********(COPIED)***
Submitted On 01-JUN-2007

I worked with jcristau and christoph4 via IRC on #debian-x, and we managed to
track down the problem with broken locking in Sun Java 1.5 and 1.6. It only
occurs if Java finds the Xinerama extension, at which point it does something
broken with locking and triggers the assertion. If Java never finds the
Xinerama extension, it doesn't trigger the assertion for broken locking.

The following workarounds address this problem:

For sun-java5-bin:
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/xawt/libmawt.so

For sun-java6-bin:
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so

The same fix (applied to the appropriate file) might work for other
proprietary JDKs.

- Josh Triplett
************************************************** *********

All the credit goes to Josh Triplett, I just had the same problem you had and found this on the web.

Best.

a_user
Reply With Quote
  #7  
Old 2007-11-04, 06:23 AM CST
pressh Offline
Registered User
 
Join Date: Mar 2006
Posts: 76
Great! Thanks for the workaround, it works like a charm on fc8 with java6.

Of course I had to put in the appropriate path to libmawt.so, so for the move novice users on the forum, for the workaround above, do as root in the terminal
Code:
sed -i 's/XINERAMA/FAKEEXTN/g' $YOURPATHTOJRE/lib/i386/xawt/libmawt.so
where $YOURPATHTOJRE should be changed to where you installed java, probably something like /opt/jre1.6 (well you know where it is as you installed it yourself).

All credits of course to J.T.
Reply With Quote
  #8  
Old 2007-11-06, 10:07 AM CST
aljo666 Online
Registered User
 
Join Date: Jan 2005
Posts: 3
Does anyone have the solution to this for the 64bit version?
Reply With Quote
  #9  
Old 2007-11-09, 08:30 PM CST
myname74119's Avatar
myname74119 Offline
Registered User
 
Join Date: Nov 2006
Posts: 36
me too

Does anyone have the solution to this for the 64bit version?
Reply With Quote
  #10  
Old 2007-11-10, 07:03 AM CST
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 208
This works for the 64-bit version, too (so far!).
Reply With Quote
  #11  
Old 2007-11-10, 11:15 PM CST
giulix's Avatar
giulix Online
Registered User
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,030
Thanks, a_user. It's been driving me mad for the last 2 days...
__________________

2.6.31.12-174.2.3.fc12.i686.PAE on a
AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
ASUS M3A78-EM - 2x1024 DDR2/800 - EN9600GT
No O/C; SELINUX=disabled
Reply With Quote
  #12  
Old 2007-11-11, 01:43 AM CST
jdeslip's Avatar
jdeslip Offline
Registered User
 
Join Date: May 2006
Location: Berkeley, CA
Posts: 621
even after applying the sed command I still get this error when trying to run matlab

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

I installed the jre-6u3-linux-i586-rpm.bin to the default /usr/java location and then did:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so

but the matlab problem still persists. It also persists if change to using the icedtea version by running alternatives ...

Any help?
Reply With Quote
  #13  
Old 2007-11-11, 01:59 AM CST
jdeslip's Avatar
jdeslip Offline
Registered User
 
Join Date: May 2006
Location: Berkeley, CA
Posts: 621
ok, I figured it out - my (somewhat ancient) version of matlab came with its own java. So I needed to do

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/local/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
Reply With Quote
  #14  
Old 2007-11-12, 03:12 PM CST
evans Offline
Registered User
 
Join Date: Oct 2005
Location: CA, USA
Posts: 125
jdeslip,

thanks for the tip about the java in the the matlab installation directory. I have now ran the sed command twice:


sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre/lib/i386/xawt/libmawt.so
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/local/matlab704/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so

I still get the same error with matlab though? are there other libmawt.so? there's one under my mathematica install directory, should I do that one too? why?
__________________
FC4, then FC5, skipped FC6 and now FC7
HP pavilion zd8000 (zd8230us)
P4
1G RAM
http://www.humboldt.edu/~te8/misc/hpzd8230us_fc5.html
Reply With Quote
  #15  
Old 2007-11-12, 04:41 PM CST
evans Offline
Registered User
 
Join Date: Oct 2005
Location: CA, USA
Posts: 125
OK, I should have played a bit more: doing

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/local/matlab704/sys/java/jre/glnx86/jre1.5.0/lib/i386/motif21/libmawt.so

did it for me (note the motif21 directory).

Thanks!
__________________
FC4, then FC5, skipped FC6 and now FC7
HP pavilion zd8000 (zd8230us)
P4
1G RAM
http://www.humboldt.edu/~te8/misc/hpzd8230us_fc5.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Problem for Fedora8 Test 2 release techman2006 Laptop 1 2007-09-22 02:57 PM CDT
Fedora 8 Test 1 Release Time? hceylan General Support 10 2007-08-08 11:19 AM CDT
Will Fedora 7 Test 4 > release be by update coyoteboy General Support 12 2007-05-08 03:31 PM CDT
Fedora 7 - Test Release 2 - Now Available bob News 1 2007-03-01 10:06 AM CST
Fedora Core 2 test release 1 now available! Bill Nottingham gmane.linux.redhat.fedora.general 1 2004-06-14 04:20 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:24 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Languages translations delivered by vBET 2.3.8