JDK-7179454 : Xrender: FileDialogDropTargetTest.java sometimes failed on OEL 6 with jdk 8
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_oracle_6.0
  • CPU: x86
  • Submitted: 2012-06-25
  • Updated: 2016-05-23
  • Resolved: 2013-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Relates :  
Description
closed/java/awt/dnd/FileDialogDropTargetTest/FileDialogDropTargetTest.java sometimes failed on oracle unbreakable linux 6 with jdk 8, can't reproduce same issue on oel5.6, windows, solaris 10 sparc and with jdk 7 on same host

log:
----------System.out:(0/0)----------
----------System.err:(36/2307)----------
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.drawPath(XRRenderer.java:216)
        at sun.java2d.xr.XRRenderer.draw(XRRenderer.java:273)
        at sun.java2d.xr.XRRenderer.drawLine(XRRenderer.java:91)
        at sun.java2d.SunGraphics2D.drawLine(SunGraphics2D.java:2137)
        at sun.awt.X11.XScrollbar.paintArrows(XScrollbar.java:300)
        at sun.awt.X11.XScrollbar.paint(XScrollbar.java:236)
        at sun.awt.X11.XListPeer$ListPainter.paintScrollBar(XListPeer.java:1900)
        at sun.awt.X11.XListPeer$ListPainter.paintHorScrollbar(XListPeer.java:1913)
        at sun.awt.X11.XListPeer$ListPainter.paint(XListPeer.java:1814)
        at sun.awt.X11.XListPeer$ListPainter.access$000(XListPeer.java:1672)
        at sun.awt.X11.XListPeer.repaint(XListPeer.java:411)
        at sun.awt.X11.XListPeer.repaint(XListPeer.java:386)
        at sun.awt.X11.XListPeer.repaint(XListPeer.java:378)
        at sun.awt.X11.XListPeer.clear(XListPeer.java:1332)
        at sun.awt.X11.XListPeer.removeAll(XListPeer.java:222)
        at java.awt.List.clear(List.java:416)
        at sun.awt.X11.XFileDialogPeer.setFilterEntry(XFileDialogPeer.java:474)
        at sun.awt.X11.XFileDialogPeer.handleFilter(XFileDialogPeer.java:372)
        at sun.awt.X11.XFileDialogPeer.setDirectory(XFileDialogPeer.java:746)
        at sun.awt.X11.XFileDialogPeer.setVisible(XFileDialogPeer.java:780)
        at java.awt.Dialog.conditionalShow(Dialog.java:936)
        at java.awt.Dialog.show(Dialog.java:1038)
        at FileDialogDropTargetTest.main(FileDialogDropTargetTest.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:474)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
        at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
result: Failed. Execution failed: `main' threw exception: java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData


test result: Failed. Execution failed: `main' threw exception: java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData

see comments for more details

