-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
nrjavaserial crashes Java 11 JVM on Windows #1384
Comments
Hooray, nrjavaserial 4.0.0 has been released! |
Yes that's good news! However it looks like the branch that was used to create it didn't contain all commits that were already on the master branch. So it's missing ARM64 support, named threads and the fix for the IllegalMonitorState. :-/ |
Then you should quickly ask for a 4.0.1 as long as he is around! |
The 4.0.1 version has all commits, but it seems unusable because of a manifest issue NeuronRobotics/nrjavaserial#158. |
To summarize the current state:
The errors for instance show when a serial connection is open and when the UI then gets the details of a thing type having a I hope the issue is fixed upstream so we can finally ditch our own build. |
Updates nrjavaserial to the official 3.20.0 release (compatible with Java 8/11). With the upgraded version the library will no longer crash the Java 11 VM on Windows. The native libraries now use the built in RXTX lockfiles instead of the previously used (OS dependent) liblockdev whereas the OH build didn't use any lockfiles at all. It also has a fix for errors being printed when scanning for serial ports whenever a serial port is locked (NeuronRobotics/nrjavaserial#166). With the new version RXTX threads also have proper names and there is a fix for an IllegalMonitorStateException that might occur when closing ports. Fixes openhab#1384 Signed-off-by: Wouter Born <[email protected]>
Updates nrjavaserial to the official 3.20.0 release (compatible with Java 8/11). With the upgraded version the library will no longer crash the Java 11 VM on Windows. The native libraries now use the built in RXTX lockfiles instead of the previously used (OS dependent) liblockdev whereas the OH build didn't use any lockfiles at all. It also has a fix for errors being printed when scanning for serial ports whenever a serial port is locked (NeuronRobotics/nrjavaserial#166). With the new version RXTX threads also have proper names and there is a fix for an IllegalMonitorStateException that might occur when closing ports. Fixes #1384 Signed-off-by: Wouter Born <[email protected]>
Updates nrjavaserial to the official 3.20.0 release (compatible with Java 8/11). With the upgraded version the library will no longer crash the Java 11 VM on Windows. The native libraries now use the built in RXTX lockfiles instead of the previously used (OS dependent) liblockdev whereas the OH build didn't use any lockfiles at all. It also has a fix for errors being printed when scanning for serial ports whenever a serial port is locked (NeuronRobotics/nrjavaserial#166). With the new version RXTX threads also have proper names and there is a fix for an IllegalMonitorStateException that might occur when closing ports. Fixes openhab#1384 Signed-off-by: Wouter Born <[email protected]> GitOrigin-RevId: 66da3a7
The whole JVM crashes on Windows when using nrjavaserial as RXTX implementation with Java 11.
We must not forget to integrate a fix for this or OH3 releases might not be very usable on Windows.
See also:
The text was updated successfully, but these errors were encountered: