Skip to content

LIBUSB errors when running on windows #31

@r-bt

Description

@r-bt

Firstly, thanks for the library. I've been using it without issue on macOS but now I'm trying to get some code running on windows and it doesn't work.

Specifically I have a Logitech C930e connected but when I run uvcc devices I just get []

I tried following the advice at #7 (comment) however when I do uvcc --vendor 0x46d --product 0x843 which corresponds to my device vendor and product I get the following error:

WrappedError: Could create uvc-control object: {"pid":2115,"vid":1133} ("Error: LIBUSB_ERROR_NOT_FOUND")
    at CameraFactory.createWrappedError (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/camera-factory.js:93:30)
    at CameraFactory.get (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/camera-factory.js:74:43)
    at CommandManager.execute (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/command-manager.js:73:47)
    at async mainAsync (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/index.js:73:9) {
  innerError: Error: LIBUSB_ERROR_NOT_FOUND
      at Device.open (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\usb\dist\usb\device.js:63:14)
      at UVCControl.init (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\uvc-control\index.js:81:19)
      at new UVCControl (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\uvc-control\index.js:22:10)
      at CameraFactory.get (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/camera-factory.js:54:28)
      at CommandManager.execute (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/command-manager.js:73:47)
      at async mainAsync (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/index.js:73:9) {
    errno: -5
  }
}

I then tried replacing the driver with WinUSB and libusbK using Zadig as recommended in the https://github.com/node-usb/node-usb however I then got this error:

Error: LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED
    at Device.controlTransfer (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\usb\dist\usb\device.js:155:22)
    at Device.getStringDescriptor (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\usb\dist\usb\device.js:197:14)
    at C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\uvc-control\index.js:325:16
    at new Promise (<anonymous>)
    at UVCControl.validate (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\uvc-control\index.js:313:10)
    at Array.map (<anonymous>)
    at C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\uvc-control\index.js:299:36
    at new Promise (<anonymous>)
    at UVCControl.discover (C:\Users\Steve\AppData\Roaming\npm\node_modules\uvcc\node_modules\uvc-control\index.js:298:10)
    at UvcDeviceLister.get (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/uvc-device-lister.js:33:47)
    at DevicesCommand.execute (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/command-handlers/devices.js:35:52)
    at CommandHandlers.execute (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/command-handlers.js:48:38)
    at CommandManager.execute (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/command-manager.js:86:55)
    at async mainAsync (file:///C:/Users/Steve/AppData/Roaming/npm/node_modules/uvcc/dist/index.js:73:9) {
  errno: 0
}
(node:22432) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=true to handle those exceptions properly.
(Use `node --trace-deprecation ...` to show where the warning was created)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions