www.linuxpress.org
GNU Not Unix

January 18, 2008

Assertion `c->xlib.lock’ failed

Filed under: Fix — Simone Federici @ 8:59 pm

Assertion `c->xlib.lock’ failed

Ubuntu 7.10, problema con la jdk:

#0 /usr/lib/libxcb-xlib.so.0 [0×2aaab09df9ec]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0×24) [0×2aaab09dfaf4]
#2 /usr/lib/libX11.so.6(_XReply+0×112) [0×2aaab06249c2]
#3 /usr/lib/jvm/sun-jdk-1.5.0/jre/lib/i386/xawt/libmawt.so [0×2aaab037fd4b]
#4 /usr/lib/jvm/sun-jdk-1.5.0/jre/lib/i386/xawt/libmawt.so [0×2aaab036ce8c]
#5 /usr/lib/jvm/sun-jdk-1.5.0/jre/lib/i386/xawt/libmawt.so [0×2aaab036cfee]
#6 /usr/lib/jvm/sun-jdk-1.5.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0×9) [0×2aaab036d1b9]
#7 [0×2aad7828ff7b]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock’ failed.

SOLUZIONE (sia JDK 5 che JDK 6):
sudo sed -i ’s/XINERAMA/FAKEEXTN/g’ /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386/xawt/libmawt.so
sudo sed -i ’s/XINERAMA/FAKEEXTN/g’ /usr/lib/jvm/java-6-sun/jre/lib/i386/xawt/libmawt.so

chiaro che se la JVM la avete in un altra directory, lanciate sed con il fille libmawt.so corretto

grazie al blog:
http://teletecnomobile.blogspot.com/2007/12/assertion-c-xliblock-failed.html

January 8, 2008

Eclipse su Linux

Filed under: Fix — Simone Federici @ 10:51 am

PROBLEMA:
Messaggio di errore:
“Could not initialize the application’s security component. The most likely cause is problems with files in your application’s profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features.

SOLUZIONE:
mkdir $HOME/.mozilla/eclipse

Powered by WordPress