JDK-8127212 : Gtk: Synchronization issues on X11
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: fx2.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-01-31
  • Updated: 2015-06-17
  • Resolved: 2012-04-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 7
7-poolFixed
Related Reports
Blocks :  
Duplicate :  
Relates :  
Relates :  
Description
The problem with synchronization may occur with following glass calls:

setMaximize
setMinimize
setBounds

As X server / Window Manager response is asynchronous and it's impossible to directly wait for the request to finish.
This may lead to some of the race conditions below:

1) Application execution continues, while the response arrives after some code was executed. This response is then treated by Scenegraph as an "event" (e.g. setBounds changes the bounds, then Scenegraph changes the bounds again, than a response arrives changing the scenegraph bounds to the previous state).

2) Different events arrive (leading to an execution of Java code) before the response arrives. Unfortunately, there's no way to wait for the response without processing events that arrived earlier.
This is generally not as big issue as 1), as it usually doesn't cause any problems and events are actually processed in-order. 


Comments
After discussing this with Lubo, we can already close this bug as RT-19856 is currently fixed by a workaround.
11-04-2012

This is just an umbrella bug, that depends on RT-19856. Assigning to SPB glass team as I cannot close it now.
11-04-2012