This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Window:find_libusb_device(). libusb device(s) are all unavalable. Is the device being used by another application? #1974
Labels
Bug
Something isn't working
Triage Needed
The Issue still needs to be reviewed by Azure Kinect team members.
When I use the following code to open the camera, the device cannot be found, failure in k4a _device_open(), the error is as follows:
[2024-03-07 23:22:49.370] [critical] [t=8668] E:\vcpkg\buildtrees\azure-kinect-sensor-sdk\src\v1.4.1-4fd9fcd081.clean\src\usbcommand\usbcommand.c (366): find_libusb_device(). libusb device(s) are all unavalable. Is the device being used by another application?
[2024-03-07 23:22:49.373] [error] [t=8668] E:\vcpkg\buildtrees\azure-kinect-sensor-sdk\src\v1.4.1-4fd9fcd081.clean\src\depth_mcu\depth_mcu.c (68): usb_cmd_create(USB_DEVICE_DEPTH_PROCESSOR, device_index, NULL, &depthmcu->usb_cmd) returned failure in depthmcu_create()
[2024-03-07 23:22:49.373] [error] [t=8668] E:\vcpkg\buildtrees\azure-kinect-sensor-sdk\src\v1.4.1-4fd9fcd081.clean\src\sdk\k4a.c (133): depthmcu_create(index, &device->depthmcu) returned failure in k4a_device_open()
Code:
k4a::device device = k4a::device::open(0); // 打开第一个连接的相机
k4a::calibration calibration = device.get_calibration(K4A_DEPTH_MODE_NFOV_2X2BINNED, K4A_COLOR_RESOLUTION_1080P);
However, I can connect to the camera and view the data normally with the built-in Azure Kinect Viewer v1.4.1.
And my other program, as shown below, is able to connect the camera and configure it normally
void kinectviewer::connect_camera()
{
ui->output_result->setFont(QFont("Arial Unicode MS"));
}
The text was updated successfully, but these errors were encountered: