Only the first image can be acquired for each startup

When I get the image with argus, I get an incomplete image.


When I run the argus program to get an image again, I can’t get the image anymore.
The error message is as follows(log enabled)

Thread 1 getting next capture
Thread 1 is waiting
Thread 2 getting next capture
Thread 2 is waiting
Thread 4 getting next capture
Thread 3 getting next capture
Thread 4 is waiting
Thread 5 getting next capture
Thread 3 is waiting
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(0x55a6ad54f0)
getInstance: s_instance(0x55a6ad54f0)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x55a6ad7a10)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x55a6adcf70)
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
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
NvPclHwMatchPartNum: Found calibration Part#: A6V26:"A6V26"
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx307_bottom_A6V26
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_lens
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: 
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].DevName: imx307 2-001a
NvPclHwMatchPartNum: Found calibration Part#: A6V26:"A6V26"
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx307_top_A6V26
NvPclHwPrintModuleDefinition -- Position: 1
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_lens
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: 
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].DevName: imx307 31-001b
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx307_bottom_A6V26 position0
NvPclModuleListInitialize: NvPclModule list[1]: imx307_top_A6V26 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/module0/drivernode1; No such file or directory
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree: /proc/device-tree/tegra-virtual-camera-platform/modules/module0/drivernode1
CheckProcDTExists: INFO: accessing /proc/device-tree/tegra-virtual-camera-platform/modules/module1/drivernode0; No such file or directory
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree: /proc/device-tree/tegra-virtual-camera-platform/modules/module1/drivernode0
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc: reading from inotify FD, Thread waiting 
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 0 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a69b56b0
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6a0a100
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a69bb6c0
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a651d080
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6b36020
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6b33ab0
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/imx307_bottom_A6V26.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/imx307_bottom_A6V26.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx307_bottom_A6V26.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/imx307_bottom_A6V26.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx307_bottom_A6V26.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/imx307_bottom_A6V26.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/imx307_bottom_A6V26.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx307_bottom_A6V26.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx307_bottom_A6V26.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_lens)
NvPclCreateDriver: Found a Driver name match (v4l2_lens)
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_lens ++++++++++++++++++
initialize WARNING: No focuser object, allocating for lens
OFDPropertyCopyToLong: could not read property [maxslewrate]
loadLensMetadata: maxslewrate not set in driver
NvPclInitializeDrivers: NvOdmLensStub ------------------
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyCopyToLong: could not read property [has-eeprom]
OFDPropertyGetString: could not read property [type]
loadSubType: Sensor type missing in DT, 206
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.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: ----------------------
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 1 match at index[1]
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6ef7d70
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6edfde0
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6b36ba0
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6b354f0
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6b3b890
NvPclHwInitializeModule: allocate overrides pathname @ 0x55a6b3b920
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/imx307_top_A6V26.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/imx307_top_A6V26.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx307_top_A6V26.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/imx307_top_A6V26.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx307_top_A6V26.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/imx307_top_A6V26.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/imx307_top_A6V26.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx307_top_A6V26.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx307_top_A6V26.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_lens)
NvPclCreateDriver: Found a Driver name match (v4l2_lens)
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_lens ++++++++++++++++++
initialize WARNING: No focuser object, allocating for lens
OFDPropertyCopyToLong: could not read property [maxslewrate]
loadLensMetadata: maxslewrate not set in driver
NvPclInitializeDrivers: NvOdmLensStub ------------------
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
(NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
(NvCamV4l2) Error ModuleNotPresent:  (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
(NvOdmDevice) Error ModuleNotPresent:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 106)
NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
NvPclStartPlatformDrivers: Failed to start module drivers
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x55a6b354f0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x55a6b3b890
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x55a6b3b920
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x55a6ef7d70
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x55a6edfde0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x55a6b36ba0
NvPclStateControllerOpen: Failed ImagerGUID 1. (error 0xA000E)
NvPclStateControllerClose: Module imx307_top_A6V26 closed
NvPclOpen: PCL Open Failed. Error: 0xf
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclOpen: ----------------------
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 582)
SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 437)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 295)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 458)
Acquiring SCF Camera device source via index 1 has failed. 

Argus Version: 0.97.3 (single-process)
Camera count: 1
sourceRegistry[0] assigned

ispRegistry[0] assigned

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

SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function sendCameraPowerHint(), line 56)
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
No output buffers for 2
No output buffers for 1
InstructionList:
  + GraphSettings
      | SensorMode: 1920x1080 BayerS16RGGB 30.0fps
      | output 0: 1920x1080 BL U8_V8_ER 420SP
      | inputClipRect 0: (0.00,0.00, 1.00,1.00)
      | sharedIsp

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 6
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApply
      +  4: AcMergeStage
          | IspIn: [1920, 1080]
          | IspOut0: [1920, 1080]
          | IspOut1: [0, 0]
          | IspOut2: [640, 360]
      +  5: TempBufferAcquireStage
          | Buffer Index: 3
          | BufferRequirements: 1920x1080 Pitch BayerS16RGGB
      +  6: TempBufferAcquireStage
          | Buffer Index: 4
          | BufferRequirements: 1920x1 Pitch NonColor8
      +  7: SensorCaptureStage
          | Master: 1
          | Source GUID: 0
          | Output Buffer: 3
          | SensorMetadata Buffer: 4
      +  8: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x360 Pitch U8_V8_ER 420SP
      +  9: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 524288x1 Pitch NonColor8
      + 10: MemoryToISPCaptureStage
          | Master: 1
          | Input Buffer: 3
          | Output A Buffer: 0
          | Output Thumb Buffer: 1
          | Output IspStats Buffer: 2
          | Source GUID: 0
      + 11: BufferReturnStage
          | Output A Buffer: 3
      + 12: StatsUpdateStage
          | Output Meta Buffer: 4
          | Output IspStats Buffer: 2
      + 13: BufferReturnStage
          | Output A Buffer: 4
      + 14: BufferReturnStage
          | Output A Buffer: 2
      + 15: AcPluginStage
          | operation: opAnalyze
      + 16: AfAnalysisStage
      + 17: MonitorStage
      + 18: ExifStage
      + 19: MakerNoteStage
      + 20: BufferReturnStage
          | Output A Buffer: 0
      + 21: MetadataReturnStage
      + 22: PerfStatsStage

Thread 1 is working on CC 101 session 0 globalID 101 step 0
Created fiber 0x7f4c000b20 for CC 101 globalID 101 session 0
CC 101 session 0 completed step 0 in fiber 0x7f4c000b20
cc 101(1) session 0 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 0 completed step 1 in fiber 0x7f4c000b20
NV AE and AfApply algorithms are active.
CC 101 session 0 completed step 2 in fiber 0x7f4c000b20
CC 101 session 0 completed step 3 in fiber 0x7f4c000b20
CC 101 session 0 completed step 4 in fiber 0x7f4c000b20
CC 101 session 0 completed step 5 in fiber 0x7f4c000b20
CC 101 session 0 completed step 6 in fiber 0x7f4c000b20
CC 101 session 0 processing step 7 in fiber 0x7f4c000b20
FiberScheduler: cc 101, session 0, fiber 0x7f4c000b20 in progress...

Thread 1 getting next capture
Thread 2 is waiting
Thread 1 is waiting
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 1920x1080
writeFrameRate: INPUT frameRate:30.000000
writeGain:      INPUT gainCtrl:1 analogGain:0.100000
updateOutputSettings:   OUTPUT frameRate:30.000000
updateOutputSettings:   OUTPUT analogGain:0.100000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeExposure:  INPUT expTime:0.033000
updateOutputSettings:   OUTPUT expTime:0.033000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 0, after:1
        request table for ISP 0:
        req[0]: output1 width=0, output1 height=0, output1 Bpp=0
        req[0]: output2 width=0, output2 height=0, output2 Bpp=0
        req[0]: input width=1920, input height=1080, input Bpp=12
        req[0]: output width=1920, output height=1080, output Bpp=16
        req[0]: input fps=30
        req[0]: guID=0, stage type=MemIspCapture
        req[0]: clock=0 Hz, iso bw=0 KB/s, non-iso bw=258360 KB/s
        req[450]: timeout=0
NvPclSettingsUpdate: Sending Updated Settings through PCL
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=0 and m_bwVal_NonIso=258360 KBpS

NvPclSettingsApply: Applying last settings through PCL
PowerServiceCore:setCameraBw: totalNonIsoBw=258360
apply:+++++++++++++++++++++++
writeGain:      INPUT gainCtrl:a analogGain:1.010101
updateOutputSettings:   OUTPUT analogGain:1.000000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeGain:      INPUT gainCtrl:1 analogGain:0.100000
updateOutputSettings:   OUTPUT analogGain:0.100000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeGain:      INPUT gainCtrl:a analogGain:1.010101
updateOutputSettings:   OUTPUT analogGain:1.000000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
(NvCapture) Error Timeout: capture waiting for status timeout (in /dvs/git/dirty/git-master_linux/camera/capture/nvcapture/capture_hw_linux.c, function NvCaptureLinuxGetCaptureStatus(), line 362)
(NvCapture) Error Timeout:  (propagating from /dvs/git/dirty/git-master_linux/camera/capture/nvcapture/capture.c, function NvCaptureDequeue(), line 1055)
SCF: Error Timeout:  (propagating from src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 851)
SCF: Error InvalidState: Timeout waiting on frame end sensor guid 0, capture sequence ID = 1, channel = 1/1 (in src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 858)
SCF: Error InvalidState: Something went wrong with waiting on frame end (in src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 939)
SCF: Error InvalidState: Something went wrong with waiting on frame end (in src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 939)
SCF: Error InvalidState: Timeout waiting on frame start sensor guid 0, capture sequence ID = 1 (in src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 966)
FiberScheduler: cc 101, session 0, fiber 0x7f4c000b20 aborted in async operation

FiberScheduler: fiber 0x7f4c000b20 exiting
Thread 4 is waiting
SCF: Error InvalidState: Something went wrong with waiting on frame start (in src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 1021)
SCF: Error InvalidState: Something went wrong with waiting on frame start (in src/services/capture/NvCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 1021)
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceDeviceViCsi.cpp, function waitCompletion(), line 335)
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function pause(), line 938)
SCF: Error Timeout: During capture abort, syncpoint wait timeout waiting for current frame to finish (in src/services/capture/CaptureServiceDevice.cpp, function handleCancelSourceRequests(), line 1032)
Failed to get IFrame interface #0
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc
SCF: Error InvalidState: Not initialized (in src/components/CaptureDispatcher.cpp, function flush(), line 147)
Worker thread CaptureDispatcher stop
disposing CC 101 Session 0
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceDeviceViCsi.cpp, function waitCompletion(), line 335)
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function pause(), line 938)
SCF: Error Timeout: During capture abort, syncpoint wait timeout waiting for current frame to finish (in src/services/capture/CaptureServiceDevice.cpp, function handleCancelSourceRequests(), line 1032)
Worker thread ViCsiHw frameComplete stop
Worker thread ViCsiHw frameStart stop
NvPclPowerOff: +++++++++++
NvPclPowerOff: -----------
PowerServiceHw:removeRequests: table size: before: 1, after:0
        request table for ISP 0:
PowerServiceCore:handleRequests: timePassed = 12077
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=0 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalNonIsoBw=0
(Argus) Objects still active during exit: [CameraProvider (0x55a652e640): refs: 1, cref: 0]

My custom error output is printed here in the test file.

        Argus::UniqueObj<EGLStream::Frame> frame(iFrameConsumers[i]->acquireFrame(FIVE_SECONDS_IN_NANOSECONDS, &status));
        EGLStream::IFrame *iFrame = Argus::interface_cast<EGLStream::IFrame>(frame);
        if(!iFrame) {
            fprintf(stderr, "Failed to get IFrame interface #%d\n", i);
            return -6;
        }

The same is the case with v4l2

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG12 --stream-mmap --set-ctrl=sensor_mode=0 --stream-count=1 --stream-to=./test.raw -d /dev/video0

