mattanger / ckb-next

RGB Driver for Linux and OS X
http://forum.corsair.com/v3/showthread.php?t=133929
GNU General Public License v2.0
656 stars 76 forks source link

ckb-daemon hangs on exit/shutdown #344

Closed hexadecatrienoic closed 6 years ago

hexadecatrienoic commented 6 years ago

Running ckb-next-git 1:0.2.8.r226.g79987f8-1 from the AUR, on Arch 4.13.12-1-ARCH.

When ckb-daemon exits, it hangs for around 30 seconds before actually exiting. I have attached the output from sudo strace ckb-daemon |& tee ckb-daemon-strace.out here. The process was killed by sudo pkill ckb-daemon in another terminal, and this was all run with ckb-daemon.service stopped. The exit hangs on line 4120, at ioctl(3, USBDEVFS_IOCTL before printing the rest of the line. The rest of the output is printed immediately after it finishes hanging. I can provide more information if required.

Ravenslofty commented 6 years ago

We know about this issue, though we haven't run strace like you have. Since it's hanging in an ioctl, that points to the problem being in the kernel, and not in our code.

We plan to switch to libusb on Linux; it might solve it, it might not, but it's worth a shot.

hexadecatrienoic commented 6 years ago

Ok, I'm happy to help debug if needed.

Ravenslofty commented 6 years ago

The easiest way to do that is to join us in IRC - #ckb-next on Freenode. That way we get fast response, and it's much easier to do.

tatokis commented 6 years ago

https://github.com/ckb-next/ckb-next/issues/47