java.lang.ClassCastException

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


Solutions on the web19556

Solution icon of github
via GitHub by leogaggl
, 10 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Solution icon of github
via GitHub by jsql-robot
, 6 months ago
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

Stack trace

  • 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.xr.XRPaints$XRTexture.getAccSrcSurface(XRPaints.java:209) at sun.java2d.xr.XRPaints$XRTexture.isPaintValid(XRPaints.java:224) at sun.java2d.xr.XRPaints.isValid(XRPaints.java:75) at sun.java2d.xr.XRSurfaceData.getMaskFill(XRSurfaceData.java:205) at sun.java2d.SurfaceData.validatePipe(SurfaceData.java:675) at sun.java2d.xr.XRSurfaceData.validatePipe(XRSurfaceData.java:123) at sun.java2d.SunGraphics2D.validatePipe(SunGraphics2D.java:446) at sun.java2d.pipe.ValidatePipe.validate(ValidatePipe.java:55) at sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:75) at sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2423) at jetbrains.mps.ide.util.ColorAndGraphicsUtil.drawWave(ColorAndGraphicsUtil.java:73) at jetbrains.mps.nodeEditor.HighlighterMessage$Region.drawWaveUnderCell(HighlighterMessage.java:218) at jetbrains.mps.nodeEditor.HighlighterMessage.paint(HighlighterMessage.java:85) at jetbrains.mps.nodeEditor.cells.EditorCell_Basic.paintDecorations(EditorCell_Basic.java:735) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:745) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintChildDecorations(EditorCell_Collection.java:753) at jetbrains.mps.nodeEditor.cells.EditorCell_Collection.paintDecorations(EditorCell_Collection.java:746) at jetbrains.mps.nodeEditor.cells.EditorCell_Basic.paint(EditorCell_Basic.java:644) at jetbrains.mps.nodeEditor.EditorComponent.paintComponent(EditorComponent.java:2375) at javax.swing.JComponent.paint(JComponent.java:1056) at jetbrains.mps.nodeEditor.EditorComponent.paint(EditorComponent.java:2756) at javax.swing.JComponent.paintChildren(JComponent.java:889) at javax.swing.JComponent.paint(JComponent.java:1065) at javax.swing.JViewport.paint(JViewport.java:728) at com.intellij.ui.components.JBViewport.paint(JBViewport.java:122) 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 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 javax.swing.JComponent.paintChildren(JComponent.java:889) at com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:2345) at javax.swing.JComponent.paint(JComponent.java:1065) at com.intellij.ui.tabs.impl.JBTabsImpl.paint(JBTabsImpl.java:2340) 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 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.JLayeredPane.paint(JLayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:889) at com.intellij.openapi.wm.impl.ToolWindowsPane.paintChildren(ToolWindowsPane.java:192) 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.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.paintToOffscreen(JComponent.java:5217) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502) at javax.swing.RepaintManager.paint(RepaintManager.java:1272) at javax.swing.JComponent.paint(JComponent.java:1042) at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79) at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116) at java.awt.Container.paint(Container.java:1975) at java.awt.Window.paint(Window.java:3904) at com.intellij.openapi.wm.impl.IdeFrameImpl.paint(IdeFrameImpl.java:533) at javax.swing.RepaintManager$4.run(RepaintManager.java:842) at javax.swing.RepaintManager$4.run(RepaintManager.java:814) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) 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:756) 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:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:866) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) 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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago