Comments (3)
I wasn't able to reproduce the original issue, presumably because I don't have a device that would allow me to do so.
I believe there is a race condition, that when hit, may lead to deadlock, when trying to close the device, in case if device submits transfers/interruptions frequently, and device is being closed exactly during successful handling of such transfer.
The fix suggested in #143 kind-of fixes the issue. Kind-of, because it constantly tries not to hit a deadlock, but a race condition is still there, it is a root cause, and we better fix a root cause, not symptoms.
@vozhyk-com would you be able to check a patch I prepared, with your device? https://github.com/libusb/hidapi/tree/libusb-hang
from hidapi.
I confirm that the patch from branch libusb-hang solves #142 issue. I can not reproduce it with the patch, but easy can reproduce without.
from hidapi.
That's awesome news. As I hoped, the root issue found and fixed.
from hidapi.
Related Issues (20)
- Call to `hid_read_timeout` sometimes never returns on Windows HOT 1
- ImportError of usblib libraries HOT 3
- Why need sudo for libhidapi-libusb and not for libhidapi-hidraw? HOT 4
- Linux / hidraw flock support? HOT 1
- Meson build system cannot be used for cross builds HOT 4
- spacemouse
- [MacOS] Potential issues reported by clang (low to medium priority)
- Getting undefined reference to 'hid_get_report descriptor' and 'hid_get_device_info' when compiling/linking test.c HOT 1
- Potential solution to MacOS hid_init/hid_exit issue HOT 4
- Cannot compile hidapi 1.5.0 on macos HOT 3
- need longer timeout with send_feature_report() for libusb under Windows HOT 3
- Warnings HOT 3
- Consern regarding Hotplug callbacks implementation HOT 1
- warning: [email protected]: cc1: fatal error: etc/hidapi/linux/hid.c: No such file or directory HOT 1
- Hello, does hidapi currently support iPhone 15 devices with iOS system and iPad devices with USB interface HOT 1
- mistake in name HOT 3
- libusb backend: "hid_error is not implemented yet" HOT 2
- How to test it in Android with HIDAPI? HOT 1
- Windows&libusb: hid_write Issue: hid_write/WaitForSingleObject: (0x000003E5) Overlapped I/O operation is in progress. (Regression from signal11 version, 1 sec write timeout issue!) HOT 8
- Doesnt work properly on windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hidapi.