Uvcvideo: Failed to resubmit video URB (-1) on Kernel 4.9.201-tegra

Hi there,

it seems the Jetson Nano Tegra 4.9.201 Kernel is also affected by this Linux Kernel Bug:

When you connect/disconnect a “Webcam” (in this case its an Elgato Camlink 4K Capture Card capturing into the gstreamer pipeline from an Sony Fdr-x3000 Action Cam) you get

[Sa Mai 22 21:23:18 2021] uvcvideo: Failed to resubmit video URB (-1).
[Sa Mai 22 22:23:12 2021] uvcvideo: Failed to resubmit video URB (-1).
[Sa Mai 22 22:23:13 2021] uvcvideo: Failed to resubmit video URB (-1).
[Sa Mai 22 22:23:13 2021] uvcvideo: Failed to resubmit video URB (-1).
[Sa Mai 22 22:23:13 2021] uvcvideo: Failed to resubmit video URB (-1).
[Sa Mai 22 22:23:13 2021] uvcvideo: Failed to resubmit video URB (-1).

And:

[So Mai 23 23:10:59 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:04 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:09 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:11:14 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:19 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:24 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:29 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:34 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:39 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:44 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:49 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:11:54 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:11:59 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:04 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:09 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:14 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:19 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:24 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:29 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:12:34 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:39 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:44 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:49 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:54 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:12:59 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:04 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:13:09 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:14 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:19 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:24 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:29 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:34 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:39 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:44 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:13:49 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:54 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:13:59 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:04 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:09 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:14 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:19 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:24 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:14:29 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:34 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:39 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:44 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:49 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:54 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:14:59 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:04 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:15:09 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:14 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:19 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:24 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:29 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:34 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:39 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:44 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:15:49 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:54 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:15:59 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:04 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:09 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:14 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:19 2021] retire_capture_urb: 4993 callbacks suppressed
[So Mai 23 23:16:24 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:29 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:34 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:39 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:44 2021] retire_capture_urb: 4994 callbacks suppressed
[So Mai 23 23:16:49 2021] retire_capture_urb: 4994 callbacks suppressed

Will this be fixed in a future Kernel Release ?

KR
Stoney

We don’t have this device on hand to check this problem.
Maybe check with webcam vendor would be get more information.

You can get the Elgato Camlink 4K on Amazon. It´s a commonly used device to capture Video. Its a capture card (USB Size) and not a Webcam.

You may also check:

Thanks for the link. But its working perfectly fine for me. Its just throwing these errors in DMESG massively. So i think it´s a kernel bug that needs to be fixed.

I have no idea about the cause or fix, but you are correct that the errors are 100% USB side and unrelated to the capture or involvement of a camera. It could be either the camera or the USB device causing this, and I think to find out which (unless someone from kernel development has seen this before) you’d likely need to throw on a USB protocol analyzer.

I´m willing to contribute and help as much as i can. Unfortunately i am not a kernel developer so i´d need some guidance how to debug this so i can provide you guys with better information. Can you advise me on the USB protocol analyzer so i can supply proper logs please?

Protocol analyzers are cheap for low speed communications protocols. You can get USB1.1 without a lot of money. Once you go to USB2 speeds things get significantly more expensive. Analyzers which work at USB3 speeds are insanely expensive.

Some USB3 devices can run at USB2 speeds, but I suspect a 4k camera cannot allow this. You wouldn’t even want to run two USB3 cameras on the same port.

There isn’t anything I can do for the USB errors, but sometimes you can cheat if it is a signal quality issue. Shorter cables help. Trying different HUBs with just your device on the HUB might get around it. @HoneyPatouceul mentioned a URL he found related to this, and perhaps it is a usable method to go forward, but I couldn’t say.