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

YouTrack | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    CCE (in casting to XRSurfaceData) in rendering

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

    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