We have an application which is reading imx219 camera frames via MIPI CSI-2 on the Jetson Nano module. The application is inside a Docker container and uses OpenCV with the GStreamer plugin nvarguscamerasrc.
The Argus daemon (nvargus-daemon) crashes when the Docker container is stopped.
Stdout:
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266) (Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 340) (Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357) (Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 368) (Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145) (Argus) Error EndOfFile: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87) WARNING Argus: 5 client objects still exist during shutdown: 546132015368 (0x7f80000fc8) 547555452912 (0x7f80003500) 547555454656 (0x7f800026c0) 547555454880 (0x7f800016f0) 547555603712 (0x7f80001790)
Kernel log:
[11885.088675] host1x 50000000.host1x: cdma_handle_timeout: timeout: 9 (54680000.isp_0) client 10, HW thresh 843, done 844
[11885.099470] host1x 50000000.host1x: cdma_handle_timeout: timeout: 11 (54680000.isp_1) client 10, HW thresh 843, done 844
[11885.110338] host1x 50000000.host1x: cdma_handle_timeout: timeout: 13 (54680000.isp_3) client 10, HW thresh 843, done 844
[11885.121205] host1x 50000000.host1x: cdma_handle_timeout: timeout: 12 (54680000.isp_2) client 10, HW thresh 2842, done 2842
[11885.132247] ---- mlocks ----
[11885.135138]
[11885.136625] ---- syncpts ----
[11885.139610] id 9 (54680000.isp_0) min 843 max 844 refs 2 (previous client : )
[11885.146746] id 11 (54680000.isp_1) min 843 max 844 refs 2 (previous client : )
[11885.153969] id 12 (54680000.isp_2) min 2842 max 2843 refs 3 (previous client : )
[11885.161361] id 13 (54680000.isp_3) min 843 max 844 refs 2 (previous client : )
[11885.168586] id 20 (54080000.vi_1) min 843 max 844 refs 2 (previous client : 54080000.vi_1)
[11885.176849] id 21 (54080000.vi_2) min 1690 max 1691 refs 3 (previous client : 54080000.vi_2)
[11885.185287] id 24 (54080000.vi_4) min 843 max 844 refs 2 (previous client : 54080000.vi_4)
[11885.193638]
[11885.195124] ---- channels ----
[11885.198185]
[11885.198185] channel 2 - 54680000.isp
[11885.198185]
[11885.204716] 2-54680000.isp (4): [11885.207763] active class 01, offset 0050, val 00000009
[11885.212906] DMAPUT 00000f48, DMAGET 00000f48, DMACTL 00000000
[11885.218650] CBREAD 00000009, CBSTAT 00010050
[11885.222924]
[11885.222924] ffffffc036537c00: JOB, syncpt_id=9, syncpt_val=844, first_get=00000f08, timeout=10000, num_slots=3, num_handles=1
[11885.235701] GATHER at ffe08000+0150, 8 words
[11885.240321] 20000001 [11885.242420] 00000409
20000001 [11885.245483] 0000050b
20000001 [11885.248541] 0000060d
200c0001 [11885.251613] 00000005
[11885.253887]
[11885.255375] GATHER at ffe08000+0170, 2 words
[11885.259997] 20000001 [11885.262096] 0000000c
[11885.264364]
[11885.265862]
[11885.267351]
[11885.267351] channel 3 - 54080000.vi
[11885.267351]
[11885.273797] 3-54080000.vi (3): [11885.276763] active class 01, offset 0050, val 00000014
[11885.281901] DMAPUT 00000dc8, DMAGET 00000dc8, DMACTL 00000000
[11885.287648] CBREAD 00000014, CBSTAT 00010050
[11885.291923]
[11885.291923] ffffffc036534000: JOB, syncpt_id=20, syncpt_val=844, first_get=00000d80, timeout=10000, num_slots=5, num_handles=1
[11885.304782] GATHER at ffd98000+2804, 3 words
[11885.309404] 304e0005 [11885.311496] 00000b1a
0000000c [11885.314561]
[11885.316050] GATHER at ffd98000+2810, 10 words
[11885.320753] 164b0003 [11885.322845] 00000000
00000000 [11885.325909] 00000009
20000001 [11885.328976] 00001d14
20000001 [11885.332036] 00001518
21410001 [11885.335105] 00000001
[11885.337384]
[11885.338873] GATHER at ffd98000+2838, 2 words
[11885.343493] 20000001 [11885.345596] 00000015
[11885.347863]
[11885.349360]
[11885.350847]
[11885.350847] ---- host general irq ----
[11885.350847]
[11885.357553] sync_hintmask_ext = 0xc0000000
[11885.361650] sync_hintmask = 0x80000000
[11885.365401] sync_intc0mask = 0x00000001
[11885.369236] sync_intmask = 0x00000011
[11885.372901]
[11885.372901] ---- host syncpt irq mask ----
[11885.372901]
[11885.379955] syncpt_thresh_int_mask(0) = 0x05440001
[11885.384751] syncpt_thresh_int_mask(1) = 0x00010500
[11885.389540] syncpt_thresh_int_mask(2) = 0x00000000
[11885.394331] syncpt_thresh_int_mask(3) = 0x00000000
[11885.399121] syncpt_thresh_int_mask(4) = 0x00000000
[11885.403913] syncpt_thresh_int_mask(5) = 0x00000000
[11885.408707] syncpt_thresh_int_mask(6) = 0x00000000
[11885.413501] syncpt_thresh_int_mask(7) = 0x00000000
[11885.418289] syncpt_thresh_int_mask(8) = 0x00000000
[11885.423080] syncpt_thresh_int_mask(9) = 0x00000000
[11885.427873] syncpt_thresh_int_mask(10) = 0x00000000
[11885.432756] syncpt_thresh_int_mask(11) = 0x00000000
[11885.437631]
[11885.437631] ---- host syncpt irq status ----
[11885.437631]
[11885.444855] syncpt_thresh_cpu0_int_status(0) = 0x00000000
[11885.450252] syncpt_thresh_cpu0_int_status(1) = 0x00000000
[11885.455651] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[11885.461052] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[11885.466452] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[11885.471848] syncpt_thresh_cpu0_int_status(5) = 0x00000000
[11885.477248]
[11885.477248] ---- host syncpt thresh ----
[11885.477248]
[11885.484130] syncpt_int_thresh_thresh_0(0) = 1
[11885.488494] syncpt_int_thresh_thresh_0(9) = 844
[11885.493024] syncpt_int_thresh_thresh_0(11) = 844
[11885.497642] syncpt_int_thresh_thresh_0(12) = 2843
[11885.502348] syncpt_int_thresh_thresh_0(13) = 844
[11885.506971] syncpt_int_thresh_thresh_0(20) = 844
[11885.511587] syncpt_int_thresh_thresh_0(21) = 1691
[11885.516294] syncpt_int_thresh_thresh_0(24) = 844
[11885.521018] isp 54680000.isp: SYNCPT_ID 9
[11885.525553] isp 54680000.isp: SYNCPT_VAL 844
[11885.530257] isp 54680000.isp: FIRST_GET 0xf08
[11885.535136] isp 54680000.isp: TIMEOUT 10000
[11885.540013] isp 54680000.isp: NUM_SLOTS 3
[11885.544546] isp 54680000.isp: NUM_HANDLES 1
[11885.549084] isp 54680000.isp: SYNCPT_ID 12
[11885.553746] isp 54680000.isp: SYNCPT_VAL 2843
[11885.558536] isp 54680000.isp: FIRST_GET 0xf20
[11885.563414] isp 54680000.isp: TIMEOUT 10000
[11885.568293] isp 54680000.isp: NUM_SLOTS 5
[11885.572825] isp 54680000.isp: NUM_HANDLES 1
[11885.577390] host1x 50000000.host1x: cdma_handle_timeout: timeout: 20 (54080000.vi_1) client 22, HW thresh 843, done 844
[11885.588169] host1x 50000000.host1x: cdma_handle_timeout: timeout: 24 (54080000.vi_4) client 22, HW thresh 843, done 844
[11885.598946] host1x 50000000.host1x: cdma_handle_timeout: timeout: 21 (54080000.vi_2) client 22, HW thresh 1690, done 1690
[11885.609901] ---- mlocks ----
[11885.612789]
[11885.614275] ---- syncpts ----
[11885.617263] id 20 (54080000.vi_1) min 843 max 844 refs 2 (previous client : 54080000.vi_1)
[11885.625523] id 21 (54080000.vi_2) min 1690 max 1691 refs 3 (previous client : 54080000.vi_2)
[11885.633959] id 24 (54080000.vi_4) min 843 max 844 refs 2 (previous client : 54080000.vi_4)
[11885.642311]
[11885.643798] ---- channels ----
[11885.646858]
[11885.646858] channel 3 - 54080000.vi
[11885.646858]
[11885.653303] 3-54080000.vi (3): [11885.656262] active class 01, offset 0050, val 00000014
[11885.661405] DMAPUT 00000dc8, DMAGET 00000dc8, DMACTL 00000000
[11885.667150] CBREAD 00000014, CBSTAT 00010050
[11885.671423]
[11885.671423] ffffffc036534000: JOB, syncpt_id=20, syncpt_val=844, first_get=00000d80, timeout=10000, num_slots=5, num_handles=1
[11885.684280] GATHER at ffd98000+2804, 3 words
[11885.688900] 304e0005 [11885.690991] 00000b1a
0000000c [11885.694057]
[11885.695547] GATHER at ffd98000+2810, 10 words
[11885.700251] 164b0003 [11885.702349] 00000000
00000000 [11885.705413] 00000009
20000001 [11885.708471] 00001d14
20000001 [11885.711540] 00001518
21410001 [11885.714609] 00000001
[11885.716883]
[11885.718369] GATHER at ffd98000+2838, 2 words
[11885.722987] 20000001 [11885.725087] 00000015
[11885.727354]
[11885.728850]
[11885.730337]
[11885.730337] ---- host general irq ----
[11885.730337]
[11885.737041] sync_hintmask_ext = 0xc0000000
[11885.741138] sync_hintmask = 0x80000000
[11885.744889] sync_intc0mask = 0x00000001
[11885.748725] sync_intmask = 0x00000011
[11885.752377]
[11885.752377] ---- host syncpt irq mask ----
[11885.752377]
[11885.759428] syncpt_thresh_int_mask(0) = 0x00000001
[11885.764221] syncpt_thresh_int_mask(1) = 0x00010500
[11885.769013] syncpt_thresh_int_mask(2) = 0x00000000
[11885.773802] syncpt_thresh_int_mask(3) = 0x00000000
[11885.778592] syncpt_thresh_int_mask(4) = 0x00000000
[11885.783387] syncpt_thresh_int_mask(5) = 0x00000000
[11885.788179] syncpt_thresh_int_mask(6) = 0x00000000
[11885.792968] syncpt_thresh_int_mask(7) = 0x00000000
[11885.797759] syncpt_thresh_int_mask(8) = 0x00000000
[11885.802548] syncpt_thresh_int_mask(9) = 0x00000000
[11885.807340] syncpt_thresh_int_mask(10) = 0x00000000
[11885.812217] syncpt_thresh_int_mask(11) = 0x00000000
[11885.817096]
[11885.817096] ---- host syncpt irq status ----
[11885.817096]
[11885.824329] syncpt_thresh_cpu0_int_status(0) = 0x00000000
[11885.829738] syncpt_thresh_cpu0_int_status(1) = 0x00000000
[11885.835135] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[11885.840536] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[11885.845932] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[11885.851334] syncpt_thresh_cpu0_int_status(5) = 0x00000000
[11885.856731]
[11885.856731] ---- host syncpt thresh ----
[11885.856731]
[11885.863611] syncpt_int_thresh_thresh_0(0) = 1
[11885.867980] syncpt_int_thresh_thresh_0(20) = 844
[11885.872603] syncpt_int_thresh_thresh_0(21) = 1691
[11885.877311] syncpt_int_thresh_thresh_0(24) = 844
[11885.982836] vi 54080000.vi: SYNCPT_ID 20
[11885.987292] vi 54080000.vi: SYNCPT_VAL 844
[11885.991829] vi 54080000.vi: FIRST_GET 0xd80
[11885.996535] vi 54080000.vi: TIMEOUT 10000
[11886.001242] vi 54080000.vi: NUM_SLOTS 5
[11886.005601] vi 54080000.vi: NUM_HANDLES 1
[11886.009963] vi 54080000.vi: SYNCPT_ID 21
[11886.014439] vi 54080000.vi: SYNCPT_VAL 1691
[11886.019063] vi 54080000.vi: FIRST_GET 0xda8
[11886.023767] vi 54080000.vi: TIMEOUT 10000
[11886.028474] vi 54080000.vi: NUM_SLOTS 4
[11886.032832] vi 54080000.vi: NUM_HANDLES 1
GStreamer pipeline:
nvarguscamerasrc ! video/x-raw(memory:NVMM),width=(int)1280,height=(int)720,format=(string)NV12,framerate=(fraction)30/1 ! nvvidconv ! video/x-raw, width=(int)1280, height=(int)720,format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink
The host and docker container are using L4T r32.4.3.
The Docker container is started with:
–runtime nvidia -v /tmp/argus_socket:/tmp/argus_socket
Any advice on how to solve the issue?