[OpenJDK 2D-Dev] RFR: 8167103: Intermittent font loading failure on macOS with JFXPanel application
Philip Race
philip.race at oracle.com
Mon Nov 21 22:34:03 UTC 2016
Bug: https://bugs.openjdk.java.net/browse/JDK-8167103
Webrev: http://cr.openjdk.java.net/~prr/8167103/
This bug is a deadlock in MacOS platform font code when
JavaFX and Java2D are both calling platform font APIs.
This can happen in the context of Swing inter-op for FX.
It was previously seen when embedding Swing in FX (SwingNode)
in bug https://bugs.openjdk.java.net/browse/JDK-8120878
There was a workaround added for that case.
Now it is seen when loading embedding FX in Swing (JFXPanel)
What seems to work is switching 2D from using the deprecated
ATS API to the same CoreText API used by FX.
The bug was reported against FX but since the fix is in 2D I've
recategorised it.
-phil.
More information about the 2d-dev
mailing list