Again MIPI camera not working: Failed to create CameraProvider

When I test my MIPI camera on the nano (Linux jetson-nano 4.9.140-tegra) with

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=960, height=616' ! nvvidconv ! nvegltransform ! nveglglessink -e

I get the following CameraProvider Error:

Setting pipeline to PAUSED ...

Using winsys: x11 
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 215)
(Argus) Error Timeout: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 102)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:526 Failed to create CameraProvider
Got EOS from element "pipeline0".
Execution ended after 0:01:00.061356140
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

My camera is correctly recognized:

v4l2-ctl --all
Driver Info (not using libv4l2):
	Driver name   : tegra-video
	Card type     : vi-output, imx219 6-0010
	Bus info      : platform:54080000.vi:0
	Driver version: 4.9.140
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Priority: 2
Video input : 0 (Camera 0: ok)
Format Video Capture:
	Width/Height      : 3264/2464
	Pixel Format      : 'RG10'
	Field             : None
	Bytes per Line    : 6528
	Size Image        : 16084992
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                    sensor_mode 0x009a2008 (int64)  : min=0 max=0 step=0 default=0 value=0 flags=slider
                           gain 0x009a2009 (int64)  : min=0 max=0 step=0 default=0 value=16 flags=slider
                       exposure 0x009a200a (int64)  : min=0 max=0 step=0 default=0 value=33330 flags=slider
                     frame_rate 0x009a200b (int64)  : min=0 max=0 step=0 default=0 value=21000000 flags=slider
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=1
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=1
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
               write_isp_format 0x009a2068 (bool)   : default=0 value=0
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=5 flags=read-only

Any ideas?

  1. Does v4l2-ctl can capture raw data correctly?
  2. Enable the log to get more information if v4l2-ctl working well.
sudo su
kill the process of argus_daemon/nvargus-daemon or nvcamera-daemon 
export enableCamPclLogs=5
export enableCamScfLogs=5
/usr/sbin/argus_daemon(nvargus-daemon)      option for argus
/usr/sbin/nvcamera-daemon   option for gst-launch
 
launch camera from another console

ShaneCCC:

thanks for your prompt reply. After a reboot I’ve tried the v4l2-ctl capture and found in the v4l2-ctl status this interesting status:

Priority: 2
Video input : 0 (Camera 0: no power)
Format Video Capture:

The no power status only disappears if I’ve called gst-launch-1.0 once. Even then raw v4l2-ctl capture fails.

v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=10
VIDIOC_REQBUFS: failed: Device or resource busy

Next I try to kill and restart the nvargus-daemon:

msbirkne@jetson-nano:/var/log$ ps aux|grep -i nvargus
root      5016  0.2  3.7 10327972 150772 ?     Ssl  18:52   0:03 /usr/sbin/nvargus-daemon
msbirkne  9719  0.0  0.0   6088   692 pts/0    S+   19:14   0:00 grep --color=auto -i nvargus
msbirkne@jetson-nano:/var/log$ sudo kill 5016
msbirkne@jetson-nano:/var/log$ sudo  nvargus-daemon
=== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...

And nothing happens anymore.
However, I found this sequence of events in /var/log/syslog:

Feb 10 18:39:35 jetson-nano kernel: [  386.364960] video4linux video0: frame start syncpt timeout!0
Feb 10 18:39:35 jetson-nano kernel: [  386.572916] video4linux video0: frame start syncpt timeout!0
Feb 10 18:42:20 jetson-nano nvargus-daemon[4898]: === NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...=== gst-launch-1.0[10645]: Connection established (7FAE7181D0)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
Feb 10 18:42:21 jetson-nano nvargus-daemon[4898]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Feb 10 18:42:21 jetson-nano nvargus-daemon[4898]: ---- imager: No override file found. ----
Feb 10 18:42:21 jetson-nano nvargus-daemon[4898]: LSC: LSC surface is not based on full res!
Feb 10 18:42:21 jetson-nano nvargus-daemon[4898]: === gst-launch-1.0[10645]: CameraProvider initialized (0x7fa8834fe0)LSC: LSC surface is not based on full res!
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/NvIspHw.cpp, function waitIspStatsFinished(), line 561)
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 478)
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout:  (propagating from src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 519)
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout: Worker thread IspHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 133)
Feb 10 18:42:22 jetson-nano kernel: [  554.094261] fence timeout on [ffffffc0f38efc00] after 1500ms
Feb 10 18:42:22 jetson-nano kernel: [  554.094269] name=[nvhost_sync:32], current value=0 waiting value=1
Feb 10 18:42:22 jetson-nano kernel: [  554.094274] ---- mlocks ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094283] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094285] ---- syncpts ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094291] id 1 (disp0_a) min 4733 max 4733 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094294] id 2 (disp0_b) min 4 max 4 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094298] id 3 (disp0_c) min 4 max 4 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094303] fence timeout on [ffffffc0f38ef840] after 1500ms
Feb 10 18:42:22 jetson-nano kernel: [  554.094304] id 8 (gm20b_507) min 540 max 540 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094307] id 9 (gm20b_506) min 22 max 22 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094309] name=[nvhost_sync:33], current value=0 waiting value=1
Feb 10 18:42:22 jetson-nano kernel: [  554.094311] ---- mlocks ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094313] id 11 (gm20b_505) min 678 max 678 refs 1 (previous client : gm20b_505)
Feb 10 18:42:22 jetson-nano kernel: [  554.094316] id 12 (gm20b_504) min 6 max 6 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094320] id 13 (gm20b_503) min 199956 max 199956 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094321] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094322] ---- syncpts ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094324] id 14 (gm20b_502) min 66 max 66 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094328] id 15 (gm20b_501) min 23556 max 23556 refs 1 (previous client : gm20b_501)
Feb 10 18:42:22 jetson-nano kernel: [  554.094331] id 16 (gm20b_500) min 8 max 8 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094335] id 17 (gm20b_499) min 4684 max 4684 refs 1 (previous client : gm20b_499)
Feb 10 18:42:22 jetson-nano kernel: [  554.094338] id 18 (gm20b_498) min 14 max 14 refs 1 (previous client : )
etc. 
etc.
Feb 10 18:42:22 jetson-nano kernel: [  554.094512] ---- channels ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094514] id 1 (disp0_a) min 4733 max 4733 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094517] id 2 (disp0_b) min 4 max 4 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094518] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094518] channel 0 - 54600000.isp
Feb 10 18:42:22 jetson-nano kernel: [  554.094518] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094520] id 3 (disp0_c) min 4 max 4 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094524] 0-54600000.isp (1): 
Feb 10 18:42:22 jetson-nano kernel: [  554.094525] id 8 (gm20b_507) min 540 max 540 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094527] inactive
Feb 10 18:42:22 jetson-nano kernel: [  554.094527] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094528] id 9 (gm20b_506) min 22 max 22 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094530] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094530] channel 1 - 54680000.isp
Feb 10 18:42:22 jetson-nano kernel: [  554.094530] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094531] id 11 (gm20b_505) min 678 max 678 refs 1 (previous client : gm20b_505)
Feb 10 18:42:22 jetson-nano kernel: [  554.094533] id 12 (gm20b_504) min 6 max 6 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094535] 1-54680000.isp (18): 
Feb 10 18:42:22 jetson-nano kernel: [  554.094537] id 13 (gm20b_503) min 199956 max 199956 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094540] active class 01, offset 0050, val 00000020
Feb 10 18:42:22 jetson-nano kernel: [  554.094540] id 14 (gm20b_502) min 66 max 66 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094542] DMAPUT 00000198, DMAGET 00000110, DMACTL 00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094543] id 15 (gm20b_501) min 23556 max 23556 refs 1 (previous client : gm20b_501)
Feb 10 18:42:22 jetson-nano kernel: [  554.094545] CBREAD 00000020, CBSTAT 00010050
Feb 10 18:42:22 jetson-nano kernel: [  554.094545] id 16 (gm20b_500) min 8 max 8 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094548] id 17 (gm20b_499) min 4684 max 4684 refs 1 (previous client : gm20b_499)
Feb 10 18:42:22 jetson-nano kernel: [  554.094550] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094550] ffffffc01b101000: JOB, syncpt_id=32, syncpt_val=1, first_get=00000090, timeout=10000, num_slots=3, num_handles=1
Feb 10 18:42:22 jetson-nano kernel: [  554.094551] id 18 (gm20b_498) min 14 max 14 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094554] id 19 (gm20b_497) min 14054 max 14054 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094557] id 20 (gm20b_496) min 14 max 14 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094558]     GATHER at ffc30000+4c48, 8 words
Feb 10 18:42:22 jetson-nano kernel: [  554.094561] 20000001 
Feb 10 18:42:22 jetson-nano kernel: [  554.094561] id 21 (gm20b_495) min 8012 max 8012 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094563] 00000420 
Feb 10 18:42:22 jetson-nano kernel: [  554.094564] id 22 (gm20b_494) min 38 max 38 refs 1 (previous client : gm20b_494)
Feb 10 18:42:22 jetson-nano kernel: [  554.094565] 20000001 
Feb 10 18:42:22 jetson-nano kernel: [  554.094567] id 23 (54340000.vic_gst-launch-1.0_0) min 946 max 946 refs 1 (previous client : vi)
Feb 10 18:42:22 jetson-nano kernel: [  554.094568] 00000521 
Feb 10 18:42:22 jetson-nano kernel: [  554.094570] id 24 (54340000.vic_gst-launch-1.0_0) min 28 max 28 refs 1 (previous client : vi)
Feb 10 18:42:22 jetson-nano kernel: [  554.094571] 20000001 
Feb 10 18:42:22 jetson-nano kernel: [  554.094572] 00000623 
Feb 10 18:42:22 jetson-nano kernel: [  554.094574] id 25 (54340000.vic_gst-launch-1.0_0) min 22 max 22 refs 1 (previous client : gm20b_492)
Feb 10 18:42:22 jetson-nano kernel: [  554.094575] 200c0001 
Feb 10 18:42:22 jetson-nano kernel: [  554.094576] 00000005 
Feb 10 18:42:22 jetson-nano kernel: [  554.094577] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094578] id 26 (vblank0) min 31502 max -8 refs 1 (previous client : )
Feb 10 18:42:22 jetson-nano kernel: [  554.094581] id 28 (54600000.isp_0) min 26 max 26 refs 1 (previous client : gm20b_493)
Feb 10 18:42:22 jetson-nano kernel: [  554.094582]     GATHER at ffc30000+4c68, 2 words
Feb 10 18:42:22 jetson-nano kernel: [  554.094583] 20000001 
Feb 10 18:42:22 jetson-nano kernel: [  554.094585] id 29 (54600000.isp_1) min 16 max 16 refs 1 (previous client : gm20b_491)
Feb 10 18:42:22 jetson-nano kernel: [  554.094586] 00000022 
Feb 10 18:42:22 jetson-nano kernel: [  554.094587] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094588] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094590] id 32 (54680000.isp_0) min 0 max 3 refs 4 (previous client : )
etc.
etc.
Feb 10 18:42:22 jetson-nano kernel: [  554.094592] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094592] channel 2 - 54080000.vi
Feb 10 18:42:22 jetson-nano kernel: [  554.094592] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094746] ---- host general irq ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094746] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094747] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094749] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094749] ---- host general irq ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094749] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094750] sync_hintmask_ext = 0xc0000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094752] sync_hintmask = 0x80000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094752] sync_hintmask_ext = 0xc0000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094754] sync_hintmask = 0x80000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094755] sync_intc0mask = 0x00000001
Feb 10 18:42:22 jetson-nano kernel: [  554.094757] sync_intmask = 0x00000011
Feb 10 18:42:22 jetson-nano kernel: [  554.094758] sync_intc0mask = 0x00000001
Feb 10 18:42:22 jetson-nano kernel: [  554.094759] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094759] ---- host syncpt irq mask ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094759] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094760] sync_intmask = 0x00000011
Feb 10 18:42:22 jetson-nano kernel: [  554.094762] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094762] ---- host syncpt irq mask ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094762] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094763] syncpt_thresh_int_mask(0) = 0x00000001
Feb 10 18:42:22 jetson-nano kernel: [  554.094766] syncpt_thresh_int_mask(0) = 0x00000001
Feb 10 18:42:22 jetson-nano kernel: [  554.094767] syncpt_thresh_int_mask(1) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094769] syncpt_thresh_int_mask(2) = 0x41400055
Feb 10 18:42:22 jetson-nano kernel: [  554.094769] syncpt_thresh_int_mask(1) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094772] syncpt_thresh_int_mask(2) = 0x41400055
Feb 10 18:42:22 jetson-nano kernel: [  554.094772] syncpt_thresh_int_mask(3) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094775] syncpt_thresh_int_mask(4) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094775] syncpt_thresh_int_mask(3) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094778] syncpt_thresh_int_mask(4) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094778] syncpt_thresh_int_mask(5) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094780] syncpt_thresh_int_mask(6) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094781] syncpt_thresh_int_mask(5) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094783] syncpt_thresh_int_mask(6) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094784] syncpt_thresh_int_mask(7) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094786] syncpt_thresh_int_mask(8) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094787] syncpt_thresh_int_mask(7) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094789] syncpt_thresh_int_mask(8) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094790] syncpt_thresh_int_mask(9) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094792] syncpt_thresh_int_mask(10) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094793] syncpt_thresh_int_mask(9) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094795] syncpt_thresh_int_mask(10) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094796] syncpt_thresh_int_mask(11) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094797] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094797] ---- host syncpt irq status ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094797] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094799] syncpt_thresh_int_mask(11) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094800] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094800] ---- host syncpt irq status ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094800] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094801] syncpt_thresh_cpu0_int_status(0) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094804] syncpt_thresh_cpu0_int_status(0) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094805] syncpt_thresh_cpu0_int_status(1) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094807] syncpt_thresh_cpu0_int_status(2) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094807] syncpt_thresh_cpu0_int_status(1) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094810] syncpt_thresh_cpu0_int_status(2) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094810] syncpt_thresh_cpu0_int_status(3) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094813] syncpt_thresh_cpu0_int_status(4) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094813] syncpt_thresh_cpu0_int_status(3) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094816] syncpt_thresh_cpu0_int_status(4) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094816] syncpt_thresh_cpu0_int_status(5) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094818] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094818] ---- host syncpt thresh ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094818] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094820] syncpt_thresh_cpu0_int_status(5) = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.094822] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094822] ---- host syncpt thresh ----
Feb 10 18:42:22 jetson-nano kernel: [  554.094822] 
Feb 10 18:42:22 jetson-nano kernel: [  554.094823] syncpt_int_thresh_thresh_0(0) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094826] syncpt_int_thresh_thresh_0(0) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094840] syncpt_int_thresh_thresh_0(32) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094843] syncpt_int_thresh_thresh_0(33) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094844] syncpt_int_thresh_thresh_0(32) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094847] syncpt_int_thresh_thresh_0(33) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094848] syncpt_int_thresh_thresh_0(34) = 8
Feb 10 18:42:22 jetson-nano kernel: [  554.094850] syncpt_int_thresh_thresh_0(35) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094851] syncpt_int_thresh_thresh_0(34) = 8
Feb 10 18:42:22 jetson-nano kernel: [  554.094854] syncpt_int_thresh_thresh_0(35) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094858] syncpt_int_thresh_thresh_0(43) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094860] syncpt_int_thresh_thresh_0(43) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094861] syncpt_int_thresh_thresh_0(44) = 3
Feb 10 18:42:22 jetson-nano kernel: [  554.094864] syncpt_int_thresh_thresh_0(44) = 3
Feb 10 18:42:22 jetson-nano kernel: [  554.094865] syncpt_int_thresh_thresh_0(47) = 1
Feb 10 18:42:22 jetson-nano kernel: [  554.094869] syncpt_int_thresh_thresh_0(47) = 1
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: Error: waitCsiFrameStart timeout guid 1
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: ************VI/CSI Debug Registers**********
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: VI_CFG_INTERRUPT_MASK_0 = 0x00000000
Feb 10 18:42:22 jetson-nano nvargus-daemon[4898]: VI_CFG_INTERRUPT_STATUS_0 = 0x00000000
Feb 10 18:42:22 jetson-nano kernel: [  554.126335] fence timeout on [ffffffc0907f7b40] after 1500ms
Feb 10 18:42:22 jetson-nano kernel: [  554.126342] name=[nvhost_sync:47], current value=0 waiting value=1

