java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

YouTrack | 8 months ago
  1. 0

    CCE (in casting to XRSurfaceData) in rendering

    YouTrack | 8 months ago
    java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
  2. 0

    How can i work around the ClassCastException in java2d (Bug-ID 7172749)

    Stack Overflow | 12 months ago | tobi42
    java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
  3. 0

    Try to run a manual regression test closed/java/awt/event/MouseEvent/MouseEventsDuringDrag on XToolkit with jdk8 (circa b38). Chance is, you will get java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData at sun.java2d.xr.XRRenderer.validateSurface(XRRenderer.java:65) at sun.java2d.xr.XRRenderer.drawLine(XRRenderer.java:84) at sun.java2d.SunGraphics2D.drawLine(SunGraphics2D.java:2137) at sun.awt.X11.XTextAreaPeer$BevelBorder.paintBorder(XTextAreaPeer.java:1233) at javax.swing.border.CompoundBorder.paintBorder(CompoundBorder.java:117) at javax.swing.JComponent.paintBorder(JComponent.java:947) at javax.swing.JComponent.paint(JComponent.java:1055) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5224) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1486) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1417) at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306) at javax.swing.RepaintManager.paint(RepaintManager.java:1210) at javax.swing.JComponent._paintImmediately(JComponent.java:5172) at javax.swing.JComponent.paintImmediately(JComponent.java:4983) at javax.swing.JComponent.paintImmediately(JComponent.java:4995) at sun.awt.X11.XTextAreaPeer$AWTTextArea.repaintNow(XTextAreaPeer.java:994) at sun.awt.X11.XTextAreaPeer.repaintText(XTextAreaPeer.java:283) at sun.awt.X11.XTextAreaPeer.setText(XTextAreaPeer.java:461) at java.awt.TextComponent.setText(TextComponent.java:239) at TestDialog.printInstructions(MouseEventsDuringDrag.java:266) at Sysout.createDialogWithInstructions(MouseEventsDuringDrag.java:203) at MouseEventsDuringDrag.init(MouseEventsDuringDrag.java:107) at com.sun.javatest.regtest.AppletWrapper$AppletRunnable.run(AppletWrapper.java:150) at java.lang.Thread.run(Thread.java:722) Linux Ubuntu 11.10 x586 (Ubuntu) version of libxrender1 is 1:0.9.6-2 while the last note from Changelog is: "Bump Standards-Version to 3.9.2."

    JDK Bug System | 5 years ago | Yuri Nesterenko
    java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 445#229410770

    GitHub | 5 months ago | ManfredKarrer
    java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
  6. 0

    Exception when resuming from standby ... - DbVisualizer Forums

    dbvis.com | 1 year ago
    java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

      at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface()
    2. Java RT
      SunGraphics2D.fillRect
      1. sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:145)
      2. sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:353)
      3. sun.java2d.SurfaceDataProxy.updateSurfaceData(SurfaceDataProxy.java:498)
      4. sun.java2d.SurfaceDataProxy.replaceData(SurfaceDataProxy.java:455)
      5. sun.java2d.SurfaceData.getSourceSurfaceData(SurfaceData.java:233)
      6. sun.java2d.xr.XRPaints$XRTexture.getAccSrcSurface(XRPaints.java:209)
      7. sun.java2d.xr.XRPaints$XRTexture.isPaintValid(XRPaints.java:224)
      8. sun.java2d.xr.XRPaints.isValid(XRPaints.java:75)
      9. sun.java2d.xr.XRSurfaceData.getMaskFill(XRSurfaceData.java:205)
      10. sun.java2d.SurfaceData.validatePipe(SurfaceData.java:675)
      11. sun.java2d.xr.XRSurfaceData.validatePipe(XRSurfaceData.java:123)
      12. sun.java2d.SunGraphics2D.validatePipe(SunGraphics2D.java:446)
      13. sun.java2d.pipe.ValidatePipe.validate(ValidatePipe.java:55)
      14. sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:75)
      15. sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2423)
      15 frames
    3. jetbrains.mps.ide
      ColorAndGraphicsUtil.drawWave
      1. jetbrains.mps.ide.util.ColorAndGraphicsUtil.drawWave(ColorAndGraphicsUtil.java:73)
      1 frame
    4. JetBrains mps
      EditorComponent.paintComponent
      1. jetbrains.mps.nodeEditor.HighlighterMessage$Region.drawWaveUnderCell(HighlighterMessage.java:218)
      2. jetbrains.mps.nodeEditor.HighlighterMessage.paint(HighlighterMessage.java:85)
      3. jetbrains.mps.nodeEditor.cells.EditorCell_Basic.paintDecorations(EditorCell_Basic.java:735)
      4. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:745)
      5. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      6. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      7. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      8. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      9. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      10. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      11. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      12. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      13. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      14. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      15. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      16. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      17. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      18. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      19. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      20. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      21. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753)
      22. jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746)
      23. jetbrains.mps.nodeEditor.cells.EditorCell_Basic.paint(EditorCell_Basic.java:644)
      24. jetbrains.mps.nodeEditor.EditorComponent.paintComponent(EditorComponent.java:2375)
      24 frames
    5. Java RT
      JComponent.paint
      1. javax.swing.JComponent.paint(JComponent.java:1056)
      1 frame
    6. JetBrains mps
      EditorComponent.paint
      1. jetbrains.mps.nodeEditor.EditorComponent.paint(EditorComponent.java:2756)
      1 frame
    7. Java RT
      JViewport.paint
      1. javax.swing.JComponent.paintChildren(JComponent.java:889)
      2. javax.swing.JComponent.paint(JComponent.java:1065)
      3. javax.swing.JViewport.paint(JViewport.java:728)
      3 frames
    8. IDEA
      JBViewport.paint
      1. com.intellij.ui.components.JBViewport.paint(JBViewport.java:122)
      1 frame
    9. Java RT
      JComponent.paintChildren
      1. javax.swing.JComponent.paintChildren(JComponent.java:889)
      2. javax.swing.JComponent.paint(JComponent.java:1065)
      3. javax.swing.JComponent.paintChildren(JComponent.java:889)
      4. javax.swing.JComponent.paint(JComponent.java:1065)
      5. javax.swing.JComponent.paintChildren(JComponent.java:889)
      6. javax.swing.JComponent.paint(JComponent.java:1065)
      7. javax.swing.JComponent.paintChildren(JComponent.java:889)
      8. javax.swing.JComponent.paint(JComponent.java:1065)
      9. javax.swing.JComponent.paintChildren(JComponent.java:889)
      10. javax.swing.JComponent.paint(JComponent.java:1065)
      11. javax.swing.JComponent.paintChildren(JComponent.java:889)
      12. javax.swing.JComponent.paint(JComponent.java:1065)
      13. javax.swing.JComponent.paintChildren(JComponent.java:889)
      14. javax.swing.JComponent.paint(JComponent.java:1065)
      15. javax.swing.JComponent.paintChildren(JComponent.java:889)
      16. javax.swing.JComponent.paint(JComponent.java:1065)
      17. javax.swing.JComponent.paintChildren(JComponent.java:889)
      17 frames
    10. DSL
      JBTabsImpl.paintChildren
      1. com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:2345)
      1 frame
    11. Java RT
      JComponent.paint
      1. javax.swing.JComponent.paint(JComponent.java:1065)
      1 frame
    12. DSL
      JBTabsImpl.paint
      1. com.intellij.ui.tabs.impl.JBTabsImpl.paint(JBTabsImpl.java:2340)
      1 frame
    13. Java RT
      JComponent.paintChildren
      1. javax.swing.JComponent.paintChildren(JComponent.java:889)
      2. javax.swing.JComponent.paint(JComponent.java:1065)
      3. javax.swing.JComponent.paintChildren(JComponent.java:889)
      4. javax.swing.JComponent.paint(JComponent.java:1065)
      5. javax.swing.JComponent.paintChildren(JComponent.java:889)
      6. javax.swing.JComponent.paint(JComponent.java:1065)
      7. javax.swing.JComponent.paintChildren(JComponent.java:889)
      8. javax.swing.JComponent.paint(JComponent.java:1065)
      9. javax.swing.JComponent.paintChildren(JComponent.java:889)
      10. javax.swing.JComponent.paint(JComponent.java:1065)
      11. javax.swing.JComponent.paintChildren(JComponent.java:889)
      12. javax.swing.JComponent.paint(JComponent.java:1065)
      13. javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
      14. javax.swing.JComponent.paintChildren(JComponent.java:889)
      14 frames
    14. IDEA
      ToolWindowsPane.paintChildren
      1. com.intellij.openapi.wm.impl.ToolWindowsPane.paintChildren(ToolWindowsPane.java:192)
      1 frame
    15. Java RT
      Window.paint
      1. javax.swing.JComponent.paint(JComponent.java:1065)
      2. javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
      3. javax.swing.JComponent.paintChildren(JComponent.java:889)
      4. javax.swing.JComponent.paint(JComponent.java:1065)
      5. javax.swing.JComponent.paintChildren(JComponent.java:889)
      6. javax.swing.JComponent.paint(JComponent.java:1065)
      7. javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
      8. javax.swing.JComponent.paintChildren(JComponent.java:889)
      9. javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
      10. javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
      11. javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
      12. javax.swing.RepaintManager.paint(RepaintManager.java:1272)
      13. javax.swing.JComponent.paint(JComponent.java:1042)
      14. java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
      15. sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
      16. sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
      17. java.awt.Container.paint(Container.java:1975)
      18. java.awt.Window.paint(Window.java:3904)
      18 frames
    16. IDEA
      IdeFrameImpl.paint
      1. com.intellij.openapi.wm.impl.IdeFrameImpl.paint(IdeFrameImpl.java:533)
      1 frame
    17. Java RT
      EventQueue.dispatchEvent
      1. javax.swing.RepaintManager$4.run(RepaintManager.java:842)
      2. javax.swing.RepaintManager$4.run(RepaintManager.java:814)
      3. java.security.AccessController.doPrivileged(Native Method)
      4. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      5. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
      6. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
      7. javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
      8. javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
      9. javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
      10. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      11. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      12. java.awt.EventQueue.access$500(EventQueue.java:97)
      13. java.awt.EventQueue$3.run(EventQueue.java:709)
      14. java.awt.EventQueue$3.run(EventQueue.java:703)
      15. java.security.AccessController.doPrivileged(Native Method)
      16. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      17. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      17 frames
    18. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:866)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
      3 frames
    19. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames