-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Disconnecting USB device causes Java to exit with 2.5 #1492
Comments
I've created NeuronRobotics/nrjavaserial#180 for this recently. |
@wborn, this might be different. Here's the code:
I created NeuronRobotics/nrjavaserial#181 for this issue. |
Did you also test using nrjavaserial 5.1+? |
I've created a reversioned nrjavaserial 5.1.1 bundle that can also be easily used with OH 2.5.x. |
@wborn, I gave 5.1.1 a try and it still crashes. I renamed the old library by appending .old:
|
This should be fixed in nrjavaserial 5.2.0. |
It doesn't seem to fix the other issue NeuronRobotics/nrjavaserial#180. |
@wborn, let me know if you have a reversioned bundle like you have above for 5.1.1. If so, I'll give it a try. |
I've reversioned 5.2.1 in this nrjavaserial-3.15.0.OH2.jar. |
This is fixed with 5.2.1 |
That's certainly nice! There's still NeuronRobotics/nrjavaserial#111 that may cause the library fail to reconnect after the device has been unplugged for a while and you then reconnect it. 🙁 |
@wborn,
spi is false. It should be true. |
I tried calling |
Let's close this since the original issue is fixed with nrjavaserial 5.2.1. If you have more nrjavaserial related issues, please create issues for these in the nrjavaserial issue tracker. That way they will be fixed sooner because the nrjavaserial maintainers don't look for issues in their library in this tracker. 😉 |
I'm trying improve how the Insteon binding handles reconnects. During my testing of the PLM which uses a USB port, Java exits with no error in the following situation on Linux
This causes Java to exit in gnu.io.CommPortIdentifier.open():
With nrjavaserial-3.14.0.jar, this is line 474 in CommPortIdentifier.java.
It appears that Java is crashing while trying to call the native method
native_psmisc_report_owner
.This appears to be the same as https://code.google.com/archive/p/nrjavaserial/issues/27
The text was updated successfully, but these errors were encountered: