JDK-8204142 : AWT hang occurs when sequenced events arrive out of sequence in multiple AppContexts.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9,10,11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-31
  • Updated: 2020-04-28
  • Resolved: 2018-11-14
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 11 JDK 12 JDK 8 Other
11.0.2Fixed 12 b20Fixed 8u202Fixed openjdk7uFixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
This issue is caused due to the fix for JDK-8152974. In the case of Applets, multiple AppContexts are created and the events are waiting for the wrong event id to arrive, which never comes (due to the fix mentioned earlier).
Comments
Fix Request: This is a customer bug, which was reported for jdk8u, which has been fixed in 12. This is an important fix, which addresses the problem of AWT EventQueue hang when there are multiple Appcontexts involved. There was a partial fix attempted in JDK-8152974, which left out certain scenarios in which this problem still exists. Since the partial fix is checked in already, it is important to push this fix into the update branch, so that the problem is completely fixed. Fortunately for 11u, the same webrev for 12 can be applied to without any changes: http://cr.openjdk.java.net/~mbalao/webrevs/8204142/8204142.webrev.04/ With the latest fix, there have been no new regressions observed. The code has been reviewed by Sergey.Bylokhov@oracle.com, Krishna.Addepalli@oracle.com
19-11-2018

I faced this problem using IcedTeaWeb 1.7 (head) with OpenJDK 11 GA, so AWT hangs forever making my JNLP application not working. It is very important fo fix it asap in OpenJDK12i.e. please review the patch Martin proposes: http://mail.openjdk.java.net/pipermail/awt-dev/2018-October/014436.html Then I would recommend a backport to 11.0, as it is a major regression, making IcedTeaWeb hanging and not working.
16-10-2018

Updated test: https://bugs.openjdk.java.net/secure/attachment/79113/TestWinEvent.java
15-10-2018

Update: new Webrev [1] proposed at [2] -- [1] - http://cr.openjdk.java.net/~mbalao/webrevs/8204142/8204142.webrev.01/ [2] - http://mail.openjdk.java.net/pipermail/awt-dev/2018-October/014436.html
12-10-2018

Fix proposed at http://mail.openjdk.java.net/pipermail/awt-dev/2018-October/014427.html
10-10-2018

The reason for this issue may be http://mail.openjdk.java.net/pipermail/awt-dev/2018-October/014426.html
10-10-2018

I wrote a reproducer that hangs on Openjdk11, see: http://mail.openjdk.java.net/pipermail/awt-dev/2018-September/014276.html
20-09-2018