Tuesday 1 May 2018

Bug in the recent Linux kernels affecting Video 4 Linux

There is a bug that has been introduced into the Linux kernel since April 12, 2018.
The bug manifests itself as each V4L camera on the USB bus being presented twice. This is the information I have at the moments on the versions involved:
This problem has been found on Fedora kernels but may be present in other kernels.

Fedora Linux kernel version

4.15.17    Apl 12    works correctly
4.16.4      Apr 24    kernel bug displaying 2 devices
4.16.5      Apr 27    kernel bug displaying 2 devices

In AstroDMx Capture for Linux, the bug shows itself at connect time:

Screenshot of the camera connect dialogue showing the cameras presenting twice

Everything will work fine if the first instance of the device is chosen.
It should be noted that this is a bug in the Linux kernel, not in AstroDMx Capture for Linux.
The bug has been reported to the kernel developers and we shall have to see how long they take to fix it. At the moment one can solve the problem by booting into an earlier version of the kernel, or by simply choosing the first device when two are presented. Cameras that are not V4L cameras are not affected.
Nicola has implemented a workaround to eliminate this problem. It will be present in the next release of AstroDMx Capture for Linux.