kbingham/libcamera

Zero sequence expected for first frame error on Rpi4

tmsd2001 opened this issue · 4 comments

OS:
Linux camerapi8 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux

libcamera:


[1:17:14.018313530] [15880]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3865-3fad116f
[1:17:14.032367040] [15881]  INFO RPI raspberrypi.cpp:1374 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media2
[1:17:14.033062467] [15880]  INFO Camera camera.cpp:1035 configuring streams: (0) 1296x972-YUV420
[1:17:14.033441180] [15881]  INFO RPI raspberrypi.cpp:761 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA

Error:

Stream configuration adjusted
[0:34:20.004970168] [13509]  INFO Camera camera.cpp:1035 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGRBG10_CSI2P
[0:34:20.005919105] [13510]  INFO RPI raspberrypi.cpp:761 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGRBG10_1X10 - Selected unicam format: 2592x1944-pgAA
TfStage: no low resolution stream
TfStage: Main stream is 2592x1944
 detected
[0:34:20.250307291] [13510]  WARN V4L2 v4l2_videodevice.cpp:1803 /dev/video0[15:cap]: Zero sequence expected for first frame (got 1)

App:
libcamera-apps / libcamera-detect
The program gets stuck at this point, but hasn't crashed.

That last warning about zero sequence can be ignored. Perhaps we should find a way to fix it in the kernels so it doesn't appear, but it's not harmful in this instance. In fact Perhaps it could even be lowered to a debug print.

As to being stuck, If you are using libcamera-apps, please report this issue to them.
Raspberry Pi develop the libcamera-apps independently of the libcamera project.

https://github.com/raspberrypi/libcamera-apps

Are there still any topics to consider in this issue?

I've prepared and sent a patch to lower the log level of this print to hopefully reduce concern about it in the future.
https://patchwork.libcamera.org/patch/17611/