JDK-8049032 : [GNOME 3] issue with jdk8 and realSync
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2014-07-02
  • Updated: 2014-09-30
  • Resolved: 2014-09-30
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.
Related Reports
Duplicate :  
Relates :  
I have a new Ubuntu 14.04 LTS system with a default (for gnome) Gnome 3 session and a JDK8 (b132 fcs or 8u20 b20, all the same). 
Any test with realSync hangs there. First, the system does some drastic repaint (removing everything, doing something like setting display mode anew, painting everything), then it hangs with 
sun.awt.SunToolkit$OperationTimedOut: 10001
	at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2413)
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1569)
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1501)

Note that new realSync implemented in jdk9 works OK.
I have to use jdk9 b06 or later for basebuild on this system which is wrong as we need to compare jdk9 with a released system. It is also hard to do on a farm hardware. I'm afraid a solution would be, backport of realSync to 8u, perhaps conditional or something. Gnome (if not 3) used to be a main target system for XToolkit.

JDK-7033533 and JDK-8051857 are backported to 8u40

No, current jdk9 isn't affected, probably because realSync() is reimplemented there anew.

is it affecting jdk 9 ?

I don't know about jdk7 but afraid it's the same as jdk8.

Well there are several flavors of Gnome stuff on Ubuntu. I carefully installed whatever was bundled with 14.04, it was Gnome 3.10 (see in http://packages.ubuntu.com/trusty/gnome/). And I always select just "Gnome" session on reboot keeping Unity as a default. The Net is full of stories about Gnome 3 on Ubuntu because why not? Now wait, pretty soon we'll have it on OEL 7: RHEL 7 is already out with it.

AFAIK Ubuntu doesn't ship with Gnome 3. Do we really need to support such configuration?