Java: xcb_xlib.c exception in linux

Source: Internet
Author: User
Java: xcb_xlib.c exception in linux-Linux general technology-Linux programming and kernel information. For details, see the following. Today, I am developing a java verification code program. Whether it is a self-written verification code or the image-taglib that calls jarkta, I will output a bunch of errors in the console: Assertion 'C-> xlib. lock' failed. I checked a lot of information and found that this is a jdk Bug or a Federo8 Bug.

The reason is that xcb's program design is too strict, and an assertion check occurs on the 50 lines of a source code, which makes some previously "non-standard design" programs unable to be executed, unfortunately, all JAVA awt packages and swing are "non-standard", so my graphic Verification Code cannot pass. The solution is to directly upgrade the libxcb package in Federo.

Yum -- enablerepo = development update libxcb

Then edit the system environment variable/etc/profile.

LIBXCB_ALLOW_SLOPPY_LOCK = 1

EXPORT

Solve the problem after restarting the computer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.