mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
This is quite an odd issue/fix. So this is what happened... Photonvision booted with the camera connected and the camera was working... After a short time the camera stopped working (for some reason maybe static, maybe temp, maybe wiring, idk). During this time pv showed Jul 04 06:25:18 BackLeft java[643]: [2024-07-04 06:25:18] [CSCore - PvCSCoreLogger] [ERROR] CS: ERROR 40: ioctl VIDIOC_QBUF failed at UsbCameraImpl.cpp:723: Invalid argument (UsbUtil.cpp:156) Jul 04 06:25:18 BackLeft java[643]: [2024-07-04 06:25:18] [CSCore - PvCSCoreLogger] [WARN] CS: WARNING 30: BackLeft: could not queue buffer 0 (UsbCameraImpl.cpp:724) I went over and played with the wire. The camera fully disconnected but it ended up "reconnecting" When the camera was "reconnected" photonvision detected a "new camera" except this time with no otherpaths (aka no usb path, or by id path). That resulted in pv creating a new camera configuration for a camera with no otherpaths Cscore then started to report errors that look like it attempted to connect to the same camera twice This fixes it by filtering out USB cameras that have no otherpath on linux.