On Thu, 1 May 2025 13:54:49 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

> I will check whether this is the case by trying out HelloFXCanvas after first 
> setting that variable. If so, then the fix for 
> [JDK-8340378](https://bugs.openjdk.org/browse/JDK-8340378) will be to set 
> that env variable from HelloFXCanvas when running on Linux.

Running HelloFXCanvas with `GDK_BACKEND=x11` does prevent the crash. The SWT 
part of the app doesn't render well on my system, but that isn't a JavaFX issue.

I did a little more looking, and the SWT interop failure in Wayland mode was 
discovered and commented on back when we added the putenv in 
[JDK-8210411](https://bugs.openjdk.org/browse/JDK-8210411) in [this JBS 
comment](https://bugs.openjdk.org/browse/JDK-8210411?focusedId=14230568&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14230568).
 We should have filed a follow-on bug back then, but at least we have 
[JDK-8340378](https://bugs.openjdk.org/browse/JDK-8340378) now.

Back to this PR: On my Ubuntu 24.04 VM it crashes without setting that env var 
and fails (hangs) when I do. Given the various problems, I recommend skipping 
all of the tests on Linux. The testing matrix will be a bit time consuming, and 
I'm not sure how important it really is.

The easiest way to skip on Linux might be in the build.gradle file when setting 
the SWT_TEST flag.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1783#issuecomment-2844982951

Reply via email to