Jesse Glick created NETBEANS-858:
------------------------------------

             Summary: java.lang.ClassCastException: 
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
                 Key: NETBEANS-858
                 URL: https://issues.apache.org/jira/browse/NETBEANS-858
             Project: NetBeans
          Issue Type: Bug
          Components: platform - JDK Problems
         Environment: dev builds on 8u171 (Ubuntu)
            Reporter: Jesse Glick


I am occasionally getting an error from {{ImageIcon.paintIcon}} in Metal L&F:

{code:none}
java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to 
sun.java2d.xr.XRSurfaceData
        at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:148)
        at sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:356)
        at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:959)
        at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:577)
        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.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
        at javax.swing.ImageIcon.paintIcon(ImageIcon.java:425)
        at 
javax.swing.plaf.basic.BasicButtonUI.paintIcon(BasicButtonUI.java:292)
        at javax.swing.plaf.basic.BasicButtonUI.paint(BasicButtonUI.java:216)
        at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
        at javax.swing.plaf.metal.MetalButtonUI.update(MetalButtonUI.java:150)
        at javax.swing.JComponent.paintComponent(JComponent.java:780)
        at javax.swing.JComponent.paint(JComponent.java:1056)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at 
org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:969)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
        at 
javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
        at 
javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
        at 
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
        at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
        at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
        at 
javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
        at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
        at 
javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
{code}

The portion after {{paintIcon}} varies, e.g. could be from 
{{org.netbeans.core.ui.notifications.FlashingIcon$MyIcon.paintIcon(FlashingIcon.java:328)}}
 (ironically to paint the flashing error icon from an earlier occurrence).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to