java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion ‘c->xlib.lock’ failed
I tried to play jRisk today and received this lovely error:
~ $ jrisk Locking assertion failure. Backtrace: #0 /usr/lib/libxcb-xlib.so.0 [0x7f14b31229dc] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x1c) [0x7f14b3122ac9] #2 /usr/lib/libX11.so.6(_XReply+0x10a) [0x7f14b336d999] #3 /opt/sun-jdk-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7f14b3891786] #4 /opt/sun-jdk-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7f14b38724eb] #5 /opt/sun-jdk-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7f14b38727bd] #6 /opt/sun-jdk-1.6.0.04/jre/lib/amd64/xawt/libmawt.so (Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x12) [0x7f14b3872a32] #7 [0x7f14be6e9878] java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion 'c->xlib.lock' failed. Aborted
After much Googling, I arrived at the Ubuntu forums where there was talk about using ‘sed’ to alter the awt library. I, however, had a vague recollection that there was some environment variable that could be used to work around the problem.
And lo:
export LIBXCB_ALLOW_SLOPPY_LOCK=true
There it was in the Ubuntu forums. I’m off to conquer Europe.