v4l2 command can only be executed for the first time after booting, and v4l2 cannot collect data after argus is executed once.
And v4l2 can collect as many pictures for the first time, that is, the number set by --stream-count can reach
The second execution of v4l2 will be stuck until I ctrl c, this is the dmesg at the time of execution

[ 2085.375031] ------------[ cut here ]------------
[ 2085.375585] WARNING: CPU: 0 PID: 8265 at drivers/media/v4l2-core/videobuf2-core.c:1667 __vb2_queue_cancel+0x11c/0x188
[ 2085.376171] Modules linked in: nvgpu datawr(O)

[ 2085.376528] CPU: 0 PID: 8265 Comm: v4l2-ctl Tainted: G        W  O    4.9.140+ #34
[ 2085.376574] Hardware name: Jetson-AGX (DT)
[ 2085.376636] task: ffffffc785675400 task.stack: ffffffc78b384000
[ 2085.376707] PC is at __vb2_queue_cancel+0x11c/0x188
[ 2085.376773] LR is at __vb2_queue_cancel+0x34/0x188
[ 2085.376866] pc : [<ffffff8008b34884>] lr : [<ffffff8008b3479c>] pstate: 20400045
[ 2085.376908] sp : ffffffc78b387ae0
[ 2085.376961] x29: ffffffc78b387ae0 x28: 0000000000000008 
[ 2085.377093] x27: ffffff8008f82000 x26: ffffffc78b387de8 
[ 2085.377210] x25: ffffffc7baa4b4e8 x24: ffffffc7d6389018 
[ 2085.377325] x23: 0000000000000001 x22: ffffffc7da0c9018 
[ 2085.377444] x21: ffffffc7d679a800 x20: ffffffc7da0c95d0 
[ 2085.377575] x19: ffffffc7da0c95d0 x18: 0000000000000000 
[ 2085.377693] x17: 0000007fb1aebff8 x16: 0000000000000000 
[ 2085.377806] x15: 0000000000000000 x14: 0000000000037c9f 
[ 2085.377949] x13: 0000000000000b6e x12: 071c71c71c71c71c 
[ 2085.378067] x11: 000000000000000b x10: 0000000000000a10 
[ 2085.378190] x9 : ffffffc78b3871e0 x8 : ffffffc785675e70 
[ 2085.378311] x7 : fefefeff646c606d x6 : 0000000f4b6f62eb 
[ 2085.378428] x5 : 0000000000000000 x4 : 0000000000000000 
[ 2085.378546] x3 : ffffff80094f91a0 x2 : 0000000000000000 
[ 2085.378662] x1 : ffffffc7d82d8090 x0 : 0000000000000004 

[ 2085.378818] ---[ end trace 1a46671faddd65ac ]---
[ 2085.379189] Call trace:
[ 2085.379285] [<ffffff8008b34884>] __vb2_queue_cancel+0x11c/0x188
[ 2085.379368] [<ffffff8008b35cc4>] vb2_core_queue_release+0x2c/0x58
[ 2085.379449] [<ffffff8008b38344>] _vb2_fop_release+0x84/0xa0
[ 2085.379537] [<ffffff8008b3ded4>] tegra_channel_close+0x64/0x140
[ 2085.379622] [<ffffff8008b118f8>] v4l2_release+0x48/0xa0
[ 2085.379716] [<ffffff800825ebd0>] __fput+0x90/0x1d0
[ 2085.379800] [<ffffff800825ed88>] ____fput+0x20/0x30
[ 2085.379893] [<ffffff80080d9b74>] task_work_run+0xbc/0xd8
[ 2085.379979] [<ffffff80080b95f4>] do_exit+0x2c4/0xa08
[ 2085.380086] [<ffffff80080b9dc8>] do_group_exit+0x40/0xa8
[ 2085.380169] [<ffffff80080c76c4>] get_signal+0x26c/0x578
[ 2085.380257] [<ffffff800808b150>] do_signal+0x130/0x500
[ 2085.380341] [<ffffff800808b698>] do_notify_resume+0x90/0xb0
[ 2085.380415] [<ffffff800808379c>] work_pending+0x8/0x10
[ 2085.388979] imx307 2-001a: imx307_power_off: power off
[ 2086.572652] [imx307_power_on 316] zhousz debug --> already power on
[ 2086.576711] [tegra_channel_set_format 1976] zhousz debug --> vi channel set format: width 1920 height 1080 format 0x32314752
[ 2086.576742] [__tegra_channel_try_format 1895] zhousz debug --> format: width 1920 height 1080 code 0x3012 
[ 2086.576782] [camera_common_try_fmt 608] zhousz debug --> use_sensor_mode_id 1 sensor_mode_id 0
[ 2086.576794] [camera_common_try_fmt 609] zhousz debug --> s_data->numfmts 1 
[ 2086.576809] [camera_common_try_fmt 618] zhousz debug --> frmfmt[s_data->sensor_mode_id].size.width  1948 frmfmt[s_data->sensor_mode_id].size.height 1097
[ 2086.576842] [camera_common_try_fmt 626] zhousz debug -->  invalid resolution 1920 x 1080
[ 2086.576855] [__tegra_channel_try_format 1898] zhousz debug --> v4l2_subdev_call set_fmt ret 0
[ 2086.576869] [__tegra_channel_try_format 1902] zhousz debug --> format: width 1948 height 1097 code 0x3012 
[ 2086.576887] [__tegra_channel_try_format 1912] zhousz debug --> pix->width 1948 pix->height 1097 pix->bytesperline 3896
[ 2086.576905] [__tegra_channel_set_format 1941] zhousz debug --> format: width 1948 height 1097 code 0x3012 
[ 2086.576943] imx307 2-001a: camera_common_s_fmt(12306) size 1948 x 1097
[ 2086.576961] [camera_common_try_fmt 608] zhousz debug --> use_sensor_mode_id 1 sensor_mode_id 0
[ 2086.576974] [camera_common_try_fmt 609] zhousz debug --> s_data->numfmts 1 
[ 2086.576987] [camera_common_try_fmt 618] zhousz debug --> frmfmt[s_data->sensor_mode_id].size.width  1948 frmfmt[s_data->sensor_mode_id].size.height 1097
[ 2086.577003] [camera_common_verify_code 156] zhousz debug -->chan.num_video_formats 23 code 0x3012
[ 2086.577028] [__tegra_channel_set_format 1946] zhousz debug --> format: width 1948 height 1097 code 0x3012 
[ 2086.577049] [__tegra_channel_set_format 1959] zhousz debug --> format: width 1948 height 1097 fourcc 0x32314752 code 0x3012 
[ 2086.602404] [imx307_set_mode 596] set_mode : 0
[ 2086.612933] imx307 reg 0x3000  val 0x01
[ 2086.613378] imx307 reg 0x3002  val 0x01
[ 2086.613779] imx307 reg 0x3011  val 0x0a
[ 2086.614163] imx307 reg 0x309e  val 0x4a
[ 2086.614543] imx307 reg 0x309f  val 0x4a
[ 2086.614928] imx307 reg 0x311c  val 0x0e
[ 2086.615329] imx307 reg 0x3128  val 0x04
[ 2086.615970] imx307 reg 0x313b  val 0x41
[ 2086.616452] imx307 reg 0x3106  val 0x00
[ 2086.616859] imx307 reg 0x3005  val 0x01
[ 2086.617243] imx307 reg 0x3046  val 0x01
[ 2086.617886] imx307 reg 0x3129  val 0x00
[ 2086.618287] imx307 reg 0x317c  val 0x00
[ 2086.618670] imx307 reg 0x31ec  val 0x0e
[ 2086.619075] imx307 reg 0x3441  val 0x0c
[ 2086.619492] imx307 reg 0x3442  val 0x0c
[ 2086.619898] imx307 reg 0x305c  val 0x18
[ 2086.620448] imx307 reg 0x305d  val 0x03
[ 2086.620857] imx307 reg 0x305e  val 0x20
[ 2086.621175] imx307 reg 0x305f  val 0x01
[ 2086.621497] imx307 reg 0x315e  val 0x1a
[ 2086.621832] imx307 reg 0x3164  val 0x1a
[ 2086.622249] imx307 reg 0x3480  val 0x49
[ 2086.622576] imx307 reg 0x3444  val 0x20
[ 2086.622887] imx307 reg 0x3445  val 0x25
[ 2086.623199] imx307 reg 0x3405  val 0x20
[ 2086.623544] imx307 reg 0x3407  val 0x03
[ 2086.624022] imx307 reg 0x3443  val 0x03
[ 2086.624301] imx307 reg 0x3007  val 0x00
[ 2086.624564] imx307 reg 0x3009  val 0x02
[ 2086.624869] imx307 reg 0x300c  val 0x00
[ 2086.625224] imx307 reg 0x3010  val 0x21
[ 2086.625491] imx307 reg 0x3011  val 0x0a
[ 2086.625746] imx307 reg 0x3014  val 0x00
[ 2086.626000] imx307 reg 0x3018  val 0x65
[ 2086.626255] imx307 reg 0x3019  val 0x04
[ 2086.626520] imx307 reg 0x301c  val 0x30
[ 2086.626771] imx307 reg 0x301d  val 0x11
[ 2086.627023] imx307 reg 0x3020  val 0x01
[ 2086.627276] imx307 reg 0x3021  val 0x00
[ 2086.627541] imx307 reg 0x3022  val 0x00
[ 2086.627786] imx307 reg 0x3030  val 0x0b
[ 2086.628008] imx307 reg 0x3031  val 0x00
[ 2086.628236] imx307 reg 0x3032  val 0x00
[ 2086.628455] imx307 reg 0x3024  val 0x00
[ 2086.628672] imx307 reg 0x3025  val 0x00
[ 2086.628892] imx307 reg 0x3026  val 0x00
[ 2086.629136] imx307 reg 0x3045  val 0x01
[ 2086.629379] imx307 reg 0x3414  val 0x0a
[ 2086.629624] imx307 reg 0x3418  val 0x49
[ 2086.629870] imx307 reg 0x3419  val 0x04
[ 2086.630100] imx307 reg 0x3472  val 0x9c
[ 2086.630328] imx307 reg 0x3473  val 0x07
[ 2086.630545] imx307 reg 0x3446  val 0x47
[ 2086.630760] imx307 reg 0x3447  val 0x00
[ 2086.630982] imx307 reg 0x3448  val 0x1f
[ 2086.631199] imx307 reg 0x3449  val 0x00
[ 2086.631415] imx307 reg 0x344a  val 0x17
[ 2086.631971] imx307 reg 0x344b  val 0x00
[ 2086.632180] imx307 reg 0x344c  val 0x0f
[ 2086.632382] imx307 reg 0x344d  val 0x00
[ 2086.632580] imx307 reg 0x344e  val 0x17
[ 2086.632775] imx307 reg 0x344f  val 0x00
[ 2086.633000] imx307 reg 0x3450  val 0x47
[ 2086.633299] imx307 reg 0x3451  val 0x00
[ 2086.634098] imx307 reg 0x3452  val 0x0f
[ 2086.634351] imx307 reg 0x3453  val 0x00
[ 2086.634571] imx307 reg 0x3454  val 0x0f
[ 2086.634804] imx307 reg 0x3455  val 0x00
[ 2086.634833] imx307 2-001a: imx307_start_streaming: start stream
[ 2086.677927] imx307 reg 0x3000  val 0x00
[ 2086.678881] imx307 reg 0x3002  val 0x00
[ 2086.683848] imx307 reg 0x304b  val 0x0a

By the way, after I fixed the wrong devname in the device tree, argus was able to find the camera, but before the modification v4l2 could always capture, although I don’t think devname will cause v4l2 to capture only once:)

If there are necessary drivers or device trees, I will add them, thank you for your reply

My suspect is the sensor REG programing problem. Maybe check if the reset REG programing well.

It seems to be related to discontinuous_clk in mode. Oh no, i encounter this problem again. I’ll check it out again, thanks for your reply

1 Like