Camera driver v4l2-ctl works but not argus_camera

I’m using TX2NX + custom carrier board + JP 4.6.2 + IMX482.

The previous system based on JP 4.5.1 works just fine.
Now I’m upgrading to JP 4.6.2 on the same hardware.

I’m getting image sensor driver works with v4l2-ctl streaming command

root@orbit-tx2nx:~# v4l2-ctl --verbose --set-fmt-video=width=3864,height=2180,pixelformat=RG12 --set-ctrl bypass_mode=0,frame_rate=30000000,exposure=10000,gain=0 --stream-mmap --stream-skip=60 --stream-co0
VIDIOC_QUERYCAP: ok                                                                                                                                                                                          
VIDIOC_S_EXT_CTRLS: ok                                                                                                                                                                                       
VIDIOC_G_FMT: ok                                                                                                                                                                                             
VIDIOC_S_FMT: ok                                                                                                                                                                                             
Format Video Capture:                                                                                                                                                                                        
        Width/Height      : 1932/1090                                                                                                                                                                        
        Pixel Format      : 'RG12' (12-bit Bayer RGRG/GBGB)                                           
        Field             : None                                                                      
        Bytes per Line    : 4096                                                                      
        Size Image        : 4464640                                                                   
        Colorspace        : sRGB                                                                      
        Transfer Function : Default (maps to sRGB)                                                    
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)                                               
        Quantization      : Default (maps to Full Range)                                              
        Flags             :                                                                                                                                                                                  
                VIDIOC_REQBUFS returned 0 (Success)                                                   
                VIDIOC_QUERYBUF returned 0 (Success)                                                                                                                                                         
                VIDIOC_QUERYBUF returned 0 (Success)                                                                                                                                                         
                VIDIOC_QUERYBU[  164.284333] imx482 9-001a: imx482_verify_data_rate: Selected data rate is not supported in this mode, switching to default!                                                 
F returned 0 (Success)                                                                                
                VIDIOC_QUERYBUF returned 0 (Success)                                                                                                                                                         
                VIDIOC_QBUF returned 0 (Success)                                                      
                VIDIOC_QBUF returned 0 (Success)                                                      
                VIDIOC_QBUF returned 0 (Success)                                                      
                VIDIOC_QBUF returned 0 (Success)                                                      
                VIDIOC_STREAMON returned 0 (Success)                                                  
cap dqbuf: 0 seq:      0 bytesused: 4464640 ts: 164.060768 (ts-monotonic, ts-src-eof)                                                                                                                        
cap dqbuf: 1 seq:      1 bytesused: 4464640 ts: 164.094130 delta: 33.362 ms (ts-monotonic, ts-src-eof) 
cap dqbuf: 2 seq:      2 bytesused: 4464640 ts: 164.127493 delta: 33.363 ms (ts-monotonic, ts-src-eof) 
cap dqbuf: 3 seq:      3 bytesused: 4464640 ts: 164.160855 delta: 33.362 ms (ts-monotonic, ts-src-eof)                                                                                                       
cap dqbuf: 0 seq:      4 bytesused: 4464640 ts: 164.194218 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      5 bytesused: 4464640 ts: 164.227580 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      6 bytesused: 4464640 ts: 164.260943 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      7 bytesused: 4464640 ts: 164.294305 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      8 bytesused: 4464640 ts: 164.327668 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      9 bytesused: 4464640 ts: 164.361030 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)                                                                                            
cap dqbuf: 2 seq:     10 bytesused: 4464640 ts: 164.394393 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)   
cap dqbuf: 3 seq:     11 bytesused: 4464640 ts: 164.427755 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)                                                                                            
cap dqbuf: 0 seq:     12 bytesused: 4464640 ts: 164.461117 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:     13 bytesused: 4464640 ts: 164.494480 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     14 bytesused: 4464640 ts: 164.527842 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     15 bytesused: 4464640 ts: 164.561205 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:     16 bytesused: 4464640 ts: 164.594567 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:     17 bytesused: 4464640 ts: 164.627930 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     18 bytesused: 4464640 ts: 164.661292 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     19 bytesused: 4464640 ts: 164.694655 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:     20 bytesused: 4464640 ts: 164.728017 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:     21 bytesused: 4464640 ts: 164.761380 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     22 bytesused: 4464640 ts: 164.794742 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     23 bytesused: 4464640 ts: 164.828105 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:     24 bytesused: 4464640 ts: 164.861467 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:     25 bytesused: 4464640 ts: 164.894830 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     26 bytesused: 4464640 ts: 164.928192 delta: 33.362 ms fps: 29.97 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     27 bytesused: 4464640 ts: 164.961555 delta: 33.363 ms fps: 29.97 (ts-monotonic, ts-src-eof)
...

but argus_camera doesn’t work. Actually, no example in argus-samples or tegra-mmapi-samples works. Same issue for all.
Adding some trace logs following Jetson/l4t/Camera BringUp - eLinux.org, this is log of argus:
argus_camera application log

Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, startRepeat:1693 Failed to submit repeating capture request
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/modules/tasks/StillCapture.cpp, start:170 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/capture/AppModuleCapture.cpp, start:180 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/camera/Main.cpp, onModuleChanged:344 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/samples/utils/Observed.cpp, registerObserver:62 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/camera/Main.cpp, start:282 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/common/App.cpp, run:96 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/renderer/StreamConsumer.cpp, acquire:125 eglQueryStreamKHR failed (error 0x321b)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/renderer/Composer.cpp, threadExecute:370 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/samples/utils/Thread.cpp, threadFunction:132 (propagating)

nvargus-daemon log

=== NVIDIA Libargus Camera Service (0.98.3)=== Listening for connections...=== argus_camera[4517]: Connection established (7F75A241C0)Thread 1 getting next capture
Thread 1 is waiting
Thread 2 getting next capture
Thread 2 is waiting
Thread 3 getting next capture
Thread 3 is waiting
Thread 4 getting next capture
Thread 4 is waiting
Thread 5 getting next capture
Thread 5 is waiting
Thread 6 getting next capture
Thread 6 is waiting
Thread 7 getting next capture
Thread 7 is waiting
Thread 8 getting next capture
Thread 8 is waiting
Thread 9 getting next capture
Thread 9 is waiting
Thread 10 getting next capture
Thread 10 is waiting
Thread 11 getting next capture
Thread 11 is waiting
Thread 12 getting next capture
Thread 12 is waiting
Starting services...
Worker thread IspHw statsComplete start
Worker thread IspHw frameComplete start
Worker thread CaptureScheduler checkFramePending start
Worker thread CaptureScheduler frameStart start
Worker thread V4L2CaptureScheduler checkCaptureComplete start
Worker thread V4L2CaptureScheduler issueCaptures start
Worker thread PS handleRequests start
getInstance: s_instance(0x7f70839de0)
getInstance: s_instance(0x7f70839de0)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7f7083c3e0)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7f70841940)
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
Services are started
NvPclSetHotplugCallback: ++++++++++++++++++++++
---- Imager: Calibration blob file handling supported in this build ----
NvPclHwGetModuleList: OFParserListModules Succeeded
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx482_front_scaleaq
NvPclHwPrintModuleDefinition -- Position: 1
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx482 9-001a
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx482_front_scaleaq position1
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
getHotplugMonitor: Getting hotplug monitor instance
 initializeHotplug++
 hotPlugfunc ++ 
 addWatch: Watch added wd='1'
CheckProcDTExists: INFO: accessing /proc/device-tree/tegra-virtual-camera-platform/modules; No such file or directory
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc: reading from inotify FD, Thread waiting 
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 1 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f70756d60
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f707abd90
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f70762c40
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f704382b0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f7076ffd0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f7076ff40
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16
CheckOverridesPermissions: stat(/Calib/camera_override.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/camera_overrides.isp] 2/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/camera_overrides.isp] 5/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/imx482_front_scaleaq.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/imx482_front_scaleaq.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx482_front_scaleaq.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/imx482_front_scaleaq.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx482_front_scaleaq.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/imx482_front_scaleaq.isp) call failed
---- imager: No override file found. ----
Imager: looking for override file [/mnt/factory/camera/factory.bin] 1/16
Imager: looking for override file [/Calib/factory.bin] 2/16
Imager: looking for override file [/Calib/calibration.bin] 3/16
Imager: looking for override file [(null)] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
Imager: looking for override file [/data/vendor/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/vendor/nvcam/settings/imx482_front_scaleaq.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx482_front_scaleaq.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx482_front_scaleaq.bin] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_sensor)
NvPclCreateDriver: Found a Driver name match (v4l2_sensor)
NvPclConnectDrivers: hImager was NULL, creating new imager
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
OFDPropertyCopyToLong: could not read property [has-eeprom]
OFDPropertyGetString: could not read property [sync_sensor]
OFDPropertyGetString: could not read property [type]
loadSubType: Sensor type missing in DT, 208
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyCopyToLong: could not read property [mode0.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode0.serdes_pix_clk_hz]
OFDPropertyCopyToLongLong: could not read property [mode0.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.clk_settletime]
OFDPropertyCopyToLong: could not read property [mode0.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode0.x_start]
OFDPropertyGetString: could not read property [mode0.y_start]
OFDPropertyGetString: could not read property [mode0.x_end]
OFDPropertyGetString: could not read property [mode0.y_end]
OFDPropertyGetString: could not read property [mode0.h_scaling]
OFDPropertyGetString: could not read property [mode0.v_scaling]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
=== argus_camera[4517]: CameraProvider initialized (0x7f708c5920)sourceRegistry[0] assigned

ispRegistry[0] assigned

Using Source GUID 1
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A
NvPHSSendThroughputHints: sensorId=1, m_usecase=4, m_type=2, m_value=4294967295, m_timeout_ms=1000

LSC: LSC surface is not based on full res!
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
No library found, disabling AC plugin.
Worker thread CaptureDispatcher start
SCF: Error BadParameter:  (propagating from src/services/gl/EGLStreamProducer.cpp, function connect(), line 135)
SCF: Error BadParameter:  (propagating from src/services/gl/EGLStreamProducer.cpp, function create(), line 121)
SCF: Error BadParameter:  (propagating from src/services/gl/EGLStreamProducer.cpp, function ~EGLStreamProducer(), line 48)
SCF: Error BadParameter:  (propagating from src/api/Session.cpp, function createEGLStreamProducer(), line 1344)
(Argus) Error BadParameter:  (propagating from src/api/EGLOutputStreamImpl.cpp, function connectProducer(), line 158)
(Argus) Error BadParameter:  (propagating from src/api/CaptureSessionImpl.cpp, function connectAllRequestStreams(), line 352)
(Argus) Error BadParameter:  (propagating from src/api/CaptureSessionImpl.cpp, function repeatInternal(), line 572)
(Argus) Error BadParameter:  (propagating from src/api/CaptureSessionImpl.cpp, function repeat(), line 545)
=== argus_camera[4517]: Connection closed (7F75A241C0)=== argus_camera[4517]: WARNING: CameraProvider was not destroyed before client connection terminated.=== argus_camera[4517]:          The client may have abnormally terminated. Destroying CameraProvider...=== argus_camera[4517]: CameraProvider destroyed (0x7f708c5920)=== argus_camera[4517]: WARNING: Cleaning up 1 outstanding sessions...NvPHSSendThroughputHints: sensorId=1, m_usecase=4, m_type=2, m_value=4294967295, m_timeout_ms=1000

Worker thread CaptureDispatcher stop
ViCsi capture path not initialized

Worker thread ViCsiHw frameComplete stop
Worker thread ViCsiHw frameStart stop
NvPclPowerOff: +++++++++++
NvPclPowerOff: -----------
=== argus_camera[4517]: NOTE: Destroy all libargus objects before destroying the CameraProvider to avoid these warnings.Stopping services...
Worker thread CaptureScheduler frameStart stop
Worker thread CaptureScheduler checkFramePending stop
Worker thread IspHw statsComplete stop
Worker thread IspHw frameComplete stop
Worker thread V4L2CaptureScheduler issueCaptures stop
Worker thread V4L2CaptureScheduler checkCaptureComplete stop
NvPclClose: ++++++++++++++++++++++
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f704382b0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f7076ffd0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f7076ff40
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f70756d60
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f707abd90
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f70762c40
NvPclStateControllerClose: Module imx482_front_scaleaq closed
NvPclClose: ----------------------
NvPclShutdown: ++++++++++++++++++++++
NvPclModuleListShutdown: Client still conntected, skipping shutdown
NvPclShutdown: ----------------------
Worker thread PS handleRequests stop
unsubscribe: SensorType(gyroscope)
unsubscribe: gyroscope sensor(0x7f7083c3e0)
unsubscribe: SensorType(accelerometer)
unsubscribe: accelerometer sensor(0x7f70841940)
Services are stopped
closeInstance: ms_instance((nil))
NvPclRemoveHotplugCallback: ++++++++++++++++++++++
getHotplugMonitor: Getting hotplug monitor instance
 shutdownHotplug: Requesting thread exit
 hotPlugfunc: Read 16 bytes from inotify FD
 hotPlugfunc: A File was Modified 00008000 NAME :  CREATE : 00000100, DELETE : 00000200 IGNORED : 00008000 CLOSE_WRITE : 00000008
 hotPlugfunc: Exit thread
 hotPlugfunc: close failure error: 'Bad file descriptor' (9)
 hotPlugfunc -- 
 shutdownHotplug -- : shutdown of hotplug is complete 
Removed callback client
NvPclRemoveHotplugCallback: ----------------------
FiberScheduler: shutting down; 0 fibers still in map

FiberScheduler: thread 6 exiting
FiberScheduler: thread 4 exiting
FiberScheduler: thread 8 exiting
FiberScheduler: thread 3 exiting
FiberScheduler: thread 10 exiting
FiberScheduler: thread 12 exiting
FiberScheduler: thread 9 exiting
FiberScheduler: thread 2 exiting
FiberScheduler: thread 7 exiting
FiberScheduler: thread 5 exiting
FiberScheduler: thread 1 exiting
FiberScheduler: thread 11 exiting
FiberScheduler: thread 12 has been joined
FiberScheduler: thread 11 has been joined
FiberScheduler: thread 10 has been joined
FiberScheduler: thread 9 has been joined
FiberScheduler: thread 8 has been joined
FiberScheduler: thread 7 has been joined
FiberScheduler: thread 6 has been joined
FiberScheduler: thread 5 has been joined
FiberScheduler: thread 4 has been joined
FiberScheduler: thread 3 has been joined
FiberScheduler: thread 2 has been joined
FiberScheduler: thread 1 has been joined
=== argus_camera[4517]: Connection cleaned up (7F75A241C0)

camera tracing log

# tracer: nop
#
# entries-in-buffer/entries-written: 106/106   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
  nvargus-daemon-4518  [004] ....   593.027341: tegra_channel_open: vi-output, imx482 9-001a
  nvargus-daemon-4518  [004] ....   593.028668: tegra_channel_set_power: imx482 9-001a : 0x1
  nvargus-daemon-4518  [004] ....   593.028674: camera_common_s_power: status : 0x1
  nvargus-daemon-4518  [004] ....   593.070187: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x1
  nvargus-daemon-4518  [004] ....   593.070191: csi_s_power: enable : 0x1
  nvargus-daemon-4518  [004] ....   593.071733: tegra_channel_close: vi-output, imx482 9-001a
  nvargus-daemon-4518  [004] ....   593.071736: tegra_channel_set_power: imx482 9-001a : 0x0
  nvargus-daemon-4518  [004] ....   593.071740: camera_common_s_power: status : 0x0
  nvargus-daemon-4518  [004] ....   593.071997: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x0
  nvargus-daemon-4518  [004] ....   593.071998: csi_s_power: enable : 0x0
  nvargus-daemon-4518  [004] ....   593.074432: tegra_channel_open: vi-output, imx482 9-001a
  nvargus-daemon-4518  [004] ....   593.074460: tegra_channel_set_power: imx482 9-001a : 0x1
  nvargus-daemon-4518  [004] ....   593.074465: camera_common_s_power: status : 0x1
  nvargus-daemon-4518  [004] ....   593.115919: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x1
  nvargus-daemon-4518  [004] ....   593.115923: csi_s_power: enable : 0x1
  nvargus-daemon-4518  [004] ....   593.116053: tegra_channel_close: vi-output, imx482 9-001a
  nvargus-daemon-4518  [004] ....   593.116056: tegra_channel_set_power: imx482 9-001a : 0x0
  nvargus-daemon-4518  [004] ....   593.116060: camera_common_s_power: status : 0x0
  nvargus-daemon-4518  [004] ....   593.116323: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x0
  nvargus-daemon-4518  [004] ....   593.116324: csi_s_power: enable : 0x0
  nvargus-daemon-4518  [004] ....   593.118966: tegra_channel_open: vi-output, imx482 9-001a
  nvargus-daemon-4518  [004] ....   593.118971: tegra_channel_set_power: imx482 9-001a : 0x1
  nvargus-daemon-4518  [004] ....   593.118976: camera_common_s_power: status : 0x1
  nvargus-daemon-4518  [000] ....   593.160460: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x1
  nvargus-daemon-4518  [000] ....   593.160463: csi_s_power: enable : 0x1
  nvargus-daemon-4518  [000] ....   593.160505: tegra_channel_close: vi-output, imx482 9-001a
  nvargus-daemon-4518  [000] ....   593.160509: tegra_channel_set_power: imx482 9-001a : 0x0
  nvargus-daemon-4518  [000] ....   593.160514: camera_common_s_power: status : 0x0
  nvargus-daemon-4518  [000] ....   593.160778: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x0
  nvargus-daemon-4518  [000] ....   593.160779: csi_s_power: enable : 0x0
  nvargus-daemon-4518  [000] ....   593.160998: tegra_channel_open: vi-output, imx482 9-001a
  nvargus-daemon-4518  [000] ....   593.161003: tegra_channel_set_power: imx482 9-001a : 0x1
  nvargus-daemon-4518  [000] ....   593.161006: camera_common_s_power: status : 0x1
  nvargus-daemon-4518  [000] ....   593.202530: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x1
  nvargus-daemon-4518  [000] ....   593.202533: csi_s_power: enable : 0x1
  nvargus-daemon-4518  [000] ....   593.202760: tegra_channel_close: vi-output, imx482 9-001a
  nvargus-daemon-4518  [000] ....   593.202764: tegra_channel_set_power: imx482 9-001a : 0x0
  nvargus-daemon-4518  [000] ....   593.202771: camera_common_s_power: status : 0x0
  nvargus-daemon-4518  [000] ....   593.203120: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x0
  nvargus-daemon-4518  [000] ....   593.203121: csi_s_power: enable : 0x0
  nvargus-daemon-4518  [000] ....   593.203502: tegra_channel_open: vi-output, imx482 9-001a
  nvargus-daemon-4518  [000] ....   593.203508: tegra_channel_set_power: imx482 9-001a : 0x1
  nvargus-daemon-4518  [000] ....   593.203513: camera_common_s_power: status : 0x1
  nvargus-daemon-4518  [000] ....   593.245121: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x1
  nvargus-daemon-4518  [000] ....   593.245128: csi_s_power: enable : 0x1
  nvargus-daemon-4518  [000] ....   593.245561: tegra_channel_close: vi-output, imx482 9-001a
  nvargus-daemon-4518  [000] ....   593.245571: tegra_channel_set_power: imx482 9-001a : 0x0
  nvargus-daemon-4518  [000] ....   593.245584: camera_common_s_power: status : 0x0
  nvargus-daemon-4518  [000] ....   593.246018: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x0
  nvargus-daemon-4518  [000] ....   593.246023: csi_s_power: enable : 0x0
     kworker/3:0-4345  [003] ....   593.310484: rtos_queue_peek_from_isr_failed: tstamp:18671721885 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   593.310488: rtcpu_start: tstamp:18671722815
     kworker/3:0-4345  [003] ....   593.310490: rtos_queue_send_from_isr_failed: tstamp:18671729404 queue:0x0b4a7698
     kworker/3:0-4345  [003] ....   593.310491: rtos_queue_send_from_isr_failed: tstamp:18671729513 queue:0x0b4ab1a8
     kworker/3:0-4345  [003] ....   593.310491: rtos_queue_send_from_isr_failed: tstamp:18671729619 queue:0x0b4acdd8
     kworker/3:0-4345  [003] ....   593.310492: rtos_queue_send_from_isr_failed: tstamp:18671729727 queue:0x0b4af718
     kworker/3:0-4345  [003] ....   593.310493: rtos_queue_send_from_isr_failed: tstamp:18671729832 queue:0x0b4b04d8
     kworker/3:0-4345  [003] ....   593.310493: rtos_queue_send_from_isr_failed: tstamp:18671729936 queue:0x0b4b1298
     kworker/3:0-4345  [003] ....   593.310494: rtos_queue_send_from_isr_failed: tstamp:18671730039 queue:0x0b4b2058
     kworker/3:0-4345  [003] ....   593.310495: rtos_queue_send_failed: tstamp:18671730493 queue:0x0b4a7698
     kworker/3:0-4345  [003] ....   593.482477: rtos_queue_peek_from_isr_failed: tstamp:18676722208 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   593.650484: rtos_queue_peek_from_isr_failed: tstamp:18681722205 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   593.650488: rtos_queue_send_from_isr_failed: tstamp:18682526585 queue:0x0b4a7698
     kworker/3:0-4345  [003] ....   593.650489: rtos_queue_send_from_isr_failed: tstamp:18682526695 queue:0x0b4ab1a8
     kworker/3:0-4345  [003] ....   593.650489: rtos_queue_send_from_isr_failed: tstamp:18682526803 queue:0x0b4acdd8
     kworker/3:0-4345  [003] ....   593.650490: rtos_queue_send_from_isr_failed: tstamp:18682526912 queue:0x0b4af718
     kworker/3:0-4345  [003] ....   593.650491: rtos_queue_send_from_isr_failed: tstamp:18682527017 queue:0x0b4b04d8
     kworker/3:0-4345  [003] ....   593.650491: rtos_queue_send_from_isr_failed: tstamp:18682527123 queue:0x0b4b1298
     kworker/3:0-4345  [003] ....   593.650492: rtos_queue_send_from_isr_failed: tstamp:18682527228 queue:0x0b4b2058
     kworker/3:0-4345  [003] ....   593.650493: rtos_queue_send_failed: tstamp:18682527669 queue:0x0b4a7698
     kworker/3:0-4345  [003] ....   593.762482: rtos_queue_peek_from_isr_failed: tstamp:18686722196 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   593.930545: rtos_queue_peek_from_isr_failed: tstamp:18691722186 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   594.098491: rtos_queue_peek_from_isr_failed: tstamp:18696722176 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   594.266487: rtos_queue_peek_from_isr_failed: tstamp:18701722169 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   594.434531: rtos_queue_peek_from_isr_failed: tstamp:18706722163 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   594.602498: rtos_queue_peek_from_isr_failed: tstamp:18711722266 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   594.770590: rtos_queue_peek_from_isr_failed: tstamp:18716722152 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   594.882547: rtos_queue_peek_from_isr_failed: tstamp:18721722145 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   595.050523: rtos_queue_peek_from_isr_failed: tstamp:18726722135 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   595.218516: rtos_queue_peek_from_isr_failed: tstamp:18731722129 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   595.386530: rtos_queue_peek_from_isr_failed: tstamp:18736722122 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   595.554584: rtos_queue_peek_from_isr_failed: tstamp:18741722225 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   595.722573: rtos_queue_peek_from_isr_failed: tstamp:18746722193 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   595.890557: rtos_queue_peek_from_isr_failed: tstamp:18751722213 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   596.002662: rtos_queue_peek_from_isr_failed: tstamp:18756722204 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   596.170548: rtos_queue_peek_from_isr_failed: tstamp:18761722092 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   596.338540: rtos_queue_peek_from_isr_failed: tstamp:18766722081 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   596.506558: rtos_queue_peek_from_isr_failed: tstamp:18771722075 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   596.674596: rtos_queue_peek_from_isr_failed: tstamp:18776722179 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   596.842580: rtos_queue_peek_from_isr_failed: tstamp:18781722060 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.010595: rtos_queue_peek_from_isr_failed: tstamp:18786722166 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.122586: rtos_queue_peek_from_isr_failed: tstamp:18791722156 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.290637: rtos_queue_peek_from_isr_failed: tstamp:18796722151 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.458622: rtos_queue_peek_from_isr_failed: tstamp:18801722145 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.626611: rtos_queue_peek_from_isr_failed: tstamp:18806722138 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.794612: rtos_queue_peek_from_isr_failed: tstamp:18811722128 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   597.962624: rtos_queue_peek_from_isr_failed: tstamp:18816722013 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   598.130605: rtos_queue_peek_from_isr_failed: tstamp:18821722090 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   598.242619: rtos_queue_peek_from_isr_failed: tstamp:18826722085 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   598.410608: rtos_queue_peek_from_isr_failed: tstamp:18831722078 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   598.578606: rtos_queue_peek_from_isr_failed: tstamp:18836722071 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   598.746599: rtos_queue_peek_from_isr_failed: tstamp:18841721977 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   598.914593: rtos_queue_peek_from_isr_failed: tstamp:18846721968 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   599.082604: rtos_queue_peek_from_isr_failed: tstamp:18851721962 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   599.250595: rtos_queue_peek_from_isr_failed: tstamp:18856721956 queue:0x0b4b4940
     kworker/3:0-4345  [003] ....   599.362619: rtos_queue_peek_from_isr_failed: tstamp:18860785273 queue:0x0b4b4940

Can you please point me out what is wrong? Thank you.

Have you try gstreamer?
Modify the width and height to try.

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920,height=1080,format=NV12' ! nvvidconv ! fpsdisplaysink video-sink=fakesink --verbose

Hi Shane,

Every argus clients are not working. They shows the same error in frame consumer.

root:~# gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1932,height=1090,format=NV12' ! fakesink                                                                              
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function initialize(), line 89)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function create(), line 44)
Error generated. gstnvarguscamerasrc.cpp, threadInitialize:275 Failed to create FrameConsumer




Caught SIGSEGV
Got EOS from element "pipeline0".
Execution ended after 0:00:10.272575177
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
#0  __pthread_clockjoin_ex (threadid=548433580512, thread_return=0x0, 
#1  0x0000007fb6bbbc10 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x0000007fb6b985f8 in g_thread_join () from /usr/lib/libglib-2.0.so.0
#3  0x0000007fb650773c in ?? ()
#4  0x0000007fb62333d4 in ?? () from /usr/lib/libgstbase-1.0.so.0
#5  0x0000007fb623a710 in ?? () from /usr/lib/libgstbase-1.0.so.0
#6  0x0000007fb6d44d94 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#7  0x0000007fb6d456ec in gst_pad_set_active ()
#8  0x0000007fb6d20960 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#9  0x0000007fb6d348a0 in gst_iterator_fold ()
#10 0x0000007fb6d214d0 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#11 0x0000007fb6d23650 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#12 0x0000007fb6d23900 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#13 0x0000007fb6238458 in ?? () from /usr/lib/libgstbase-1.0.so.0
#14 0x0000007fb6d260d4 in gst_element_change_state ()
#15 0x0000007fb6d26820 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#16 0x0000007fb6d0088c in ?? () from /usr/lib/libgstreamer-1.0.so.0
#17 0x0000007fb6d260d4 in gst_element_change_state ()
#18 0x0000007fb6d26820 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#19 0x00000055580ad9d4 in ?? ()
#20 0x0000007fb69a7110 in __libc_start_main (main=0x55580ad4b0, argc=6, 
#21 0x00000055580adf74 in ?? ()
Spinning.  Please run 'gdb gst-launch-1.0 5005' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
root:~# argus_oneshot 
Executing Argus Sample: argus_oneshot
Argus Version: 0.98.3 (multi-process)
Capturing from device 0 using sensor mode 0 (1932x1090)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function initialize(), line 89)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function create(), line 44)
Failed to initialize Consumer

Hi Shane,
Does the error in nvargus-daemon log say anything? Thank you.

Could be your system didn’t initial the GPU driver cause the EGL failed. Does your system connect HDMI monitor?

No, our carrier board doesn’t have monitor output, no HDMI/DP.

That could be the root cause.
Did you export DISPLAY=:0 before run the argus APP?

Yes, I did.

root@Orbit-3900:~# export DISPLAY=:0
root@Orbit-3900:~# argus_oneshot 
Executing Argus Sample: argus_oneshot
Argus Version: 0.98.3 (multi-process)
Capturing from device 0 using sensor mode 0 (1932x1090)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function initialize(), line 89)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function create(), line 44)
Failed to initialize Consumer
root@Orbit-3900:~# argus_camera 
Executing Argus Sample Application (argus_camera)
Argus Version: 0.98.3 (multi-process)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, startRepeat:1693 Failed to submit repeating capture request
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/modules/tasks/StillCapture.cpp, start:170 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/capture/AppModuleCapture.cpp, start:180 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/camera/Main.cpp, onModuleChanged:344 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/samples/utils/Observed.cpp, registerObserver:62 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/camera/Main.cpp, start:282 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/ui/common/App.cpp, run:96 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/renderer/StreamConsumer.cpp, acquire:125 eglQueryStreamKHR failed (error 0x321b)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/apps/camera/renderer/Composer.cpp, threadExecute:370 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/samples/utils/Thread.cpp, threadFunction:132 (propagating)
Error generated. /usr/src/debug/argus-samples/32.7.2-20220417024839-r0/tegra-mmapi/usr/src/jetson_multimedia_api/argus/samples/utils/gtk/Window.cpp, logHandler:243 Gtk: CRITICAL, gtk_container_remove: assertion 'GTK_IS_WIDGET (widget)' failed
Bus error
root@Orbit-3900:~# 

Not sure it is relevant, but I have a virtual display + VNC installed, glmark2 works fine.

Please run below command by ssh connected to clarify it.

export DISPLAY=:0
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920,height=1080,format=NV12' ! nvvidconv ! fpsdisplaysink video-sink=fakesink --verbose

Pretty same error.

root@Orbit-3900:~# export DISPLAY=:0
root@Orbit-3900:~# gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1932,height=1090,format=NV12' ! nvvidconv ! fpsdisplaysink video-sink=fakesink --verbose
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:src: caps = video/x-raw(memory:NVMM, meta:GstVideoOverlayComposition), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw(memory:NVMM, meta:GstVideoOverlayComposition), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:video_sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function initialize(), line 89)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function create(), line 44)
Error generated. gstnvarguscamerasrc.cpp, threadInitialize:275 Failed to create FrameConsumer
Caught SIGSEGV
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Got EOS from element "pipeline0".
Execution ended after 0:00:08.272100128
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
#0  __pthread_clockjoin_ex (threadid=547339891168, thread_return=0x0, 
#1  0x0000007f79e18c10 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x0000007f79df55f8 in g_thread_join () from /usr/lib/libglib-2.0.so.0
#3  0x0000007f79a4873c in ?? ()
#4  0x0000007f797743d4 in ?? () from /usr/lib/libgstbase-1.0.so.0
#5  0x0000007f7977b710 in ?? () from /usr/lib/libgstbase-1.0.so.0
#6  0x0000007f79fa1d94 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#7  0x0000007f79fa26ec in gst_pad_set_active ()
#8  0x0000007f79f7d960 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#9  0x0000007f79f918a0 in gst_iterator_fold ()
#10 0x0000007f79f7e4d0 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#11 0x0000007f79f80650 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#12 0x0000007f79f80900 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#13 0x0000007f79779458 in ?? () from /usr/lib/libgstbase-1.0.so.0
#14 0x0000007f79f830d4 in gst_element_change_state ()
#15 0x0000007f79f83820 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#16 0x0000007f79f5d88c in ?? () from /usr/lib/libgstreamer-1.0.so.0
#17 0x0000007f79f830d4 in gst_element_change_state ()
#18 0x0000007f79f83820 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#19 0x0000005580fd39d4 in ?? ()
#20 0x0000007f79c04110 in __libc_start_main (main=0x5580fd34b0, argc=10, 
#21 0x0000005580fd3f74 in ?? ()
Spinning.  Please run 'gdb gst-launch-1.0 5453' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
^C
root@Orbit-3900:~# 

Maybe reference to below link to create a user and set as auto log in

You cannot run X11 command as root.

But it looks like the DISPLAY & X11 doesn’t related. Below log shows that without DISPLAY exported, the argus stack still works?

root@linux: # gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1932,height=1090,format=NV12' ! nvvidconv ! fpsdisplaysink video-sink=fakesink --verbose
No protocol specified                                                                                                                                                                                        
nvbuf_utils: Could not get EGL display connection                                                                                                                                                            
No protocol specified                                                                                                                                                                                        
nvbuf_utils: Could not get EGL display connection                                                                                                                                                            
Setting pipeline to PAUSED ...                                                                                                                                                                               
Pipeline is live and does not need PREROLL ...                                                                                                                                                               
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true                                                                                                                  
Setting pipeline to PLAYING ...                                                                                                                                                                              
New clock: GstSystemClock                                                                                                                                                                                    
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction
)30/1                                                                                                                                                                                                        
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:src: caps = video/x-raw(memory:NVMM, meta:GstVideoOverlayComposition), width=(int)1932, height=(int)1
090, format=(string)NV12, framerate=(fraction)30/1                                                                                                                                                           
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw(memory:NVMM, meta:GstVideoOverlayComposition), width=(int)1932, height=(int)1090, format=(stri
ng)NV12, framerate=(fraction)30/1                                                                                                                                                                            
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:video_sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, 
framerate=(fraction)30/1                                                                                                                                                                                     
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1932, height=(int)1090, format=(string)NV12, framerate=(fraction)30/1
GST_ARGUS: Creating output stream                                                                                                                                                                            
No protocol specified                                                                                                                                                                                        
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1932 x 1090 FR = 90.000001 fps Duration = 11111111 ; Analog Gain range min 1.000000, max 3981.070801; Exposure Range min 27000, max 660000000;
                                                   
GST_ARGUS: 3864 x 2180 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 3981.070801; Exposure Range min 27000, max 660000000;
                                                   
GST_ARGUS: 1920 x 1080 FR = 71.999999 fps Duration = 13888889 ; Analog Gain range min 1.000000, max 3981.070801; Exposure Range min 27000, max 660000000;
                                                   
GST_ARGUS: Running with following settings:
   Camera index = 0 
   Camera mode  = 0       
   Output Stream W = 1932 H = 1090 
   seconds to Run    = 0 
   Frame Rate = 90.000001 
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 17, dropped: 0, current: 32.23, average: 32.23
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 17, dropped: 0, current: 32.23, average: 32.23
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 32, dropped: 0, current: 29.88, average: 31.08
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 32, dropped: 0, current: 29.88, average: 31.08
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 47, dropped: 0, current: 29.92, average: 30.7
root@linux:/# argus_oneshot 
No protocol specified
nvbuf_utils: Could not get EGL display connection
Executing Argus Sample: argus_oneshot
Argus Version: 0.98.3 (multi-process)
Capturing from device 0 using sensor mode 0 (1932x1090)
No protocol specified
Wrote file: argus_oneShot.jpg

Some argus usecases need to use EGL display. EGL display requires X11. That is why running as root would have chance to break it.

I see. But in my cases, argus_oneshot & gst nvarguscamerasrc both don’t need display? It just need GPU ID.

PS:
On working system, even I’m completely disable X11 (booting into command line multi-user.target, headless, same kernel code + config), the argus_oneshot works fine. Does it mean argus_oneshot isn’t related to X11 or display stuffs?

Hi,
This is actually not an issue.
This happens after I copy rootfs from slot A to slot B. Using rsync -a command.
It looks like the command is missing copying hard link, or some reasons, then the argus doesn’t work.
If I deploy the rootfs by EXT4 image, it works fine.

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