Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th November 2007, 06:48 PM
peterlauri Offline
Registered User
 
Join Date: Nov 2007
Posts: 7
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

I get this error when I try to install Zend Studio on my Fedora Core 8 installation. Last week all went well on a Fedora Core 7 installation.

I assume this has to do with some jre or similar, but I don't know where to start Any ideas? Here is the prompt when I install:

[peterlauri@dhcppc13 ~]$ ./ZendStudio-5_5_0.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

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

Last edited by peterlauri; 11th November 2007 at 07:50 PM. Reason: More info
Reply With Quote
  #2  
Old 11th November 2007, 07:10 PM
toxicshock Offline
Registered User
 
Join Date: Feb 2004
Location: Calgary, Alberta, Canada
Posts: 56
Greetings,

I had the same problem with the BOINC manager application (#./boincmgr). I ended up launching the app itself (#./boinc). HtH.
__________________
There is no patch for human stupidity.
Registered Linux User 243493
Reply With Quote
  #3  
Old 11th November 2007, 07:53 PM
m4rgin4l Offline
Registered User
 
Join Date: Apr 2005
Posts: 9
Here's a description of the problem

http://bugs.sun.com/bugdatabase/view...bug_id=6532373

I used the "sed" workaround and it worked for me:

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

I hope this gets fixed soon.
Reply With Quote
  #4  
Old 11th November 2007, 07:59 PM
peterlauri Offline
Registered User
 
Join Date: Nov 2007
Posts: 7
The "sed" workaround didn't do it for me. I am getting lost. I am thinking to move back to FC7 as it worked very well there.
Reply With Quote
  #5  
Old 11th November 2007, 08:03 PM
rajihammer Offline
Registered User
 
Join Date: Jan 2006
Posts: 26
I ditto m4rgin4l , I've been struggling with Java too. For me it's almost a deal breaker if java cannot be made to work. Cannot make icetea work on Seamonkey my browser of choice, funny(as in irritating)it works with Firefox, icetea that is.
Reply With Quote
  #6  
Old 11th November 2007, 08:23 PM
m4rgin4l Offline
Registered User
 
Join Date: Apr 2005
Posts: 9
That's weird. I've used the workaround on three different computers and it worked on all of them. Are you supplying the correct path for libmawt.so? On my PCs java is not installed on the path that is mentioned in the workaround (I'm using the official JDK rpms).
Reply With Quote
  #7  
Old 11th November 2007, 08:30 PM
peterlauri Offline
Registered User
 
Join Date: Nov 2007
Posts: 7
Hi. I did a find -name 'libmawt.so' in the /usr/lib and then I made the sed. And it didn't work
Reply With Quote
  #8  
Old 13th November 2007, 10:04 AM
Cloty Offline
Registered User
 
Join Date: Jun 2007
Posts: 2
At first,you should run Zend installer in a slint mode
#./ZendStudio-5_5_0.bin -i silent

after installation run
# cd /usr/local/Zend/ZendStudio-5.5.0/jre/lib/i386/xawt
# cp libmawt.so libmawt.so.bak && sed -i ’s/XINERAMA/FAKEEXTN/g’ libmawt.so
Reply With Quote
  #9  
Old 13th November 2007, 10:09 AM
Cloty Offline
Registered User
 
Join Date: Jun 2007
Posts: 2
Can any one help me to setup netbeans 6.0?

I hope if I haven't setup Fedora 8.
Now,I know stable version is important.
Reply With Quote
  #10  
Old 13th November 2007, 04:30 PM
walovaton Offline
Registered User
 
Join Date: Apr 2005
Posts: 21
Peter, I had the same exact problem as you and I could find a solution. Now Zend Studio works fine for me. =)

Let's see, the problem happens for many Java versions on a recent linux distribution, in this case Fedora 8. The workarounds posted here worked fine, the really difficult part is applying the workaround to the right installation of the JVM. In this case it's very tricky because the binary installer uncompress a different JVM in /tmp/install.dir.XXXX (where XXXX are different random numbers) every time you try to execute the binary installer.

So, what I did was to make a temporary copy of the JVM bundled with the Zend installer somewhere else (eg: /root - you can delete it later on) with the following command:
# cp -R /tmp/install.dir.XXXX/Linux/resource/jre/ /root/java

Remember to replace XXXX with the exact numbers. Then apply the fix on that Java installation in the root home:
# cd /root/java/lib/i386/xawt
# sed -i 's/XINERAMA/FAKEEXTN/g' libmawt.so

That's all, now execute the Zend installer this way:
# ./ZendStudio-5_1_0.bin LAX_VM /root/java/bin/java

note that I am using Zend Studio 5.1.0 and you are using a newer one (5.5.0) so I had to previously apply the fix explained here [ http://www.zend.com/support/knowledg...26&view_only=1 ] to make it work. It's an old problem and it's needed to install Zend Studio even on Fedora 7. So you might need to apply this, may be not. But I guess you probably know this already.

Now, follow the regular steps during the installation and then apply the same fix to the definitive Java installation for Zend Studio:
# cd /usr/local/Zend/ZendStudioClient-5.1.0/jre/lib/i386/xawt (your install dir may vary)
# sed -i 's/XINERAMA/FAKEEXTN/g' libmawt.so

That's it my friend... run Zend Studio the regular way as a normal user:
$ /usr/local/Zend/ZendStudioClient-5.1.0/bin/ZDE (again, your install dir may vary)

Cheers,

--
William Lovaton
Reply With Quote
  #11  
Old 13th November 2007, 05:00 PM
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
The problem is the replaced XLib in F8.
XLib in F8 is replaced by http://xcb.freedesktop.org/.

XCB (especially the 1.0) is not nice regarding locks.
I've upgraded libxcb to version 1.1 (upstream) and got some problems solved (Citrix Client in my case).

IMHO the Fedora-Devels should A.S.A.P. repackage xcb and replace 1.0 with 1.1.

hf
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #12  
Old 13th November 2007, 07:04 PM
epharaoh Offline
Registered User
 
Join Date: Nov 2007
Posts: 12
Thumbs up sed works

I tried using libxcb version 1.1 by "yum --enablerepo=development install libxcb.x86_64"

It didn't solve the problem. I then tried the 'sed' workaround and it worked like a charm!

I was trying to run ArgoUML, btw.


Quote:
Originally Posted by red_dungeon
The problem is the replaced XLib in F8.
XLib in F8 is replaced by http://xcb.freedesktop.org/.

XCB (especially the 1.0) is not nice regarding locks.
I've upgraded libxcb to version 1.1 (upstream) and got some problems solved (Citrix Client in my case).

IMHO the Fedora-Devels should A.S.A.P. repackage xcb and replace 1.0 with 1.1.

hf
Reply With Quote
  #13  
Old 13th November 2007, 07:48 PM
walovaton Offline
Registered User
 
Join Date: Apr 2005
Posts: 21
Quote:
Originally Posted by epharaoh
I tried using libxcb version 1.1 by "yum --enablerepo=development install libxcb.x86_64"

It didn't solve the problem. I then tried the 'sed' workaround and it worked like a charm!

I was trying to run ArgoUML, btw.
Mmmm.... maybe in your case updating libxcb to rawhide wasn't necessary.
Reply With Quote
  #14  
Old 13th November 2007, 09:33 PM
peterlauri Offline
Registered User
 
Join Date: Nov 2007
Posts: 7
http://blogit.claymountain.com/sf/in...a-on-FC-8.html solved it for me...
Reply With Quote
  #15  
Old 14th November 2007, 02:40 AM
dmobrien2001 Offline
Registered User
 
Join Date: Mar 2004
Location: Pataskala, OH
Posts: 1
The sed work around works great. F8, FF 2.0.0.9, jdk1.6.0_03. I NEED java applet to access my work Juniper SSL VPN. Thanks for the info!
__________________
Dan
Reply With Quote
Reply

Tags
assertion, failed, java, xcbxlibc50, xcbxlibunlock, `c>xliblock

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
Assertion `c->xlib.lock' failed Nandeesh Using Fedora 1 20th March 2008 05:51 PM
F8 end java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed Gooddy Using Fedora 9 4th December 2007 02:22 AM
assertion `c->xlib.lock' failure workaround (for java/citrix in fedora 8) bytesniper Guides & Solutions (No Questions) 0 3rd December 2007 01:27 AM
help me please: java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed myname74119 Hardware & Laptops 10 22nd November 2007 01:21 PM
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed. keatonvictor Using Fedora 1 12th November 2007 09:33 PM


Current GMT-time: 04:01 (Friday, 25-04-2014)

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 Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat