Find the answer to your Linux question:
Results 1 to 8 of 8
Hi everybody! I have OpenSuse 10.3. I have just installed Java and Eclipse. The Java version is 1.6.0_04. When i run a swing application it give`s me this: Code: libxcb: ...
  1. #1
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167

    Unhappy Java and libxcb problem!!!

    Hi everybody! I have OpenSuse 10.3. I have just installed Java and Eclipse. The Java version is 1.6.0_04. When i run a swing application it give`s me this:

    Code:
    libxcb: WARNING! Program tries to unlock a connection without having acquired
            a lock first, which indicates a programming error.
            There will be no further warnings about this issue.
    libxcb: WARNING! Program tries to lock an already locked connection,
            which indicates a programming error.
            There will be no further warnings about this issue.
    Have you guys have any ideas what could be the problem???

    Cheers!!!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    The same thing happens to me when I run various java programs on openSUSE 10.3. I suspect its something to do with a bug in java (search for libxcb at the opensuse bug tracking site for more details).

  3. #3
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    thanks for the reply daark.child! I have been looked for libxcb on opensuse bugs truck here:

    https://bugzilla.novell.com/buglist....content=libxcb

    but i didn`t find a clear answer!!! Thanks!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Its definitely something to do with JAVA 6 (I remember reporting a bug about this during testing of openSUSE 10.3 when java apps didn't run at all due to problems with xcb). Other people in this thread have reported similar problems (and workarounds for some apps).

  5. #5
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    i was thinking to upgrade the x11! maybe this will solve the problem! The libxcb is a library from x11. Have any idea how to do that? My current Xorg is 7.2.0!
    Cheers!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You could try upgrading X (you can build from source or build rpms if you have the know how). I am not sure if this will resolve that error because as far as I know, the xcb errors affecting java apps are as a result of a problem with java (search on google for xcb+java). You'll note that various Linux distros have these problems using Xorg 6.x or 7.x and the latest versions of JAVA 5 and JAVA 6. For me, the apps work fine even though they show that warning, so I have just left things as they are.

  7. #7
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    Thank for the reply! I found the solution:

    Code:
    sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.6.0.u4-sun-1.6.0.u4/jre/lib/i386/xawt/libmawt.so
    for me it works.... ...and now when i run a swing application in Eclipse it`s not showing anymore that error!!! Thanks again!!!
    Cheers!!!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  8. #8
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Thanks for posting back. The solution works perfectly fine for me as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...