libuvc-rs icon indicating copy to clipboard operation
libuvc-rs copied to clipboard

Help Troubleshooting Error: Other

Open davidlaym opened this issue 3 years ago • 1 comments

I'm basically trying out the example code, and fails with the following message:

Could not get context: Other the line indicated points to first line where the context is created.

The 'Other' error seems to come directly from libuvc and there are no more details, so can't really continue troubleshooting on my own.

I'm using Windows 10, but running over WSL2, so basically ubuntu 20. uvc is loaded as vendor:

uvc = {version = "0.2.0",default-features = false, features = ["vendor"]}

as that was the only way I was able to make it compile.

Do you know any other thing I can do to continue troubleshooting?

davidlaym avatar Sep 23 '21 01:09 davidlaym

It looks like libuvc calls into libusb when creating the context, I want to help more but I don't want to dig into more C library code. libusb init libuvc

(if you need a camera library, you may be interested in the upcoming 0.4 release of nokhwa, my other crate that contains a V4L2 and a MSMF backend)

l1npengtul avatar Sep 23 '21 02:09 l1npengtul