I have the bad luck of suffering from a bug in java8,
that doesn't seem to be a big issue for anybody else, so Oracle is not going to fix it before java9.
The bug has Bug-ID 7172749 (also note the related and duplicate bugs)
and it just happens all the time on a certain linux machine.
I'm experiencing the problem on an Ubuntu 14.04.3 LTS with jdk1.8.0_u66.
However, on another box with Ubuntu 12.04.3 LTS and the same JDK version, i can't reproduce the problem at all.
What puzzles me is that this doesn't seem to be a showstopper for anybody else, so I guess maybe I'm making a particularly dump mistake.. I'm running the Oracle-JDK (as opposed to OpenJDK), because our customer uses the same version (albeit on windows) and the idea was to be close to their environment.
So, my question is, how to get around this problem (e.g. install X11-library xy, start my java-program with a magic -XXjava2dfailsafe parameter or sth along these lines)
and join the flock of people who can comfortably wait for the actual problem to be fixed by oracle?
Best regards Tobi
Btw, my stackstrace looks like this:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:145)
at sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:353)
at sun.java2d.SurfaceDataProxy.updateSurfaceData(SurfaceDataProxy.java:498)
at sun.java2d.SurfaceDataProxy.replaceData(SurfaceDataProxy.java:455)
at sun.java2d.SurfaceData.getSourceSurfaceData(SurfaceData.java:233)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:566)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1014)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:813)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1021)
[...]