2023 WPILibPi image failure accessing camera

We are trying to get the new 2023WPILibPi image to work on our raspberry pi.

Hardware is raspberry pi 4 with 4GB RAM, raspberry pi camera V2.1,

We flashed the V 2023 WPILibPi 1.1 image on 32GB micro SD card

We received the error message:
CS: ERROR: ioctl VIDIOC_QBUF failed at UsbCameraImpl.cpp:719: Invalid argument (UsbUtil.cpp:156)
CS: WARNING: rPi Camera 0: could not queue buffer 0 (UsbCameraImpl.cpp:720)

We get it whether we run the built-in multi-camera streaming or our own Python code. Both of these things, however, work on the 2022WPILibPi image on the same Pi and camera. We also ran on a Raspian image with our own camera code, and had no issues.

Any help would be appreciated.
Thanks!

One big change in the 2023 image is switching to 64-bit. Some people have reported issues with some USB cameras and the 64-bit Pi OS, so I’m working on creating/releasing a 32-bit image as well going forward.

We are also unable to use our raspberry pi camera. getting the error:
CS: ERROR: ioctl VIDIOC_QBUF failed at UsbCameraImpl.cpp:719: Invalid argument (UsbUtil.cpp:156)
CS: WARNING: rPi Camera 0: could not queue buffer 0 (UsbCameraImpl.cpp:720)

We have the camera connected via the ribbon cable. A connected hp usb webcam works just fine. Any idea?

Not Peter or affiliated with wpilib pi, but ensure your cable is inserted properly and fully seated.

triple checked, thank you.

It looks like there’s some issues with the MIPI type cameras and V4L2 (which is what we use for accessing the camera, rather than libcamera).

Editing /boot/config.txt as described at "Unable to start capturing: Invalid argument" on Raspberry Pi 2B · Issue #139 · pikvm/ustreamer · GitHub is what’s necessary to fix it–I had a similar issue getting an OV9281 CSI camera working until I did this.

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.