[gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer

I have written a C++ program on NVIDIA Orin NX 8 GB to interface with an IMX327 camera.
After running the program for a while, the camera fails to capture images, and restart the program, it still cannot capture images.
Upon investigation, I found that restarting the nvargus-daemon.service by executing the command

sudo systemctl restart nvargus-daemon.service

restores the ability to capture images.
I would like to understand why this issue occurs and how to resolve it.

(the output is from the rerun)


Is your camera opening and running?

Yes, the camera is running but unable to capture images. The current assumption is that this is caused by the crash of the nvargus-daemon.service.

This is the log file of nvargus-daemon.service. Please start reading from March 29, 16:17:10.

Ok, I understand.

But confirm camera streaming by running using v4l2-ctl commands.

Install v4l2-ctl command by running below command.(Ignore this step if this command is already installed)
$$ sudo apt-get update
$$ sudo apt-get install v4l-utils

Run below command to see camera streaming.
$$ v4l2-ctl -d /dev/video0  --stream-mmap

This command will represent output stream using arrow “>>” symbol along with FPS.

Thank you!
I will try it.

This is the output of the v4l2 command when the program suddenly fails to capture images. And when the program is running normally, it will also display “BUSY.”

This is the corresponding log of nvargus-daemon.


I think your system is unable to get frame data from sensor. So Please make sure that your sensor output signal and driver stability.

1 Like

Thank you for your help, I also think so. Because I wrote the driver for the IMX327 after researching it myself, and these past two days, I have been using the system-supported IMX219 camera without encountering such issues.

This is the log of nvargus-daemon when starting up with the IMX327. Please start reading the log from 3月29 16:17:10
This might validate your idea.

Suppose it could be the sensor driver or HW signal problem cause capture failed.
I would suggest modify the control function in the sensor driver as dummy function to avoid driver special the xxx_set_exposure function set invalidate data cause the capture failed.

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