<---- template headericclude ----->
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 3 123 LastLast
Results 1 to 15 of 45
  1. #1
    peterlauri Guest

    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 08:50 PM. Reason: More info

  2. #2
    Join Date
    Feb 2004
    Location
    Calgary, Alberta, Canada
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    m4rgin4l Guest
    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.

  4. #4
    peterlauri Guest
    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.

  5. #5
    Join Date
    Jan 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  6. #6
    m4rgin4l Guest
    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).

  7. #7
    peterlauri Guest
    Hi. I did a find -name 'libmawt.so' in the /usr/lib and then I made the sed. And it didn't work

  8. #8
    Cloty Guest
    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

  9. #9
    Cloty Guest
    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.

  10. #10
    Join Date
    Apr 2005
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  11. #11
    Join Date
    Mar 2006
    Location
    Switzerland
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  12. #12
    Join Date
    Nov 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  13. #13
    Join Date
    Apr 2005
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  14. #14
    peterlauri Guest

  15. #15
    dmobrien2001 Guest
    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!

Page 1 of 3 123 LastLast

Similar Threads

  1. Assertion `c->xlib.lock' failed
    By Nandeesh in forum Using Fedora
    Replies: 1
    Last Post: 20th March 2008, 05:51 PM
  2. Replies: 9
    Last Post: 4th December 2007, 03:22 AM
  3. assertion `c->xlib.lock' failure workaround (for java/citrix in fedora 8)
    By bytesniper in forum Guides & Solutions (Not For Questions)
    Replies: 0
    Last Post: 3rd December 2007, 02:27 AM
  4. Replies: 10
    Last Post: 22nd November 2007, 02:21 PM
  5. Replies: 1
    Last Post: 12th November 2007, 10:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]