JDK-8131751 : [TEST_BUG] Test javax/swing/plaf/gtk/crash/RenderBadPictureCrash.java fails UnsupportedOperationException
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u60,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2015-07-17
  • Updated: 2021-10-06
  • Resolved: 2016-02-11
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 JDK 9
8u321Fixed 9 b110Fixed
Related Reports
Relates :  
Description
Test name(s): javax/swing/plaf/gtk/crash/RenderBadPictureCrash.java
JDK tested:9b72, 8u60b23
OS tested: Linux, Windows
Is it a regression? No 
Regression introduced in release/build: N/A 
                               
Is it platform specific? Yes 
                      
The is failure reproduced:Linux (Passes in Windows) 
----------System.out:(5/241)----------
INFO: The version of libXrender.so is detected as 0.97
WARNING: Linux < 3.5 detected.
The pipeline will be enabled, but graphical artifacts can occur with old graphic drivers.
See the release notes for more details.
XRender pipeline enabled
----------System.err:(34/2179)----------
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1319)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1294)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
	at RenderBadPictureCrash.main(RenderBadPictureCrash.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsupportedOperationException: PERPIXEL_TRANSLUCENT translucency is not supported
	at java.awt.Window.setBackground(Window.java:3850)
	at java.awt.Frame.setBackground(Frame.java:988)
	at RenderBadPictureCrash.lambda$main$0(RenderBadPictureCrash.java:44)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
	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 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)

JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/ec073cb4b02d User: lana Date: 2016-03-14 15:55:07 +0000
14-03-2016

URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/ec073cb4b02d User: kshefov Date: 2016-02-11 09:25:02 +0000
11-02-2016

The test was introduced in 9b56 and backported to 8u60b10 in JDK-8056151
17-07-2015

The translucency is not supported on the host. Its a test bug The test should check if it's supported.
17-07-2015

Machine to reproduce : spb23324.ru.oracle.com, spb23364.ru.oracle.com RULE javax/swing/plaf/gtk/crash/RenderBadPictureCrash.java Exception java.lang.UnsupportedOperationException: PERPIXEL_TRANSLUCENT translucency is not supported RULE javax/swing/plaf/gtk/crash/RenderBadPictureCrash.java Exception java.lang.reflect.InvocationTargetException http://scaaa008.us.oracle.com:9502/runs/01025/1025318.ManualSubmit/1025318.ManualSubmit-1/workDir/javax/swing/plaf/gtk/crash/RenderBadPictureCrash.jtr
17-07-2015