Closed ymendel closed 2 years ago
@ymendel: thanks for the report! Looking at the log output, this seems related to https://github.com/node-usb/node-usb/issues/418, which specifically mentions ThreadSafeFunction
and was closed a couple of days ago. That fix is included in node-usb
v1.8.1 (and v1.9.0), but it seems they don't work as expected for everyone. I don't see the same issue on my machine, perhaps due to having some debug versions of some libraries installed, so would appreciate if you can report the bug to https://github.com/node-usb/node-usb!
By the way, you can also check the version of node-usb
currently in use with:
npm list --global usb
Sample output:
.../npm/lib
└─┬ uvcc@5.0.1
└─┬ uvc-control@2.0.0 invalid: "github:joelpurra/node-uvc-control#v2" from node_modules/uvcc
└── usb@1.8.0
Since node-usb
v1.8.0 was confirmed to work with uvcc
v5.0.0 in https://github.com/joelpurra/uvcc/issues/18, I'll pin that version for now (despite delays at program exit reported in https://github.com/joelpurra/uvcc/issues/16).
Just published uvcc
v5.0.1. Install/upgrade with:
npm install --global uvcc@latest
Does this version work?
@joelpurra : Cool, v5.0.1 definitely works, but it does have that unfortunate delay of program exit you mentioned in #16 . I mean, this output from time uvcc devices
is no fun, but it's still better than things not working 😒
real 0m8.897s
user 0m0.275s
sys 0m0.104s
I'll definitely go over to node-usb and see what's going on there. Thanks a lot for the quick response, and for making it easy to keep my face from being too bright and blown-out in all the video meetings I have nowadays.
@ymendel: glad to hear, thanks for confirming! Closing the issue, but please report back if there's progress upstream.
If you want a hacky workaround, you can always do something like:
time timeout 0.5s uvcc devices
The minimum timeout is system dependent. An alias
could cement the hack. See GNU coreutils
and documentation for timeout
.
After a recent node/npm upgrade,
uvcc
has stopped working for me. Simple commands likeuvcc help
work, but trying to change anything or get a list of devices fails, and looking through this output I can't tell why:From looking at another issue, I tried uninstalling and re-installing with
uvcc@latest
, and it's still erroring.More info for you:
on MacOS Big Sur, v11.6