-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of undefined (reading 'descriptor') #23
Comments
This is because in
|
@wookayin: haven't seen that error before, and can't reproduce it. As I can't reproduce the issue (be it because of system configuration, hardware configuration, or something else) I suggest that you debug locally.
One improvement would be to check for a |
Hello @joelpurra, thanks for your reply. I have exactly the same configuration as where it worked previously, before v5.0.2 release (though it was buggy, #22). I use Logitech BRIO 4K and 930e. I do see the webcam device in chrome://usb-internals/ --- while doing this troubleshoothing, I can use the webcam in other programs without any issues. The webcam device (vendor 0x046D, product 0x0891) has three interfaces:
The configuration descriptor looks as follows (which I cannot easily understand): I also tried to print out all the vendorId, productId, interface class code for all the const vcInterface = device.interfaces.filter(interface => {
const {
descriptor, device
} = interface
+ console.log(device.deviceDescriptor.idVendor, device.deviceDescriptor.idProduct, descriptor.bInterfaceClass);
return descriptor.bInterfaceClass === CC.VIDEO &&
descriptor.bInterfaceSubClass === SC.VIDEOCONTROL
})[0] |
@wookayin: the interfaces you see, for one of your cameras, look correct. This is the interface
You also have at least one more camera connected though.
There are bugs in your debugging code.
You say that this setup worked well before, and that the only thing that differs is the If you want to dig deeper, here are some debugging suggestions.
Does any combination of that work? Note that the biggest changes to |
I've read this thread and I'm not sure I'll be able to contribute much, but I'd like to report I also see this bug.
This is on an Intel Mac Mini (2018). The camera I have attached is a Logitech C615.
Error using
Perhaps this data point will help someone else. |
@wookayin, @eparadis: which version of macOS are you using? Have seen reports of issues with macOS 12 in other projects. The current approach where the USB device is accessed directly, implemented by for example |
Workaround which may not be easy to implement (using a codeless DriverKit Extension). |
Version:
(Note: M1 mac, arm64)
Error:
The text was updated successfully, but these errors were encountered: