RFR: 8368629: Texture.update sometimes invoked for a disposed Texture [v5]
Lukasz Kostyra
lkostyra at openjdk.org
Wed Nov 5 11:19:22 UTC 2025
On Wed, 5 Nov 2025 08:47:47 GMT, Alessadro Parisi <duke at openjdk.org> wrote:
> I was finally able to compile JavaFX with this PR and integrate it into my maven project. This does not seem to fix my issue entirely. While I don't see expections like these anymore: `NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because <local9> is null` I now see this: `java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "newtex" is null` or this `java.lang.NullPointerException: Cannot invoke "com.sun.prism.Texture.assertLocked()" because "this.maskTex" is null` and the app still freezes
>
> Is this related or an entirely different issue?
Hard to judge just from those messages, but it is possible the root cause is similar. The check I added is only in one place and it might not cover all cases. Can you provide a full stacktrace for each of those NPEs?
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1951#issuecomment-3490623326
More information about the openjfx-dev
mailing list