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

Message "Couldn't get HWND of window" in the log #321

Closed
fedesog opened this issue May 25, 2022 · 3 comments
Closed

Message "Couldn't get HWND of window" in the log #321

fedesog opened this issue May 25, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@fedesog
Copy link

fedesog commented May 25, 2022

Describe the bug
Sometimes during startup I see the error message below (or similar, same error but different classes). I'm just reporting it since it's marked as "SEVERE" but I'm not really noticing any issue with the UI and the application seems to be working just fine. Any idea what could cause it?

[25/05/2022, 12:01] [SEVERE] Couldn't get HWND of window (errorCode =-2141387734).javax.swing.JFrame[frame0,0,0,136x39,invalid,hidden,layout=java.awt.BorderLayout,title=,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,0,0x0,invalid,layout=com.github.weisj.darklaf.platform.decorations.NativeDecorationsRootLayout,alignmentX=0.0,alignmentY=0.0,border=com.github.weisj.darklaf.ui.rootpane.DarkRootPaneBorder@2109da6a,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true] [at com.github.weisj.darklaf.platform.windows.PointerUtil]

To Reproduce
I couldn't find a way to consistently reproduce the issue

Additional Information:

  • OS Windows 10 21H2 (build 19044)
  • Darklaf Version: 3.0.0
@fedesog fedesog added the bug Something isn't working label May 25, 2022
@fedesog fedesog changed the title Couldn't get HWND of window message in the log Message "Couldn't get HWND of window" in the log May 25, 2022
@weisJ
Copy link
Owner

weisJ commented May 25, 2022

This actually looks like the report is a fluke. One codepath assumed all pointers < 0 are invalid. All other locations don't really core for negative pointers and work like expected (which is why you don't see any noticable difference).
Notably it does have a small visual impact right now in that if this happens with a popup menu then it won't actually have a shadow.
The error should be gone with the next version :) Thank you for reporting it

@fedesog
Copy link
Author

fedesog commented May 26, 2022

Great, thanks!

@weisJ
Copy link
Owner

weisJ commented Aug 1, 2022

Version 3.0.1 has been released and should fix this.

@weisJ weisJ closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants