JDK-8072110 : Toolkit.realSync() forces a lot of graphical tests to fail on embedded devices
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u20,11
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux,os_x
  • Submitted: 2015-02-02
  • Updated: 2023-10-09
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.
Other
tbdUnresolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Stacktrace from failing tests : 

sun.awt.SunToolkit$OperationTimedOut: 10003
	at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2433)
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1565)
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1497)
	at test.java.awt.regtesthelpers.Util.waitForIdle(Util.java:241)
	at MaximizedToIconified.examineStates(MaximizedToIconified.java:81)
	at MaximizedToIconified.init(MaximizedToIconified.java:124)
	at MaximizedToIconified.main(MaximizedToIconified.java:163)
	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)

Various tests failing : 

RULE javax/swing/JColorChooser/Test6541987.java Exception java.lang.Error: found visible window: frame0
RULE javax/swing/JColorChooser/Test7194184.java Exception java.lang.RuntimeException: JColorChooser misses keyboard accessibility
RULE javax/swing/JComboBox/ConsumedEscTest/ConsumedEscTest.java Exception java.lang.RuntimeException: FAILED: ESC was consumed by combo box
RULE javax/swing/JFileChooser/8002077/bug8002077.java Exception java.lang.RuntimeException: Save button is not pressed!
RULE javax/swing/JFileChooser/8021253/bug8021253.java Exception java.lang.RuntimeException: Default button is not pressed
RULE javax/swing/JPopupMenu/6495920/bug6495920.java Exception java.lang.Exception: interaction with GNOME is crippled
RULE javax/swing/JScrollBar/4708809/bug4708809.java Exception java.lang.Exception: The scrollbar moved with incorrect direction
RULE javax/swing/JScrollBar/4865918/bug4865918.java Exception java.lang.Error: The scrollbar block increment is incorect
RULE javax/swing/JSpinner/4973721/bug4973721.java Exception java.lang.RuntimeException: Up arrow key button doesn't work for a spinner in Synth L&F
RULE javax/swing/JTabbedPane/4361477/bug4361477.java Exception java.lang.RuntimeException: Tabbed pane state is not changed
RULE javax/swing/JTextField/8036819/bug8036819.java Exception java.lang.RuntimeException: Test failed.
RULE javax/swing/JTree/4330357/bug4330357.java Exception java.lang.RuntimeException: Cell editor is missed for path: color
RULE javax/swing/JTree/4908142/bug4908142.java Exception java.lang.Error: The selected index should be "aad", but not aaa
RULE javax/swing/JTree/4927934/bug4927934.java Exception java.lang.RuntimeException: Root should be selected
RULE javax/swing/RepaintManager/IconifyTest/IconifyTest.java Exception java.lang.Exception: Test failed: window was not iconified.
RULE javax/swing/ToolTipManager/Test6256140.java Exception java.lang.RuntimeException: Tooltip must be hidden now
RULE javax/swing/dnd/7171812/bug7171812.java Exception java.lang.RuntimeException: Test failed, scroll on drag doesn't work!
RULE javax/swing/text/JTextComponent/5074573/bug5074573.java Exception java.lang.RuntimeException: failed
RULE javax/swing/text/View/8014863/bug8014863.java Exception java.lang.RuntimeException: Test Failed!
RULE javax/swing/text/html/HTMLEditorKit/5043626/bug5043626.java Exception java.lang.RuntimeException: Begin line action set cursor inside <head> tag
Comments
It could be resolved now that realSync() issue is resolved.
18-09-2023

The OperationTimedOut exception was fixed, but the realSync still mat fail from time to time, can be checked by the "java/awt/Toolkit/RealSync/Test.java" testcase.
22-05-2021

Test build: JDK11b23(CC-build(http://slc07hab.us.oracle.com/jdk_coverage/builds/11_23/jdk-11-instr_linux-x64_bin.tar.gz )) Platform :ubuntu18.04-x64 Jtreg tool: Jtreg4.2b13 The case failed as the same issue: javax/swing/JEditorPane/4465905/bug4465905.java http://sc11152645.us.oracle.com:8080/evergreen/results/11/b23/regression-cc/automated/ubuntu18.04-x64/results_closed/workDir/javax/swing/JEditorPane/4465905/bug4465905.jtr java/awt/Focus/ContainerFocusAutoTransferTest/ContainerFocusAutoTransferTest.java http://sc11152645.us.oracle.com:8080/evergreen/results/11/b23/regression-cc/automated/ubuntu18.04-x64/results_auto_open/workDir/java/awt/Focus/ContainerFocusAutoTransferTest/ContainerFocusAutoTransferTest.jtr javax/swing/RepaintManager/IconifyTest/IconifyTest.java http://sc11152645.us.oracle.com:8080/evergreen/results/11/b23/regression-cc/automated/ubuntu18.04-x64/results_auto_open/workDir/javax/swing/RepaintManager/IconifyTest/IconifyTest.jtr
09-08-2018

RULE javax/swing/JPopupMenu/6827786/bug6827786.java Exception java.lang.reflect.InvocationTargetException RULE javax/swing/JTree/6263446/bug6263446.java Exception java.lang.reflect.InvocationTargetException RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=25,width=1280,height=695] / java.awt.Rectangle[x=0,y=0,width=0,height=0] RULE javax/swing/SwingUtilities/7088744/bug7088744.java Exception java.lang.reflect.InvocationTargetException RULE javax/swing/text/DefaultEditorKit/4278839/bug4278839.java Exception java.lang.RuntimeException: Test failed. RULE closed/javax/swing/JComboBox/6559152/bug6559152.java Exception java.lang.RuntimeException: Cannot select an item from popup with the ENTER key.
21-05-2015