Submitted On 13-MAR-2007
DmitryBaryshkov
I've got the same behavoir on my debian box (sid + parts of experimental).
I was able to produce a trace with x11 libs:
(gdb) bt
#0 0xb7f327f2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0xb7dd6dc1 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb7dd8638 in abort () from /lib/i686/cmov/libc.so.6
#3 0xb7dd04ac in __assert_fail () from /lib/i686/cmov/libc.so.6
#4 0xb518b770 in xcb_xlib_unlock () from /usr/lib/libxcb-xlib.so.0
#5 0xb51db390 in _XReply (dpy=0x828fa00, rep=0xb7d81a10, extra=0, discard=0)
at ../../src/xcb_io.c:364
#6 0xb52e322e in XineramaQueryScreens ()
from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so
#7 0xb52c1ed7 in xineramaInit ()
from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so
#8 0xb52c2188 in awt_init_Display ()
from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so
#9 0xb52c248f in Java_sun_awt_X11GraphicsEnvironment_initDisplay ()
from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so
#10 0xb5cb74fe in ?? ()
#11 0x080588e8 in ?? ()
#12 0xb7d81bd8 in ?? ()
#13 0x00000000 in ?? ()
Submitted On 19-MAR-2007
Hi.
We have this bug in our bugzilla as well.
I attached strace output for
Java 1.4.2
Java 1.5.0
Java 1.6.0
there:
https://bugzilla.novell.com/show_bug.cgi?id=252510
Please let me know, if you need more info.
Regards,
Daniel
Submitted On 19-MAR-2007
Is it possible to attache files here? I would attach those strace output files here ... I just don't want to make this totally unreadable ;)
Submitted On 19-MAR-2007
See also Bugreport in X.Org Bugzilla:
https://bugs.freedesktop.org/show_bug.cgi?id=9336
Submitted On 19-MAR-2007
# cat > Hello.java << EOF
import java.awt.*;
public class Hello extends Frame {
public static void main(String argv[])
{
new Hello();
}
Hello() {
Label hello = new Label("Hello World");
//add(hello, "Center");
//setSize(200, 200);
//setVisible(true);
}
}
EOF
# javac Hello.java
# java Hello
java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted
#6 0xb7e7b7bb in __assert_fail () from /lib/libc.so.6
#7 0xb1dc7742 in xcb_xlib_unlock () from /usr/lib/libxcb-xlib.so.0
#8 0xb1e11412 in _XReply () from /usr/lib/libX11.so.6
#9 0xb1f52c7e in getAwtLockFunctions () from /usr/lib/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/i386/xawt/libmawt.so
#10 0xb1f3cc87 in Java_sun_awt_X11GraphicsDevice_initIDs ()
from /usr/lib/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/i386/xawt/libmawt.so
#11 0xb1f3ce03 in Java_sun_awt_X11GraphicsDevice_initIDs ()
from /usr/lib/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/i386/xawt/libmawt.so
#12 0xb1f3d046 in Java_sun_awt_X11GraphicsEnvironment_initDisplay ()
from /usr/lib/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/i386/xawt/libmawt.so
Submitted On 20-MAR-2007
It looks like SUN is using a statically linked version of libXinerama in its java.
Doing a:
LD_PRELOAD=~/xorg/install/lib/libXinerama.so.1.0.0 DISPLAY=:0 java Hello
with a version of the libXinerama from X.Org works around the issue. This lib can be stripped down this function to XineramaQueryScreens().
This function however has received one single fix by Alan Coopersmith of SUN since it has been incorporated into the XFree86 tree. This fix however is entirely unrelated to this problem.
This indicates that SUN is using a copy of the libXinerama in java which predates the version that was incorporated in XFree86 in 2000. It's possible that the version comes from old X.Org's SI.
Submitted On 28-MAR-2007
Stefan Dirsch <sndirsch@suse.de>
I figured out that
LD_PRELOAD=~/xorg/install/lib/libXinerama.so.1.0.0 DISPLAY=:0 java Hello
only works with SUN Java 1.4.2, but doesn't help when using SUN Java 1.5.0 or SUN Java 1.6.0. You still get the xcb assertion with newer SUN Java versions than 1.4.2.
Submitted On 02-APR-2007
This is in the Debian bug database in two places:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402165
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414535
Regards,
Andrew McMillan.
Submitted On 18-APR-2007
One workaround is to compile xcb with -DNDEBUG in CFLAGS.
There is a recent proposal on the xcb list to make that the default if it is configured w/o --debug; I don’t know whether that will happen.
Submitted On 01-MAY-2007
Pretty serious regression since xcb is coming into common usage. Will Sun fix this bug any time soon?
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
Submitted On 02-JUL-2007
It *is* a bug of java, XCB only checks some assertions that haven't been checked before. The bug in Java is basically, that it is linked statically against libXinerama - so bugs in that library cannot be fixed inside awt.
The assertion in XCB will not go away, because triggering it just means, that behavior in the multithreaded case was undefined with libX11 w/o XCB. It's rather possible, that the workaround will go away soon, in which case java would completely cease to function on modern Linux systems.
Submitted On 02-JUL-2007
>the test uses X11 library for LockDisplay() and Xext library for _XReply(). And it looks like the direct calls to LockDisplay() are not intercepted by XCB and so XReply() triggers the assertion :
XReply() is an Xlib function and should not be implemented in Xext.
What I seem to gather from the analysis is that Java replaces some of the Xlib functions and thus - depending on the context - one or the other version gets called. Java should not link against libX11 or any subset thereof nor should it link against any system provided X libraries.
I'm therefore not convinced if 'notabug' is the right resolution of this problem.
Submitted On 26-JUL-2007
I spoke with several colleagues on the fd.o and XCB side of this problem, and we managed to track down this problem with more detail. As far as we can tell, the JDK statically links with a libXinerama built against Xlib without XTHREADS #defined. This makes LockDisplay() compile to nothing. However, the JDK dynamically links to the system Xlib, which normally does have XTHREADS on any modern system. This never represented a supported configuration, even well before XCB; you cannot use an extension library that doesn't use XTHREADS with an Xlib that does use XTHREADS. XCB just exposes the problem, because an XCB-based Xlib always uses XTHREADS, and it needs the LockDisplay and UnlockDisplay macros to call the locking hooks because it does additional XCB-related processing in those hooks; thus, it includes locking correctness assertions in lieu of failing mysteriously when a library fails to do proper locking.
I spoke with Tom Marble of Sun about this at OSCON, and he and I both agreed
that this bug lies with the JDK; it needs to either dynamically link to the
system libXinerama, or statically link a libXinerama that uses XTHREADS (to
*hopefully* match the system Xlib it dynamically links), or statically link an
Xlib without XTHREADS. Xlib and extension libraries like libXinerama must
agree about XTHREADS.
I have resolved the XCB bug
<https://bugs.freedesktop.org/show_bug.cgi?id=11390> as NOTOURBUG. Please
reopen this bug. Tom Marble said he would look into fixing it in the JDK and
the OpenJDK.
- Josh Triplett <josh@freedesktop.org>
Submitted On 24-AUG-2007
My fedora just started this behavior. Yesterday it was fine, then when I did the usual update of my fc8, it suddenly stopped working. None of my java programs run anymore. =(
rawhide fedora with java version "1.5.0_06"
When I downgraded the libX11 library, the problem went away.
[root@wiz ~]# ll /var/cache/yum/development/packages/libX11*
-rw-rw-r-- 1 root root 814407 2007-04-07 04:37 /var/cache/yum/development/packages/libX11-1.0.3-8.fc7.i386.rpm
-rw-rw-r-- 1 root root 820903 2007-08-22 08:03 /var/cache/yum/development/packages/libX11-1.1.2-2.fc8.i386.rpm
-rw-rw-r-- 1 root root 680039 2007-04-07 04:37 /var/cache/yum/development/packages/libX11-devel-1.0.3-8.fc7.i386.rpm
-rw-rw-r-- 1 root root 1109904 2007-08-22 08:03 /var/cache/yum/development/packages/libX11-devel-1.1.2-2.fc8.i386.rpm
rpm -Uhv --oldpackage /var/cache/yum/development/packages/libX11*-1.0.3-8.fc7.i386.rpm
Preparing... ########################################### [100%]
1:libX11 ########################################### [ 50%]
2:libX11-devel ########################################### [100%]
yay, it works. Thanks for the pointers or I would never have sorted this out. I will report the bug at fedora if I can.
Submitted On 07-SEP-2007
In response to a link in the evaluation: the desktoplinux article says nothing about XCB at all, so that statement in the evaluation seems inaccurate.
Submitted On 07-SEP-2007
nick_sacco
To the anonymous Fedora user: does the sed workaround a few comments back work for you?
Submitted On 15-SEP-2007
I have the same problem with OpenSuSE 10.3.
The sed-workaround works for me.
Many thanks for it!
Submitted On 02-OCT-2007
another anon fedora user here.
The sed trick worked for me.
But, first I did a find /usr -name 'libmawt*' to find all of them.
This probably helped keep me from giving up since my problem was with a linux install of matlab. It had its own java libraries in /usr/local/matlab/sys/.....
Anyway. Thanks.
Submitted On 05-OCT-2007
Thanks to the poster with the sed trick. That worked for me (opensuse 10.3). The same version of java 1.6.0_03 ran without problems under Ubuntu 7.10.
Submitted On 11-OCT-2007
hercules888
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=98765
Submitted On 11-OCT-2007
I tried the sed workaround on openSUSE 10.3 to the files in both the OS's JRE and Matlab's JRE, on an x84_64. The system JRE, Matlab and Matlab JRE are all 64 bit. The sed workaround didn't work.
I still have to do export LIBXCB_ALLOW_SLOPPY_LOCK=1 and run Matlab from a terminal. :-(
Submitted On 12-OCT-2007
d3viCe
The sed workaround does not work for me. Azureus and Firefox crash.
Where is the fixed 7b22? I can see only 7b21, which still has this problem. I can't wait to stop using windows to access my bank account, this is really really annoying.
Submitted On 13-OCT-2007
d3viCe
I've just installed 7b22 and it still triggers the assertion.
Submitted On 15-OCT-2007
Aioria
I solved this problem in fedora 7 x86_64;
download this:
libX11-1.0.3-8.fc7.i386.rpm
libX11-1.0.3-8.fc7.x86_64.rpm
libX11-devel-1.0.3-8.fc7.x86_64.rpm
and execute this;
[root@localhost ~]$ r[root@localhost aioria]# rpm -Uvh --force libX11-1.0.3-8.fc7.i386.rpm
[root@localhost ~]$ rpm -Uvh --force libX11-1.0.3-8.fc7.x86_64.rpm
[root@localhost ~]$ rpm -Uvh --force libX11-devel-1.0.3-8.fc7.x86_64.rpm
and java apps run ok !!
suerte !!
Submitted On 15-OCT-2007
Aioria
I solved this problem in fedora 7 x86_64;
download this:
libX11-1.0.3-8.fc7.i386.rpm
libX11-1.0.3-8.fc7.x86_64.rpm
libX11-devel-1.0.3-8.fc7.x86_64.rpm
and execute this;
[root@localhost aioria]# rpm -Uvh --force libX11-1.0.3-8.fc7.i386.rpm
[root@localhost ~]$ rpm -Uvh --force libX11-1.0.3-8.fc7.x86_64.rpm
[root@localhost ~]$ rpm -Uvh --force libX11-devel-1.0.3-8.fc7.x86_64.rpm
and java apps run ok !!
Lucks !!
Submitted On 09-NOV-2007
KEG
Issue occurred in Fedora 8 install with Java JRE 1.6.001 running Jin client for ICC.
Previously in Fedora 7, using same JRE, there were no issues.
I upgraded to JRE 1.6.003 to no avail. I attempted to use JRE included with distro, to no avail.
I implemented "sed" fix listed above and it worked. Just an FYI to Fedora 8 users who might stumble across same issue.
Submitted On 09-NOV-2007
Is there a backport to JDK 1.6 for this? I would really like to run IntelliJ IDEA and it won't run in 1.7.
Submitted On 15-NOV-2007
This should be included in the JDK 6 update 4 as well.
Submitted On 20-NOV-2007
JanSonnek
Yes, I have the same problem, when starting netbeans on Fedora Core 8:
$ java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
/usr/local/netbeans-6.0beta1/bin/../platform7/lib/nbexec: line 406: 2814 Neúspěšně ukončen (SIGABRT) "/usr/java/jdk1.6.0/bin/java" -Djdk.home="/usr/java/jdk1.6.0" -classpath "/usr/local/netbeans-6.0beta1/platform7/lib/boot.jar:/usr/local/netbeans-6.0beta1/platform7/lib/org-openide-modules.jar:/usr/local/netbeans-6.0beta1/platform7/lib/org-openide-util.jar:/usr/java/jdk1.6.0/lib/dt.jar:/usr/java/jdk1.6.0/lib/tools.jar" -Dnetbeans.dirs="/usr/local/netbeans-6.0beta1/nb6.0:/usr/local/netbeans-6.0beta1/ide8:/usr/local/netbeans-6.0beta1/java1:/usr/local/netbeans-6.0beta1/xml1:/usr/local/netbeans-6.0beta1/apisupport1:/usr/local/netbeans-6.0beta1/enterprise4:/usr/local/netbeans-6.0beta1/mobility8:/usr/local/netbeans-6.0beta1/profiler2:/usr/local/netbeans-6.0beta1/ruby1:/usr/local/netbeans-6.0beta1/visualweb1:/usr/local/netbeans-6.0beta1/soa1:/usr/local/netbeans-6.0beta1/identity1:/usr/local/netbeans-6.0beta1/uml4:/usr/local/netbeans-6.0beta1/harness:/usr/local/netbeans-6.0beta1/cnd1:" -Dnetbeans.home="/usr/local/netbeans-6.0beta1/platform7" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx377m' '-Dcom.sun.aas.installRoot=/usr/local/glassfish-v2-b58g' '-client' '-Xms32m' '-XX:PermSize=32m' '-XX:MaxPermSize=200m' '-Dapple.laf.useScreenMenuBar=true' '-XX:+UseConcMarkSweepGC' '-XX:+CMSClassUnloadingEnabled' '-XX:+CMSPermGenSweepingEnabled' org.netbeans.Main --userdir "/home/xsonnek/.netbeans/6.0beta1" "--branding" "nb"
Submitted On 25-NOV-2007
MChandras
I do have the same problem on eclipse when trying to run a java program. Its really annoying...
Submitted On 25-NOV-2007
avimeney
sed workaround worked for:
Fedora 8 x86_64 (2.6.23.1-49.fc8)
JDK 1.5.0 Update 13
Submitted On 26-NOV-2007
eliwap
In Fedora 8 - Found out that if you remove or comment out the fontpath line in xorg.conf, all is well.
Submitted On 01-DEC-2007
I just installed Fedora Core 8, released less than a month ago. The problem is still there with JDK 1.6.0_03 (which ran fine on Fedora 6 and 7). I tried the sed fix
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre/lib/i386/xawt/libmawt.so
but it didn't work. I looked for fontpath in xorg.conf (as suggested recently) but didn't see it there to comment out :-(. libxcb was installed from libxcb-1.0-3.fc8.i386.rpm
Submitted On 09-DEC-2007
I also encountered this error using the Debian package for JVM version 1.6.0.03.
The suggestion to use "sed" to modify the binary helped to remove the bug on my system.
Submitted On 09-DEC-2007
tarjei
the "sed fix" worked for me on Fedora 8
Submitted On 16-DEC-2007
I tried the sed fix time ago. Though it worked, the graphics applications decreased their performance noticeably.
This has not changed with recent mustang update 3. Now, instead of an error, there is a warning "libxcb: WARNING! Program tries to unlock a connection without having acquired"
I am working with an OpenSuse 10.3 completely updated and the performance decrease occurs with 1.5 and mustang.
Submitted On 25-DEC-2007
I beg your pardon? FIXED? Hell no!
The sed workaround is extremely dirty and just a VERY temporary workaround. As is with any product, downgrading is NOT a fix, especially not if it's a downgrade of a dependency. Also, even if it would be fixen in java 1.7, a patch for 1.6 and 1.5 is STILL needed, since it will certainly take a lot of time before all applications have switched to java 1.7, if at all.
I COMMAND sun to reopen this bug.
Submitted On 14-JAN-2008
franklohr
The sed - fix worked für JDK6 on amd_64 opensuse 10.2 system. Bug occured after updating Xorg 7.2 to Xorg 7.3
libmawt.so is located at /usr/lib64/jvm/jre-1.6.0-sun/lib/amd64/xawt
Submitted On 16-JAN-2008
theTrax
I have the same problem on opensuse 10.3
I use jdk 1.6.004, the sed workaround didn't work for me
it just removes the error message and after that while netbeans is starting it crashes
I wonder how sun closed this bug, they didn't provide any fix for it even on their latest jdk release
Should sun close the bug based on some users suggested solution which is not a real solution and don't work on all system
I hope sun reopen this bug and provide a real fix for it in 1.6.005 release
Submitted On 21-JAN-2008
arekm
Comment on 15-NOV-2007 said "This should be included in the JDK 6 update 4 as well."
Unfortunately someone responsible for bugs being fixed ignored this one because this bug is NOT fixed in update 4 (for which people were waiting for long time):
[arekm@tarm ~/test]$ cat Hello.java
import java.awt.*;
public class Hello extends Frame {
public static void main(String argv[])
{
new Hello();
}
Hello() {
Label hello = new Label("Hello World");
//add(hello, "Center");
//setSize(200, 200);
//setVisible(true);
}
}
[arekm@tarm ~/test]$ javac Hello.java
[arekm@tarm ~/test]$ java Hello
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7f166dd]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x2b) [0xb7f16811]
#2 /usr/lib/libX11.so.6(_XReply+0xf8) [0xad389d03]
#3 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xad4918ce]
#4 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xad46e067]
#5 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xad46e318]
#6 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xad46e61f]
#7 [0xb5ce9e9d]
#8 [0xb5ce2edd]
#9 [0xb5ce2edd]
#10 [0xb5ce0249]
#11 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x621c40d]
#12 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x6310378]
#13 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x621c2a0]
#14 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x363) [0x6272153]
#15 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7cea96d]
#16 [0xb5ce9e9d]
#17 [0xb5ce2d77]
#18 [0xb5ce0249]
#19 /usr/lib/jvm/java-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x621c40d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
zsh: abort java Hello
[arekm@tarm ~/test]$ java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
Submitted On 02-FEB-2008
Mat.Engel
There is a workaround: just give Shell-command
export LIBXCB_ALLOW_SLOPPY_LOCK=1
before you start a java program.
I inserted that line in my shell scripts which call java programs, and it is working fine. I did it also for the NetBeans start procedure, with the same success. (I am using NetBeans 5.5.1).
I got it from the java wrapper which is included in Suse Linux 10.3.
Submitted On 03-FEB-2008
kcbehler
Tried to get firefox with java running under openSuse 10.3 x86_64.
Finally trowing away all java x86_64 stuff and replacing with 32bit versions, this error message remained.
Thanks to search knowledge base I found Mat.Engel's workaround.
Now it works.
Submitted On 26-FEB-2008
Ashesh_Vashi
sed works for me...
My configuration is:
Linux 2.6.23.1-42.fc8 #1 SMP i686
Submitted On 06-MAR-2008
Thanks! sed works on JRE:
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/java/jre1.6.0_05/lib/i386/xawt/libmawt.so
My configuration is Fedora 8 (libxcb-1.0-3.fc8) on JRE 1.6.0_05
- Clara Yeung
Submitted On 11-MAR-2008
Thanks!
sed also works with Fedora 8 64 bit and jre1.6.0_05 (x64)
cat /etc/redhat-release
Fedora release 8 (Werewolf)
sh jre-6u5-linux-x64-rpm.bin
rpm -ivh jre-6u5-linux-amd64.rpm
rpm -q -a | grep jre
jre-1.6.0_05-fcs
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/java/jre1.6.0_05/lib/amd64/xawt/libmawt.so
Tora
Submitted On 15-MAR-2008
While not a substitute for fixing the JRE locking bug caused by statically linking a non-XTHREADS libXinerama, Jamey and I recently announced a change to Xlib/XCB and XCB which should, among other things, address this problem. Our change introduces a new handoff mechanism in XCB, and uses that mechanism in Xlib/XCB. The new mechanism no longer relies on hooking LockDisplay and UnlockDisplay, and thus no longer cares any more than Xlib does about whether Xlib callers use correct locking. Thus, our change removes the infamous locking assertions. Anyone experiencing this problem should try building XCB and Xlib/XCB with the patches from http://lists.freedesktop.org/archives/xcb/2008-March/003347.html and retesting.
- Josh Triplett
Submitted On 25-MAR-2008
testa-xp:/java/netbeans-6.0.1/bin # ./netbeans
java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
./../platform7/lib/nbexec: line 440: 6336 Abortado "/usr/java/latest/bin/java" -Djdk.home="/usr/java/latest" -classpath "/java/netbeans-6.0.1/platform7/lib/boot.jar:/java/netbeans-6.0.1/platform7/lib/org-openide-modules.jar:/java/netbeans-6.0.1/platform7/lib/org-openide-util.jar:/java/netbeans-6.0.1/platform7/lib/locale/boot_ja.jar:/java/netbeans-6.0.1/platform7/lib/locale/boot_pt_BR.jar:/java/netbeans-6.0.1/platform7/lib/locale/boot_zh_CN.jar:/java/netbeans-6.0.1/platform7/lib/locale/org-openide-modules_ja.jar:/java/netbeans-6.0.1/platform7/lib/locale/org-openide-modules_pt_BR.jar:/java/netbeans-6.0.1/platform7/lib/locale/org-openide-modules_zh_CN.jar:/java/netbeans-6.0.1/platform7/lib/locale/org-openide-util_ja.jar:/java/netbeans-6.0.1/platform7/lib/locale/org-openide-util_pt_BR.jar:/java/netbeans-6.0.1/platform7/lib/locale/org-openide-util_zh_CN.jar:/java/netbeans-6.0.1/platform7/lib/locale/swing-l10n_pt_BR.jar:/usr/java/latest/lib/dt.jar:/usr/java/latest/lib/tools.jar" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/java/netbeans-6.0.1/nb6.0:/java/netbeans-6.0.1/ide8:/java/netbeans-6.0.1/java1:/java/netbeans-6.0.1/xml1:/java/netbeans-6.0.1/apisupport1:/java/netbeans-6.0.1/enterprise4:/java/netbeans-6.0.1/mobility8:/java/netbeans-6.0.1/profiler2:/java/netbeans-6.0.1/ruby1:/java/netbeans-6.0.1/visualweb1:/java/netbeans-6.0.1/soa1:/java/netbeans-6.0.1/identity1:/java/netbeans-6.0.1/uml4:/java/netbeans-6.0.1/harness:/java/netbeans-6.0.1/cnd1:" -Dnetbeans.home="/java/netbeans-6.0.1/platform7" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx354m' '-Dcom.sun.aas.installRoot=/home/raydacosta/glassfish-v2ur1' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-XX:MaxPermSize=200m' '-Xverify:none' '-Dapple.laf.useScreenMenuBar=true' org.netbeans.Main --userdir "/root/.netbeans/6.0" "--branding" "nb"
Submitted On 28-APR-2008
HelioGuilherme
For me the downgrade of libX11 was the solution. Thanks.
OpenSUSE 10.2
Linux 2.6.23.12-default #2 SMP Sun Jan 13 21:42:45 WET 2008 i686 i686 i386 GNU/Linux
Submitted On 05-MAY-2008
Hi I am usinf fedora 8 and I have downloaded the 2 updates from Fedora 8 Update Repository
1.http://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386/libxcb-1.0-4.fc8.i386.rpm
2.http://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386/libxcb-devel-1.0-4.fc8.i386.rpm
And the nebeans-6.0-linux.sh installer is working and I have installed jdk-6u3-linux-i586-rpm.bin befor installing Netbeans-6
Submitted On 05-MAY-2008
Hi I am usinf fedora 8 and I have downloaded the 2 updates from Fedora 8 Update Repository
1.http://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386/libxcb-1.0-4.fc8.i386.rpm
2.http://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386/libxcb-devel-1.0-4.fc8.i386.rpm
And the nebeans-6.0-linux.sh installer is working and I have installed jdk-6u3-linux-i586-rpm.bin befor installing Netbeans-6
Submitted On 08-MAY-2008
same problem today with fedora 8, issue is good after use
yum install libxcb in terminal console.
Submitted On 27-MAY-2008
UndiFineD
Keimpe de Jong
Problem is still there with the latest JRE (Java SE 6 Update 10 Beta (Build 23)) on openSuSE 10.3
Kindof crucial for MatLab
Submitted On 28-MAY-2008
The fix must be in JD 6u10 as well as in the latest JDK 7.0 builds, so it looks strange to face the assertion again. Could you provide a stack trace (using gdb, for example) when the assertion is triggered?
Submitted On 01-OCT-2008
arpitj
I have installed JRE1.5.0_12 on Fedora 8.
When I type javaws from terminal it returns 'java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed' error.
I followed the sed - workaround but still no luck.I dont have java-1.5.0-sun-1.5.0.11or any such folder under jvm directory. Folders i have are java-1.5.0-gcj-1.5.0.0
java-1.7.0-icedtea-1.7.0.0
jre
jre-1.5.0
jre-1.5.0-gcj
jre-1.7.0
jre-1.7.0-icedata
jre-gcj
jre-icedata
and the sed command i used is
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/jjre/lib/i386/xawt/libmawt.so
But still no luck. Anyone else who had the same problem and was able to solve it.?
Thanks,
Arpit
jain.arpit23@gmail.com
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|