-
Notifications
You must be signed in to change notification settings - Fork 84
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
Multiple open on same device leads to device lock #81
Comments
To which crate did you have to add new API`s? To hidapi-rs? If so, please post it as a draft PR, then I can take a look. |
In the original message I had linked the project's issue and I've also metioned this issue there so you can also see it in github. The project is Zondax/ledger-rs, specifically the There's a test that I have marked with |
Any update here? Would be really nice to be able to implement the clone trait in https://github.com/Zondax/ledger-rs |
TcpStream::try_clone like api would be very nice |
A report was made to a crate using
hidapi
where the user was looking to open a device multiple times but incurring in weird behavior.I've added some new APIs to the crate to allow this, and during testing for that feature my device froze after closing the device twice.
What I mean is opening the same device multiple times, and then dropping the handles together, so to have N open instances at once...
I think this leads to a "double free" in the underlying library as the device becomes unresponsive until power cycled (could also be an issue with the device itself!)
The text was updated successfully, but these errors were encountered: