You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First-chance exception at 0x00007FFDB1743C58 in Protonect.exe: Microsoft C++ exception: UsbDkDriverFileException at memory location 0x00000095014FDA30. Driver file operation error. DeviceIoControl failed (The system cannot find the file specified. Error code = 2)
First-chance exception at 0x00007FFEC5F83C58 in Protonect.exe: Microsoft C++ exception: UsbDkDriverFileException at memory location 0x000000900C59D3F0. Driver file operation error. DeviceIoControl failed (The system cannot find the file specified. Error code = 2) OpenKinect/libfreenect2#812 (comment)
The error can be reproduced by libusb_open() immediately after libusb_close() and would go away if there is some time delay between the two calls.
The error is only reproduced with v1.0.17 and not v1.0.16.
The text was updated successfully, but these errors were encountered:
This is by design. On libusb_close() UsbDk initiates device reset and client have to wait until reset completion in order to open it again.
Commit 848bb79 introduced between versions 1.0.16 and 1.0.17 increased amount of time client application has to wait for device re-appearance, therefore you hit this issue more frequently.
In order to resolve the issue properly, you should either wait for hotplug event related to the device in question or wait for the device in question to re-appear in libusb device list. After that, libusb_open() will work as expected.
Our users started to get this error on Windows:
libusb_open returned: -99
First-chance exception at 0x00007FFDB1743C58 in Protonect.exe: Microsoft C++ exception: UsbDkDriverFileException at memory location 0x00000095014FDA30. Driver file operation error. DeviceIoControl failed (The system cannot find the file specified. Error code = 2)
First-chance exception at 0x00007FFEC5F83C58 in Protonect.exe: Microsoft C++ exception: UsbDkDriverFileException at memory location 0x000000900C59D3F0. Driver file operation error. DeviceIoControl failed (The system cannot find the file specified. Error code = 2)
OpenKinect/libfreenect2#812 (comment)
The error can be reproduced by
libusb_open()
immediately afterlibusb_close()
and would go away if there is some time delay between the two calls.The error is only reproduced with v1.0.17 and not v1.0.16.
The text was updated successfully, but these errors were encountered: