Ask Your Question

Fedora 23 away screen hangs because Java Swing app crashes

asked 2016-04-28 05:10:29 -0500

Geoffrey De Smet gravatar image

This is a regression from Fedora 22.

How to reproduce:

  • Open a Java swing app that has an uncaught exception handler and shows a dialog when that happens.
  • Wait until the away screen (or screen saver) shows up and then wait another hour. Then push space to get rid the away screen. It hangs.

What happens:

  • Once the away screen shows up, the Java Swing app starts crashing with this exception (OpenJDK 8).

    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( at sun.java2d.xr.XrSwToPMTransformedBlit.Transform( at sun.java2d.xr.XRDrawImage.renderImageXform( at sun.java2d.pipe.DrawImage.transformImage( at sun.java2d.pipe.DrawImage.copyImage( at sun.java2d.pipe.DrawImage.copyImage( at sun.java2d.pipe.ValidatePipe.copyImage( at sun.java2d.SunGraphics2D.drawImage( at sun.java2d.SunGraphics2D.drawImage( at javax.swing.plaf.nimbus.AbstractRegionPainter.paintWithFixedSizeCaching( at javax.swing.plaf.nimbus.AbstractRegionPainter.paint( at javax.swing.plaf.nimbus.AbstractRegionPainter.paint( at javax.swing.plaf.nimbus.SynthPainterImpl.paint( at javax.swing.plaf.nimbus.SynthPainterImpl.paintForeground( at javax.swing.plaf.nimbus.SynthPainterImpl.paintArrowButtonForeground( at javax.swing.plaf.synth.SynthArrowButton$SynthArrowButtonUI.paint( at javax.swing.plaf.synth.SynthButtonUI.update( at javax.swing.JComponent.paintComponent( at javax.swing.JComponent.paint( at javax.swing.plaf.synth.SynthSplitPaneDivider.paint( at javax.swing.JComponent.paintChildren( at javax.swing.JSplitPane.paintChildren( at javax.swing.JComponent.paint( at javax.swing.JComponent.paintChildren( at javax.swing.JComponent.paint( at javax.swing.JLayeredPane.paint( at javax.swing.JComponent.paintChildren( at javax.swing.JComponent.paintToOffscreen( at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered( at javax.swing.RepaintManager$PaintManager.paint( at javax.swing.RepaintManager.paint( at javax.swing.JComponent.paint( at java.awt.GraphicsCallback$ at sun.awt.SunGraphicsCallback.runOneComponent( at sun.awt.SunGraphicsCallback.runComponents( at java.awt.Container.paint( at java.awt.Window.paint( at javax.swing.RepaintManager$ at javax.swing.RepaintManager$ at Method) at$JavaSecurityAccessImpl.doIntersectionPrivilege( at javax.swing.RepaintManager.paintDirtyRegions( at javax.swing.RepaintManager.paintDirtyRegions( at javax.swing.RepaintManager.prePaintDirtyRegions( at javax.swing.RepaintManager.access$1200( at javax.swing.RepaintManager$ at java.awt.event.InvocationEvent.dispatch(InvocationEvent ...

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-04-28 12:05:36 -0500

genodeftest gravatar image
  1. Are you using Wayland? If yes, don't expect it to work there.

  2. Please file a bug against the java-1.8.0-openjdk package. Can you reproduce this with a very simple Java Swing application? If yes, please add example code to the bug report.

  3. As a workaround you might want to switch to a tty using Ctrl+Alt+Fn with n=3…8 and login and run killall java or use Ctrl+Alt+Del to "just kill your UI". If both don't work, please enable sysrq keys (see Wikipedia and Linux kernel docs for details).

edit flag offensive delete link more


Seems like it's a known, highly duplicated bug, but it's not fixed yet.

Geoffrey De Smet gravatar imageGeoffrey De Smet ( 2016-05-10 06:09:55 -0500 )edit

Question Tools

1 follower


Asked: 2016-04-28 05:10:29 -0500

Seen: 123 times

Last updated: Apr 28 '16