Closed GitMiNo closed 4 years ago
Yes, sometimes keyboard and mouse aren't working anymore in Windows 10
So there are two problems, the second problem i mention is the keyboard and mouse not working after installing UsbDk sometimes. This is not a big issue, since it happens only on some PC's and only one time after install. After reboot the keyboard and mouse never hangs again.
The first problem is a bigger problem that the "UsbDk_StartRedirect" hangs sometimes with the devices we use, resulting in a hanged program. About 15+ people at the company use it.
Is this a known problem and are you planning to look into this issue or is it possible to cancel the "UsbDk_StartRedirect" or give it a timeout ?
@GitMiNo UsbDk_StartRedirect by design has timeout of 120 seconds and always shall return. Typically it succeeds almost immediately. In rare cases when the device/hub fail to process 'port cycle' request properly and the device does not come back in reasonable time (120 sec), the call shall return anyway. We suggest to make record of the problematic scenario as described in https://github.com/daynix/UsbDk/blob/master/Documentation/Tracing.txt and provide additional info about USB devices that cause such problem, see also https://github.com/daynix/UsbDk/blob/master/Documentation/UsbInfo.txt
Please try 1.00-22, it solves some problems with redirection of specific devices. Please reopen if needed, point on exact devices and provide a record.
I can reliably cause Usbdk_StartRedirect to lock.
The device is a USB WiBU-BOX/U software dongle
I will also try to pin down the exact issue. It seems like the Port Power Cycle fails and
The log follows
[3]2FC0.21CC::04/11/2020-23:55:58.120 [UsbDk]CUsbDkFilterDevice::OnFileCreate
[3]2FC0.21CC::04/11/2020-23:55:58.120 [UsbDk]CUsbDkFilterDevice::OnFileCreate: completed
[0]0004.1A18::04/11/2020-23:55:58.250 [UsbDk]
Some more information:
If the wibubox that is redirected DOES NOT have a driver on the host (In device manager it shows an exclamation with no driver as the reason) then it will lock when start/stop/start redirect (sometimes just start redirect the first time will lock)
If the device DOES have a driver bound to it on the host before it is redirected there is no lockup. If i bind a driver to the wibu-box/u then redirected it afterwards via usbdk it will not lock no matter how many times i start/stop redirection
Using UsbDk 1.0.019_x64 from a 32 bit program on Windows 10. The UsbDk_StartRedirect sometimes doesn't return. This doesn't happen often. So most of the time there is no problem but sometimes at any moment the startRedirect call hangs ( no hardware change ). When this happens, after killing and restarting the program the problem is gone. Other times it will keep failing and a reboot is required. On my PC this happened once in 2-3 weeks but other people reported this more often.
BTW: I also notices when installing UsbDk 1.0.19 on some PC's that the USB isn't working anymore ( keyboard mouse etc ). After a reboot the problem is gone. I believe this problem is also reported by someone else.