JDK-8226537 : Multi-level Stage::initOwner can crash gnome-shell or X.org server
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 8u212,openjfx13
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-06-20
  • Updated: 2020-01-31
  • Resolved: 2019-06-28
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 Other
8u231Fixed openjfx11.0.5Fixed
Related Reports
Relates :  
Description
When a stage has multi levels of initOwner and it's closed before it's children it causes a crash on gnome-shell and sometimes X.org.


To reproduce:
1) Run the sample
2) Close the first stage entitled "Close me first"

Reproducible with gtk2 (-Djdk.gtk.version=2) and gtk3.

Comments
Changeset: 9b86009d3a89 Author: tsayao Date: 2019-06-28 09:42 -0700 URL: http://hg.openjdk.java.net/openjfx/jfx-dev/rt/rev/9b86009d3a89 8226537: Multi-level Stage::initOwner can crash gnome-shell or X.org server Reviewed-by: kcr, pbansal
28-06-2019

OK. In that case, you can review the change without testing whether it fixes the crash. I plan to upgrade my native desktop to Ubuntu 18.04 soon anyway, so I can test it.
27-06-2019

[~kcr] That must be the issue. I have a Ubuntu 18.04 VM only, I don't have access to a native Ubuntu 18.04.
27-06-2019

[~pbansal] Are you running Ubuntu 18.04 in a virtual environment? It might be necessary to run natively.
27-06-2019

For me it happens every time. Tested on different machines (with different hardware) on different ubuntu versions (18.04 / 19.04).
27-06-2019

Is it always reproducible or only intermittently reproducible? I have run the attached test multiple time with jfx-dev and jdk13. I don't see any crash on closing the stage entitled "Close me first" first. I am using Ubuntu 18.04 and I tried with both gtk2 and gtk3.
27-06-2019

[~kcr] ok, I will test it on Ubuntu 18.04
23-06-2019

[~pbansal] Can you test this with both JavaFX 13 and with JDK 8u212 on Ubuntu 18.04 or 19.04?
22-06-2019

Fix linked.
20-06-2019