Comments
Stack trace which show that we draw to one VolatileImage in parallel: java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(java.base@9-internal/Thread.java:1434) at sun.java2d.InvalidPipeException.<init>(java.desktop@9-internal/InvalidPipeException.java:56) at sun.java2d.xr.XRSurfaceData.validateAsDestination(java.desktop@9-internal/XRSurfaceData.java:493) at sun.java2d.xr.XRRenderer.validateSurface(java.desktop@9-internal/XRRenderer.java:73) at sun.java2d.xr.XRRenderer.fillPath(java.desktop@9-internal/XRRenderer.java:270) at sun.java2d.xr.XRRenderer.fill(java.desktop@9-internal/XRRenderer.java:347) at sun.java2d.SunGraphics2D.fill(java.desktop@9-internal/SunGraphics2D.java:2533) at sun.awt.X11.XScrollbar.paintArrows(java.desktop@9-internal/XScrollbar.java:295) at sun.awt.X11.XScrollbar.paint(java.desktop@9-internal/XScrollbar.java:238) at sun.awt.X11.XListPeer$ListPainter.paintScrollBar(java.desktop@9-internal/XListPeer.java:1947) at sun.awt.X11.XListPeer$ListPainter.paintVerScrollbar(java.desktop@9-internal/XListPeer.java:1970) at sun.awt.X11.XListPeer$ListPainter.paint(java.desktop@9-internal/XListPeer.java:1843) at sun.awt.X11.XListPeer$ListPainter.paint(java.desktop@9-internal/XListPeer.java:1772) at sun.awt.X11.XListPeer$ListPainter.access$100(java.desktop@9-internal/XListPeer.java:1701) at sun.awt.X11.XListPeer.paintPeer(java.desktop@9-internal/XListPeer.java:420) at sun.awt.X11.XRepaintArea.paintComponent(java.desktop@9-internal/XRepaintArea.java:64) at sun.awt.RepaintArea.paint(java.desktop@9-internal/RepaintArea.java:240) at sun.awt.X11.XComponentPeer.handleEvent(java.desktop@9-internal/XComponentPeer.java:595) at java.awt.Component.dispatchEventImpl(java.desktop@9-internal/Component.java:5046) at java.awt.Component.dispatchEvent(java.desktop@9-internal/Component.java:4817) at java.awt.EventQueue.dispatchEventImpl(java.desktop@9-internal/EventQueue.java:761) at java.awt.EventQueue.access$500(java.desktop@9-internal/EventQueue.java:97) at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:712) at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:706) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@9-internal/ProtectionDomain.java:77) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@9-internal/ProtectionDomain.java:87) at java.awt.EventQueue$4.run(java.desktop@9-internal/EventQueue.java:734) at java.awt.EventQueue$4.run(java.desktop@9-internal/EventQueue.java:732) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@9-internal/ProtectionDomain.java:77) at java.awt.EventQueue.dispatchEvent(java.desktop@9-internal/EventQueue.java:731) at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@9-internal/EventDispatchThread.java:199) at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@9-internal/EventDispatchThread.java:124) at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@9-internal/EventDispatchThread.java:117) at java.awt.WaitDispatchSupport$2.run(java.desktop@9-internal/WaitDispatchSupport.java:190) at java.awt.event.InvocationEvent.dispatch(java.desktop@9-internal/InvocationEvent.java:313) at java.awt.EventQueue.dispatchEventImpl(java.desktop@9-internal/EventQueue.java:759) at java.awt.EventQueue.access$500(java.desktop@9-internal/EventQueue.java:97) at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:712) at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:706) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@9-internal/ProtectionDomain.java:77) at java.awt.EventQueue.dispatchEvent(java.desktop@9-internal/EventQueue.java:729) at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@9-internal/EventDispatchThread.java:199) at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@9-internal/EventDispatchThread.java:124) at java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@9-internal/EventDispatchThread.java:113) at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/EventDispatchThread.java:109) at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/EventDispatchThread.java:101) at java.awt.EventDispatchThread.run(java.desktop@9-internal/EventDispatchThread.java:90) java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData (in module: java.desktop) cannot be cast to sun.java2d.xr.XRSurfaceData (in module: java.desktop) at sun.java2d.xr.XRRenderer.validateSurface(java.desktop@9-internal/XRRenderer.java:72) at sun.java2d.xr.XRRenderer.drawLine(java.desktop@9-internal/XRRenderer.java:87) at sun.java2d.SunGraphics2D.drawLine(java.desktop@9-internal/SunGraphics2D.java:2240) at sun.awt.X11.XScrollbar.paint(java.desktop@9-internal/XScrollbar.java:223) at sun.awt.X11.XListPeer$ListPainter.paintScrollBar(java.desktop@9-internal/XListPeer.java:1947) at sun.awt.X11.XListPeer$ListPainter.paintHorScrollbar(java.desktop@9-internal/XListPeer.java:1959) at sun.awt.X11.XListPeer$ListPainter.paint(java.desktop@9-internal/XListPeer.java:1847) at sun.awt.X11.XListPeer$ListPainter.access$000(java.desktop@9-internal/XListPeer.java:1701) at sun.awt.X11.XListPeer.repaint(java.desktop@9-internal/XListPeer.java:411) at sun.awt.X11.XListPeer.repaint(java.desktop@9-internal/XListPeer.java:386) at sun.awt.X11.XListPeer.addItem(java.desktop@9-internal/XListPeer.java:1112) at sun.awt.X11.XListPeer.add(java.desktop@9-internal/XListPeer.java:217) at java.awt.List.addItem(java.desktop@9-internal/List.java:392) at java.awt.List.addItem(java.desktop@9-internal/List.java:346) at sun.awt.X11.XFileDialogPeer.setFilterEntry(java.desktop@9-internal/XFileDialogPeer.java:499) at sun.awt.X11.XFileDialogPeer.handleFilter(java.desktop@9-internal/XFileDialogPeer.java:379) at sun.awt.X11.XFileDialogPeer.setDirectory(java.desktop@9-internal/XFileDialogPeer.java:757) at sun.awt.X11.XFileDialogPeer.setVisible(java.desktop@9-internal/XFileDialogPeer.java:795) at java.awt.Dialog.conditionalShow(java.desktop@9-internal/Dialog.java:938) at java.awt.Dialog.show(java.desktop@9-internal/Dialog.java:1045) at FileDialogDropTargetTest.main(FileDialogDropTargetTest.java:66) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
23-05-2016

EVALUATION Duplicate of 7172749 : Xrender: Class cast exception in 2D code running an AWT regression test
31-07-2012

EVALUATION As I understand we get SurfaceData from Java2D and return it to Java2D. Right now I se the problem as a Java2D issue.
26-06-2012