Skip to content
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

flatlaf-windows-x86_64.dll very infrequently not found #674

Closed
x9ware-llc opened this issue May 1, 2023 · 2 comments
Closed

flatlaf-windows-x86_64.dll very infrequently not found #674

x9ware-llc opened this issue May 1, 2023 · 2 comments
Milestone

Comments

@x9ware-llc
Copy link

BTW, sincerely thank you for a great product. I have upgraded from 2.6 to 3.1.1 in the last couple of days and have gotten the message that flatlaf-windows-x86_64.dll is not found (message is below). This is correct, because I have the DLL removed from the JAR. However, the class that sets the look and feel has a static initializer that worked with 2.6, but seems to be slightly sporadic with 3.1.1, where it throws this error maybe once every 20 launches. I assume it must be some type of timing issue. I see the error thrown 5-6 seconds after startup, and it does not take any human UI interaction to generate the error. Any thoughts?

Here is my static initializer:

static {
	System.setProperty("flatlaf.useWindowDecorations", "false");
}

And the message that I am getting:

2023-05-01 12:22:06.399 [SEVERE] Library 'com/formdev/flatlaf/natives/flatlaf-windows-x86_64.dll' not found (com.formdev.flatlaf.util.LoggingFacadeImpl.logSevere)

@DevCharly
Copy link
Collaborator

This is correct, because I have the DLL removed from the JAR

Why?

flatlaf.useWindowDecorations does not disable usage of the DLL.

The DLL is also used for rounded popup borders (on Win 11) and in class SystemInfo to determine Windows 11.
There is no way to disable usage of the DLL.

You maybe get the message as soon as a popup is shown (tooltip, combobox list, menu, ...).
You can find out easy by setting a breakpoint 😉

DevCharly added a commit that referenced this issue Jun 20, 2023
@DevCharly
Copy link
Collaborator

I've added another system property to disable usage of FlatLaf native library:

System.setProperty( "flatlaf.useNativeLibrary", "false" );

fixed in latest 3.2-SNAPSHOT: https://github.com/JFormDesigner/FlatLaf#snapshots

@DevCharly DevCharly added this to the 3.2 milestone Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants