Closed janicaud closed 1 year ago
Thanks for reporting this. I agree that it should be handled without an exception.
Do you happen to know what device this is? Is it a USB device you have plugged in, or rather an internal device like a built-in camera or the USB controller/hub on the motherboard?
Typically a oem dongle for ir : https://www.amazon.fr/Zerone-t%C3%A9l%C3%A9commande-Intelligente-Universelle-Anti-poussi%C3%A8re/dp/B07DBYZDSL Tiqiaa Tview
Connected directly to a USB A or C on PC.
I've made a change that will catch and ignore the exception (and output an info). It will fix the problem if the device has a slightly broken device descriptor. But if the problem is more severe, it won't get much further with this device.
Yep totally agree !
Works on my side 👍
On my side, everything is ok ! just waiting for the next release ! thank you
Could you release next version to include the improvement ?
I plan to do it today. Note that it might take several hours until it appears on Maven Central.
It's now available on Maven Central.
Due to a error in USB descriptor. Should be fixed by catching the exception, and maybe setting productname to null
On line 285 of WindowsUsbDeviceRegistry :
device.setProductString(descriptorSegment, (index) -> getStringDescriptor(hubHandle, usbPortNum, index));