repeated 3 times
Feb 10 18:42:24 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 990)
Feb 10 18:42:24 jetson-nano nvargus-daemon[4898]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 10 18:42:24 jetson-nano nvargus-daemon[4898]: (Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 10 18:42:24 jetson-nano nvargus-daemon[4898]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)

The last InvalidState Error are repeated for about 10 pages, and finally we have this:

Feb 10 18:42:47 jetson-nano nvargus-daemon[4898]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 10 18:42:47 jetson-nano nvargus-daemon[4898]: === gst-launch-1.0[10645]: Connection closed (7FAE7181D0)=== gst-launch-1.0[10645]: WARNING: CameraProvider was not destroyed before client connection terminated.=== gst-launch-1.0[10645]:          The client may have abnormally terminated. Destroying CameraProvider...=== gst-launch-1.0[10645]: CameraProvider destroyed (0x7fa8834fe0)=== gst-launch-1.0[10645]: WARNING: Cleaning up 1 outstanding requests...=== gst-launch-1.0[10645]: WARNING: Cleaning up 1 outstanding streams...SCF: Error InvalidState: 4 buffers still pending during EGLStreamProducer destruction (propagating from src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 305)
Feb 10 18:42:47 jetson-nano nvargus-daemon[4898]: SCF: Error InvalidState:  (propagating from src/services/gl/EGLStreamProducer.cpp, function ~EGLStreamProducer(), line 50)
Feb 10 18:42:47 jetson-nano nvargus-daemon[4898]: === gst-launch-1.0[10645]: WARNING: Cleaning up 1 outstanding stream settings...=== gst-launch-1.0[10645]: WARNING: Cleaning up 1 outstanding sessions...(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: waitForIdleLocked remaining request 104
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: waitForIdleLocked remaining request 103
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: waitForIdleLocked remaining request 102
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: waitForIdleLocked remaining request 101
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 920)
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: (Argus) Error Timeout:  (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 166)
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:497) (in Mutex.cpp, function lock(), line 79)
Feb 10 18:42:52 jetson-nano nvargus-daemon[4898]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Feb 10 18:42:52 jetson-nano kernel: [  583.698860] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x10
Feb 10 18:42:52 jetson-nano kernel: [  583.705541] regmap_util_write_table_8:regmap_util_write_table:-121
Feb 10 18:42:52 jetson-nano kernel: [  583.762695] imx219 6-0010: Error turning off streaming
Feb 10 18:42:57 jetson-nano nvargus-daemon[4898]: waitForIdleLocked remaining request 102
Feb 10 18:42:57 jetson-nano nvargus-daemon[4898]: waitForIdleLocked remaining request 101
Feb 10 18:42:57 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 920)
Feb 10 18:42:57 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout:  (propagating from src/api/Session.cpp, function abortCaptures(), line 886)
Feb 10 18:42:57 jetson-nano nvargus-daemon[4898]: SCF: Error Timeout:  (propagating from src/api/Session.cpp, function shutdown(), line 400)

Looks like vi/csi didn’t receive validate frame data from the bus.
Also need --set-ctrl bypass_mode=0 for v4l2-ctl command

v4l2-ctl --device /dev/video0 --stream-mmap --set-ctrl bypass_mode=0 --stream-count=10

As I was getting tired of trying to get the Waveshare IMX219-77 Camera to work, I have purchased a Raspberry Pi Camera V2 which works out-of-the-box.

Thanks for your support.