JDK-8077686 : OperationTimedOut exception inside from XToolkit.syncNativeQueue call on Ubuntu 15.04
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2015-04-14
  • Updated: 2015-09-29
  • Resolved: 2015-06-15
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
8u60Fixed 9 b72Fixed
Description
syncNativeQueue() throws an OperationTimedOut:  with code 20000 or code 20001

Exception in thread "AWT-EventQueue-0" sun.awt.SunToolkit$OperationTimedOut: 20000
  at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2411)
  at sun.awt.SunToolkit$3.dispatch(SunToolkit.java:1644)
  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
  at java.awt.EventQueue.access$500(EventQueue.java:97)
  at java.awt.EventQueue$3.run(EventQueue.java:702)
  at java.awt.EventQueue$3.run(EventQueue.java:696)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
  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)
Comments
Possible fix: diff -r 729dffc8afa0 src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java --- a/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java +++ b/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java @@ -2450,9 +2450,9 @@ public final class XToolkit extends UNIX } } - private static XEventDispatcher oops_waiter; - private static boolean oops_updated; - private static boolean oops_move; + private XEventDispatcher oops_waiter; + private boolean oops_updated; + private int oops_position = 0; /** * @inheritDoc @@ -2481,9 +2481,9 @@ public final class XToolkit extends UNIX oops_updated = false; long event_number = getEventNumber(); // Generate OOPS ConfigureNotify event - XlibWrapper.XMoveWindow(getDisplay(), win.getWindow(), oops_move ? 0 : 1, 0); + XlibWrapper.XMoveWindow(getDisplay(), win.getWindow(), oops_position++ , 0); // Change win position each time to avoid system optimization - oops_move = !oops_move; + if (oops_position > 50) oops_position = 0; XSync(); eventLog.finer("Generated OOPS ConfigureNotify event");
22-05-2015

Is it regression in 8u40?
14-04-2015

Testsuite name: AWT Product(s) tested: Java(TM) SE Runtime Environment 1.8.0_40 b27 (1.8.0_40-b27) OS/architecture: Ubuntu Linux 15.05 Reproducible: Sometimes Reproducible on machine: stt-135.ru.oracle.com Test run log location: http://aurora.ru.oracle.com/slot-gw/762796.ute.st2-1/results/ResultDir/ApplicationModal/ApplicationModal.log The tests fails intermittently
14-04-2015

RULE AWT_Modality/Automated/Focus/ApplicationModal Exception sun.awt.SunToolkit$OperationTimedOut: ... RULE AWT_Modality/Automated/Focus/ApplicationModal Timeout none RULE AWT_Modality/Automated/Focus/DocumentModal Exception sun.awt.SunToolkit$OperationTimedOut: ... RULE AWT_Modality/Automated/Focus/DocumentModal Timeout none RULE AWT_Modality/Automated/Focus/ModelessFocus Exception sun.awt.SunToolkit$OperationTimedOut: ... RULE AWT_Modality/Automated/Focus/ModelessFocus Timeout none RULE AWT_Modality/Automated/Focus/NonModal Exception sun.awt.SunToolkit$OperationTimedOut: ... RULE AWT_Modality/Automated/Focus/NonModal Timeout none RULE AWT_Modality/Automated/setVisible/FileDialog/ApplicationModal Exception sun.awt.SunToolkit$OperationTimedOut: ... RULE AWT_Modality/Automated/setVisible/FileDialog/ApplicationModal Timeout none RULE AWT_Modality/Automated/setVisible/FileDialog/ToolkitModal Exception sun.awt.SunToolkit$OperationTimedOut: ... RULE AWT_Modality/Automated/setVisible/FileDialog/ToolkitModal Timeout none
14-04-2015