Nvarguscamerasrc fails with "Failed to create CameraProvider" after timeout

Hi NVIDIA team,

I’m seeing an intermittent issue where nvarguscamerasrc fails to create the camera provider.

Environment:

  • Kernel: 5.15.185-tegra

Pipeline:

gst-launch-1.0 nvarguscamerasrc ! \
'video/x-raw(memory:NVMM), width=4000, height=3000, format=NV12, framerate=30/1' ! \
fakesink

GStreamer output:

(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 220)
(Argus) Error Timeout: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 107)

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:789 Failed to create CameraProvider

After restart the service nvargus-daemon, the issue is

GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Redistribute latency…
Got EOS from element “pipeline0”.
Execution ended after 0:00:04.011658666
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success**

Application log:**

Error generated. ... gstnvarguscamerasrc.cpp, execute:789 Failed to create CameraProvider
[14:00:34.575] Begin at probe function for unlinking
[14:00:34.576] Unlinking: Send signal outside

dmesg:

[ 3940.181091] devA 9-0010: devA_open:
[ 3940.181198] devA 9-001a: devA_open:
[ 3955.680488] nvmap_alloc_handle: PID 66628: app_src: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Please pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.

Has anyone encountered this Failed to create CameraProvider / Cannot create camera provider timeout on kernel 5.15.185-tegra? Is this likely related to the Argus daemon, camera driver, or a known regression in the Argus userspace stack?

Any suggestions for further debugging would be appreciated. Thanks!

Do you confirm the sensor capture by v4l2-ctl?

Hi @Shane ,
After meet with the error above,

I cannot capture by v4l2-ctl, neither restart the nvargus-daemon service nor
sudo reboot

The only solution is:
Power off physically and then power on again.

The symptom looks like the sensor need power cycle to unlocked the sensor state.

Suspect it could be the sensor HW problem.

Thanks

Yeah, after reinstall new sensor, and cable, it works well. Thank you!