-
Notifications
You must be signed in to change notification settings - Fork 853
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
UnsatisfiedLinkError with detached window #4441
Comments
Also in the other issue
NetBeans is using an out of date jna-jars, is that orthogonal to the JDK issue? Or a work around for the JDK issue? In particular, would this NetBeans problem disappear if it used an up to date jna? In case it's useful
Any idea if openjdk18 has it fixed? |
@matthiasblaesing I'll let you make the call on a JNA update for NB15 or NB16. Or if safer for NB15, we could add the
There is no bug in OpenJDK. Just different vendors using different linking options in their builds. The issue is that older builds of JNA only work with the "legacy" linking option for native binaries. |
JNA 5.12.1 is now about a month old. The patch level 1 indicates, that there was an issue directly found after release, which was related to the removal of finalizers in JNA core in favor of a cleaner. I'm in favor of updating and created an corresponding PR. I reproduced the issue with the Ubuntu system JDK and found the issue fixed after the JNA update. A prebuild binary is available here: https://doppel-helix.eu/NetBeans-dev-dev-c6166f56bdefe2dee663b5bb26de86219e4c04ff-release.zip @errael it would be could if you could test it. |
@matthiasblaesing Changing only the NetBeans build, the link error goes away. Didn't notice any problems. |
@errael thanks for checking |
Thanks @matthiasblaesing - merging now. |
Apache NetBeans version
Apache NetBeans 14
What happened
With a detached NetBeans
Output Window
, I frequently see the following exception.How to reproduce
Not sure exactly; only sure that it needs a detached NetBeans window.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Linux harmony 5.18.10-76051810-generic #202207071639
165725231022.04~7d5e891 SMP PREEMPT_DYNAMIC Fri J x86_64 x86_64 x86_64 GNU/LinuxJDK
openjdk 17
Apache NetBeans packaging
Own source build
Anything else
This issue arose when investigating #4437 (which also involves a detached window). @neilcsmith-net indicates it's not related to that issue, and requested a new issue be opened).
Some relevant info that was mentioned in that issue...
the UnsatisfiedLinkError. That's almost certainly caused by the issue fixed in java-native-access/jna#1422
Could NetBeans include jna with the fix? It's not in NB-15.
5.9.0 seems to be a year old. The fix you mentioned is in 5.11.0, end of March. The latest release, 5.12.1, is end of June.
Are you willing to submit a pull request?
No
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: