node-hid: Windows node-hid apps don't exit if `device.on('data', ...)` event handler and device doesn't send data
Hi
I am have a piece of hardware which disconnects itself from usb (without physical d/c) approximately at the same time that I do handle.close() I am getting this error randomly about every 1/5th runs. I tried to google this issue but I only find non electron apps talking about heap corruption, unsure if it’s related.
Environment:
Windows 10 Pro (1803, build 17134.1069).
"node-hid": "^1.1.0"
"electron": "^7.1.2",
Please provide some guidance on how to test this issue, I am having trouble reproducing it consistently
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 24 (9 by maintainers)
Commits related to this issue
- Change async "data" read use hid_read_timeout and check for closed handle.\nPerhaps addresses issues #358, #210, #153, maybe even #230 — committed to node-hid/node-hid by todbot 5 years ago
Hi @todbot -
d762819appears to work in my local tests.Do we still plan on publishing a new 1.2.0 release soon?