1

Topic: HidSharp HidManager thread spinning on Linux

Hi,

I've noticed that after some random time the HidManager thread starts looping rapidly on Linux. The loop pins one core to 100% usage.
I've tried to profile the code a bit, and it seems that the NativeMethods.poll returns immediately (Platform/Linux/LinuxHidManager.cs, row 63, "ret = NativeMethods.retry(() => NativeMethods.poll(fds, (IntPtr)1, -1));").

My usage of the library is just opening a device, sending a report to the HID stream and reading a response report, then closing the stream. I'm doing this every 5 minutes or so, and at some random time the HidManager thread starts to eat up the CPU. The program seems to continue working despite this.

2

Re: HidSharp HidManager thread spinning on Linux

Someone reported the same issue on this GitHub mirror/fork: github(dot)com/IntergatedCircuits/HidSharp/issues/8