-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoking JFileChooser with FlatLaF crashes VM (only with Java 17 32bit) #403
Comments
You should always post the exception, in case something isn't reproducable for some reason. Also, you have to use three backticks at the start and top of your code 👍 |
Thanks Marcel. There is no Exception. The VM crashes and creates a log: JRE version: OpenJDK Runtime Environment Temurin-17+35 (17.0+35) (build 17+35) No core dump will be written. Minidumps are not enabled by default on client versions of Windows An error report file with more information is saved as: |
Hmm, does not crash here (Win 10; Temurin 17+35)... Does it crash too if you use Metal or Windows L&F? Could you post hs_err_pid11772.log here or email it to me? [email protected] |
I tried with the nightly build 17.0.1, which will be published this week. There, the crash does not occur, so it seemingly is already solved (-> adoptium/adoptium-support#385 ) or it might be related to the 32bit VM. Additionally, the crash does not happen with Metal L&F. While the problem might already be solved, I will send the log via mail. Probably it is still helpful. |
Hi Charly, Best regards! Edit: I used FlatLaF 1.6.1, but it occurs in 1.5 as well - as already stated only with x86 VMs. |
Can reproduce it. It is a bug in OpenJDK when accessing system icons for the file chooser. There was a change in this area in JDK 17 to access "large Windows icons", which may be responsible for this crash. Maybe this change was never tested on 32 Bit because Oracle distributes only 64 Bit JDKs? |
To avoid the crash I've implemented an workaround, which simply does not use Windows system icons on 32bit Java 17... 64-bit Java 17 is not affected. |
Workaround is in 1.6.2. |
only Java 17 32bit does not use Windows system icons because of: https://bugs.openjdk.java.net/browse/JDK-8277299
related JDK bug: https://bugs.openjdk.java.net/browse/JDK-8277299 Fixed in Java 18 EA 32bit I've updated the FlatLaf workaround to show Windows system icons again in Java 18+ 32bit. |
With the latests Adoptium Release (jdk-17+35), installing FlatLaF and invoking a JFileChooser leads to fatal crash of the VM. It did not happen with jdk-16 and I am not sure, if this is a problem with FlatLaF or Adoptium. OS: Win10 Enterprise 19042.1288
Minimal reproducible example:
The text was updated successfully, but these errors were encountered: