RFR: 8223296: NullPointerException in GlassScene.java at line 325
Kevin Rushforth
kcr at openjdk.java.net
Fri Dec 13 14:12:14 UTC 2019
On Tue, 10 Dec 2019 07:00:50 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:
> Issue: NPE in GlassScene.frameRendered().
>
> Cause: scenePaintListener is set in setTKScenePaintListener(), used in frameRendered() and
> set to null in dispose().
> setTKScenePaintListener() and dispose() are called on JavaFX Application Thread and
> frameRendered() is called by QuantumRenderer thread.
> setTKScenePaintListener() and frameRendered() are synchronized but dispose() is not.
>
> Fix:
> dispose() should use the synchronized setTKScenePaintListener() to set scenePaintListener to null.
>
> Verification:
> This is a very rare issue and cannot be reliably reproduced with a test case.
-------------
Marked as reviewed by kcr (Lead).
PR: https://git.openjdk.java.net/jfx/pull/64
More information about the openjfx-dev
mailing list