Paul Frischknecht @ Dosilab AG

Results 14 comments of Paul Frischknecht @ Dosilab AG

What a pain. I am trying to set up a Windows Server to be a Jenkins Agent but there is no way to enable it to run docker commands because...

I ended up creating another local admin user (besides the default Administrator on Windows Server) and could configure automatic login for that via netplwiz and by following https://www.makeuseof.com/windows-11-missing-auto-login-fix/ to restore...

https://github.com/libusb/hidapi/blob/d101e5c7e4646ecde66b650b3b8ce4904acfb13a/libusb/hid.c#L1785

to expand a bit on the discussion for writing to devices/files in general: The API documentation/specification of hid_write should be changed to say that all the function return value indicates...

Other hid-api's have tried to make this caveat of writing/sending data more clear in their documentation, for instance: https://github.com/nyholku/purejavahidapi/blob/f769fcddf62503cff554e646587c92350ca664e5/src/purejavahidapi/HidDevice.java#L98 ``` * The method returning is no guarantee that the data...

We should revise https://github.com/libusb/hidapi/blob/d101e5c7e4646ecde66b650b3b8ce4904acfb13a/windows/hid.c#L1103 and https://github.com/signal11/hidapi/issues/88 and https://github.com/signal11/hidapi/blob/windows_write_timeout/windows/hid.c#L602 The decision to add a 1 sec timeout seems completely arbitrary. If necessary, maybe hid_write could provide a hid_write_timeout and if need...

As mentioned in the OP, libusb has the same issue with an arbitrary 1 sec timeout: https://github.com/libusb/hidapi/blob/d101e5c7e4646ecde66b650b3b8ce4904acfb13a/libusb/hid.c#L1431-L1435 hidraw has no timeout https://github.com/libusb/hidapi/blob/d101e5c7e4646ecde66b650b3b8ce4904acfb13a/linux/hid.c#L1100

Thanks for your insights @Youw . Do you have the link to the line in the kernel? Interesting that there would be any timeout at all, my impression was always...

I can confirm that a timeout of 5000 ms = 5 sec works well in my context. First I tried to revert to the signal11 version with infinite timeout on...

for now, I have created a private fork of this repo and removed all Thread based functionality (scan thread, reader thread); now the same infinite loop never crashes the program