JDK-8240466 : AppJSCallback* apps launched by ModuleLauncherTest intermittently hang
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: 9,openjfx11,openjfx14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-03-03
  • Updated: 2020-03-10
  • Resolved: 2020-03-10
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
openjfx15Fixed
Related Reports
Blocks :  
Description
This was discovered while testing FX with gradle 6.3-nightly and JDK 14.

When running the tests with JDK 14, the following will hang on my system most of the time (about 9/10 times).

$ gradle -PFULL_TEST=true :systemTests:cleanTest :systemTests:test --tests ModuleLauncherTest

All 5 of the all five of the testModuleJSCallback* tests will timeout and report an assertion error. Further, all 5 of the launched applications will hang indefinitely, causing the entire test suite to hang.
Comments
Changeset: 50e15fce Author: Kevin Rushforth <kcr@openjdk.org> Date: 2020-03-10 12:42:02 +0000 URL: https://git.openjdk.java.net/jfx/commit/50e15fce
10-03-2020

The root cause is a latent bug in the test apps. The launched apps construct a WebView instance, create a WebEngine, add a state listener to the WebEngine, load the web content, and then return from the Application::start method. The WebView instance is a local variable, so will be subject to garbage collection as soon as the start method returns and it goes out of scope.
03-03-2020