Patching Java to work on Ubuntu Hardy Heron
Posted by driscoll on February 25, 2008 at 10:04 AM | Comments (2)
Java's been broken on Hardy Heron for a while, but I just upgraded to Alpha 5 and found out for myself :-(
The symptoms of the bug are a crash with an error message that contains:
xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
At Dave Shucks blog, I found a patch that works:
LIB_TO_PATCH=libmawt.so
for f in `find /opt -name "$LIB_TO_PATCH"`
do
echo "Patching library $f"
sudo sed -i 's/XINERAMA/FAKEEXTN/g' "$f"
done
Where "/opt" is a directory where you keep your JDKs.
The fix is widely available on the internet, but I thought it was worth restating here.
Bookmark blog post: del.icio.us Digg DZone Furl Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
This bug has been around for a while. They did something to patch it in gutsy, but regressed it in hardy. There's a simpler workaround in this bug report:
https://bugs.launchpad.net/ubuntu/+source/libxcb/+bug/87947
export LIBXCB_ALLOW_SLOPPY_LOCK=1
Posted by: kellyc2702 on February 28, 2008 at 01:12 AM
-
Thanks! That's certainly a fix that'll make people less nervous ;-)
Posted by: driscoll on February 28, 2008 at 09:06 AM
|