This bug can be worked around by setting the NO_J2D_MITSHM=1 environment variable when running graphical Java applications.