Only the first camera is used by gstreamer in multi-camera configuration

Hi:

We use L4T 24.2.1.
We have written the camera drivers for sony IMX377 and IMX274. the configuration is as follow:

IMX377: 2 lanes, CSI b, VI port 0 (/dev/video0)
IMX274: 2 lanes, CSI a, VI port 1 (/dev/video1)

We use the following gstreamer commands to show the preview of IMX377:

gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="60 60" ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)I420, framerate=60/1' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=640, height=480, format=(string)I420, framerate=60/1' ! nvegltransform ! nveglglessink -e

The above command works fine, and I can see the preview of IMX377 correctly.

However, If I change sensor-id from 0 to 1, system still tries to use IMX377, not IMX274.
And there is no preview.
I turn on the nvcamera-daemon debug messages. They are as follow (when sensor-id=1):

Thread 1 getting next capture

Thread 2 getting next capture

Thread 1 is waiting

Thread 2 is waiting

Thread 3 getting next capture

Thread 3 is waiting

Thread 4 getting next capture

Thread 4 is waiting

Starting services...

getInstance: s_instance(0x7f891a2e80)

doCreateSensor: create SensorType(gyroscope) sensor(0x7f891a2f80)

doCreateSensor: create SensorType(accelerometer) sensor(0x7f891a32c0)

doCreateSensor: create SensorType(magnetometer) sensor(0x7f891a3350)

doCreateSensor: create SensorType(temperature) sensor(0x7f8921f5f0)

doCreateSensor: create SensorType(proximity) sensor(0x7f892229d0)

doCreateSensor: create SensorType(rotation vector) sensor(0x7f89225db0)

doCreateSensor: create SensorType(linear acceleration) sensor(0x7f89229190)

getInstance: s_instance(0x7f891a2e80)

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 NOT supported in this build ######
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclHwMatchPartNum: Found calibration Part#:4BA815P2, imx219:"A815P2"
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx377_centerlef_A815P2
NvPclHwPrintModuleDefinition -- Position: 1
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx377 2-001a
NvPclHwMatchPartNum: Found calibration Part#:4BA815P2, imx219:"A815P2"
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx274_centerright_A815P2
NvPclHwPrintModuleDefinition -- Position: 2
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx274 6-001a
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx377_centerlef_A815P2 position1
NvPclModuleListInitialize: NvPclModule list[1]: imx274_centerright_A815P2 position2
NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
initialize: /dev/video1
getHotplugMonitor: Getting hotplug monitor instance
 initializeHotplug++
 hotPlugfunc ++ 
 addWatch: Watch added wd='1'
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 1 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8925b030
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8924b370
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8924b400
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16
CheckOverridesPermissions: cannot stat file [/Calib/camera_override.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16
CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16
CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16
CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16
CheckOverridesPermissions: cannot stat file [/data/nvcam/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/imx377_centerlef_A815P2.isp] 6/16
CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/imx377_centerlef_A815P2.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx377_centerlef_A815P2.isp] 7/16
CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/imx377_centerlef_A815P2.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx377_centerlef_A815P2.isp] 8/16
CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/imx377_centerlef_A815P2.isp]
LoadOverridesFile: looking for override file [(null)] 9/16
LoadOverridesFile: looking for override file [(null)] 10/16
LoadOverridesFile: looking for override file [(null)] 11/16
LoadOverridesFile: looking for override file [(null)] 12/16
LoadOverridesFile: looking for override file [(null)] 13/16
LoadOverridesFile: looking for override file [(null)] 14/16
LoadOverridesFile: looking for override file [(null)] 15/16
LoadOverridesFile: looking for override file [(null)] 16/16
LoadOverridesFile: No override file found.
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]
initialize: imx377 2-001a
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyGetString: could not read property [use_sensor_mode_id]
OFDPropertyCopyToLong: could not read property [has-eeprom]
Control Fuse ID not found
Control OTP Data not found
Control Frame Rate not found
Control Exposure not found
Sensor_FindCustomCIDs: calculated MaxCoarseDiff -500
OFDPropertyGetString: could not read property [type]
Sensor_LoadSubType: Sensor type missing in DT, 510
OFDPropertyCopyToLong: could not read property [mode0.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode0.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode0.mode_type]
Sensor_LoadModeModeType: mode 0: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode0.pixel_phase]
Sensor_LoadModePixelPhase: mode 0: Failed to load pixeltype
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]
OFDPropertyCopyToLong: could not read property [mode1.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode1.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode1.mode_type]
Sensor_LoadModeModeType: mode 1: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode1.pixel_phase]
Sensor_LoadModePixelPhase: mode 1: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode1.x_start]
OFDPropertyGetString: could not read property [mode1.y_start]
OFDPropertyGetString: could not read property [mode1.x_end]
OFDPropertyGetString: could not read property [mode1.y_end]
OFDPropertyGetString: could not read property [mode1.h_scaling]
OFDPropertyGetString: could not read property [mode1.v_scaling]
OFDPropertyCopyToLong: could not read property [mode2.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode2.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode2.mode_type]
Sensor_LoadModeModeType: mode 2: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode2.pixel_phase]
Sensor_LoadModePixelPhase: mode 2: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode2.x_start]
OFDPropertyGetString: could not read property [mode2.y_start]
OFDPropertyGetString: could not read property [mode2.x_end]
OFDPropertyGetString: could not read property [mode2.y_end]
OFDPropertyGetString: could not read property [mode2.h_scaling]
OFDPropertyGetString: could not read property [mode2.v_scaling]
OFDPropertyCopyToLong: could not read property [mode3.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode3.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode3.mode_type]
Sensor_LoadModeModeType: mode 3: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode3.pixel_phase]
Sensor_LoadModePixelPhase: mode 3: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode3.x_start]
OFDPropertyGetString: could not read property [mode3.y_start]
OFDPropertyGetString: could not read property [mode3.x_end]
OFDPropertyGetString: could not read property [mode3.y_end]
OFDPropertyGetString: could not read property [mode3.h_scaling]
OFDPropertyGetString: could not read property [mode3.v_scaling]
OFDPropertyCopyToLong: could not read property [mode4.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode4.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode4.mode_type]
Sensor_LoadModeModeType: mode 4: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode4.pixel_phase]
Sensor_LoadModePixelPhase: mode 4: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode4.x_start]
OFDPropertyGetString: could not read property [mode4.y_start]
OFDPropertyGetString: could not read property [mode4.x_end]
OFDPropertyGetString: could not read property [mode4.y_end]
OFDPropertyGetString: could not read property [mode4.h_scaling]
OFDPropertyGetString: could not read property [mode4.v_scaling]
OFDPropertyCopyToLong: could not read property [mode5.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode5.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode5.mode_type]
Sensor_LoadModeModeType: mode 5: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode5.pixel_phase]
Sensor_LoadModePixelPhase: mode 5: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode5.x_start]
OFDPropertyGetString: could not read property [mode5.y_start]
OFDPropertyGetString: could not read property [mode5.x_end]
OFDPropertyGetString: could not read property [mode5.y_end]
OFDPropertyGetString: could not read property [mode5.h_scaling]
OFDPropertyGetString: could not read property [mode5.v_scaling]
NvPclDriver_V4L2_Sensor_Initialize: Loaded Driver: 6 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
populateStaticProperties

populateStaticProperties

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 2 match at index[1]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8925c590
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8925c620
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8925c6b0
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16
CheckOverridesPermissions: cannot stat file [/Calib/camera_override.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16
CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16
CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16
CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16
CheckOverridesPermissions: cannot stat file [/data/nvcam/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/imx274_centerright_A815P2.isp] 6/16
CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/imx274_centerright_A815P2.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx274_centerright_A815P2.isp] 7/16
CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/imx274_centerright_A815P2.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx274_centerright_A815P2.isp] 8/16
CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/imx274_centerright_A815P2.isp]
LoadOverridesFile: looking for override file [(null)] 9/16
LoadOverridesFile: looking for override file [(null)] 10/16
LoadOverridesFile: looking for override file [(null)] 11/16
LoadOverridesFile: looking for override file [(null)] 12/16
LoadOverridesFile: looking for override file [(null)] 13/16
LoadOverridesFile: looking for override file [(null)] 14/16
LoadOverridesFile: looking for override file [(null)] 15/16
LoadOverridesFile: looking for override file [(null)] 16/16
LoadOverridesFile: No override file found.
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]
initialize: imx274 6-001a
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyGetString: could not read property [use_sensor_mode_id]
OFDPropertyCopyToLong: could not read property [has-eeprom]
Control Fuse ID not found
Control OTP Data not found
Control Frame Rate not found
Control Exposure not found
Sensor_FindCustomCIDs: calculated MaxCoarseDiff -500
OFDPropertyGetString: could not read property [type]
Sensor_LoadSubType: Sensor type missing in DT, 510
OFDPropertyCopyToLong: could not read property [mode0.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode0.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode0.mode_type]
Sensor_LoadModeModeType: mode 0: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode0.pixel_phase]
Sensor_LoadModePixelPhase: mode 0: Failed to load pixeltype
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]
OFDPropertyCopyToLong: could not read property [mode1.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode1.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode1.mode_type]
Sensor_LoadModeModeType: mode 1: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode1.pixel_phase]
Sensor_LoadModePixelPhase: mode 1: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode1.x_start]
OFDPropertyGetString: could not read property [mode1.y_start]
OFDPropertyGetString: could not read property [mode1.x_end]
OFDPropertyGetString: could not read property [mode1.y_end]
OFDPropertyGetString: could not read property [mode1.h_scaling]
OFDPropertyGetString: could not read property [mode1.v_scaling]
OFDPropertyCopyToLong: could not read property [mode2.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode2.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode2.mode_type]
Sensor_LoadModeModeType: mode 2: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode2.pixel_phase]
Sensor_LoadModePixelPhase: mode 2: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode2.x_start]
OFDPropertyGetString: could not read property [mode2.y_start]
OFDPropertyGetString: could not read property [mode2.x_end]
OFDPropertyGetString: could not read property [mode2.y_end]
OFDPropertyGetString: could not read property [mode2.h_scaling]
OFDPropertyGetString: could not read property [mode2.v_scaling]
OFDPropertyCopyToLong: could not read property [mode3.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode3.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode3.mode_type]
Sensor_LoadModeModeType: mode 3: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode3.pixel_phase]
Sensor_LoadModePixelPhase: mode 3: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode3.x_start]
OFDPropertyGetString: could not read property [mode3.y_start]
OFDPropertyGetString: could not read property [mode3.x_end]
OFDPropertyGetString: could not read property [mode3.y_end]
OFDPropertyGetString: could not read property [mode3.h_scaling]
OFDPropertyGetString: could not read property [mode3.v_scaling]
OFDPropertyCopyToLong: could not read property [mode4.csi_pixel_bit_depth]
OFDPropertyCopyToLong: could not read property [mode4.dynamic_pixel_bit_depth]
OFDPropertyGetString: could not read property [mode4.mode_type]
Sensor_LoadModeModeType: mode 4: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode4.pixel_phase]
Sensor_LoadModePixelPhase: mode 4: Failed to load pixeltype
OFDPropertyGetString: could not read property [mode4.x_start]
OFDPropertyGetString: could not read property [mode4.y_start]
OFDPropertyGetString: could not read property [mode4.x_end]
OFDPropertyGetString: could not read property [mode4.y_end]
OFDPropertyGetString: could not read property [mode4.h_scaling]
OFDPropertyGetString: could not read property [mode4.v_scaling]
NvPclDriver_V4L2_Sensor_Initialize: Loaded Driver: 5 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
populateStaticProperties

populateStaticProperties

sourceRegistry[1] assigned

ispRegistry[0] assigned

Using Source GUID 2

NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A

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.

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
Sensor_WriteMode: Target mode Id(1): Resolution 1932x1102
setActiveBufferMemory: 2
setActivePixelFormat: 808535890
INPUT: Width 4104 Height 3062 pixelformat RG10
INPUT: Width 1932 Height 1102 pixelformat RG10
Sensor_WriteFrameRate:	INPUT frameLength:2307, frameRate:60.000000
Sensor_WriteGain:	INPUT gainCtrl:100 analogGain:1.000000
Sensor_WriteExposure:	INPUT coarseTime:2807, expTime:0.020273
NvPclDriver_UpdateOutputSettings:	OUTPUT frameLength:2307, frameRate:60.018005
NvPclDriver_UpdateOutputSettings:	OUTPUT analogGain:1.000000
NvPclDriver_UpdateOutputSettings:	OUTPUT coarseTime:2807, expTime:0.020273
NvPclDriver_V4L2_Sensor_Write:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
NvPclDriver_V4L2_Sensor_Write:-----------------------
NvPclSettingsApply: Reading PCL settings
populateStaticProperties

InstructionList:

  + GraphSettings
      | SensorMode: 1932x1102 BayerS16RGGB 60.0fps
      | output 0: 1920x1080 BL Y8 420
      | downscaleForPostProcessing

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 5
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApplyPreCapture
      +  4: AcMergeStage
      +  5: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 1920x1096 BL Y8 420
      +  6: TempBufferAcquireStage
          | Buffer Index: 3
          | BufferRequirements: 1932x1 Pitch NonColor8
      +  7: SensorISPCaptureStage
          | Source GUID: 2
          | Output A Buffer: 2
          | SensorMetadata Buffer: 3
      +  8: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x366 Pitch Y8 420
      +  9: BlitStage
          | Input Buffer: 2
          | Output Buffer: 1
          | Filter: Nearest
          | Transform: None
          | Src Rect: Not used
          | Dst Rect: Not used

      + 10: StatsUpdateStage
          | Outut Meta Buffer: 3
      + 11: BufferReturnStage
          | Output A Buffer: 3
      + 12: AcPluginStage
          | operation: opAnalyzePostCapture
      + 13: AfAnalysisStage
      + 14: BlitStage
          | Input Buffer: 2
          | Output Buffer: 0
          | Filter: Smart
          | Transform: None
          | Src Rect: [0, 0, 1920, 1096]
          | Dst Rect: Not used
      + 15: MonitorStage
      + 16: ExifStage
      + 17: MakerNoteStage
      + 18: BufferReturnStage
          | Output A Buffer: 0
      + 19: MetadataReturnStage
      + 20: BufferReturnStage
          | Output A Buffer: 2

Created fiber 0x7f400008c0 for CC 101

Thread 1 is working on CC 101

populateStaticProperties

CC 101 completed step 0 in fiber 0x7f400008c0

CC 101 processing step 1 in fiber 0x7f400008c0

FiberScheduler: cc 101, fiber 0x7f400008c0 in progress...

Thread 1 getting next capture

Thread 1 is waiting

Thread 2 is waiting

cc 101(0) runCount=0 runIspOut=0, latest ccId=0
FiberScheduler: cc 101, fiber 0x7f400008c0 succeeded async operation

Thread 3 is working on CC 101

CC 101 processing step 2 in fiber 0x7f400008c0

FiberScheduler: cc 101, fiber 0x7f400008c0 in progress...

NV AE and AfApply algorithms are active.

Thread 4 is waiting

Thread 3 getting next capture

Thread 3 is waiting

FiberScheduler: cc 101, fiber 0x7f400008c0 succeeded async operation

Thread 1 is working on CC 101

CC 101 processing step 3 in fiber 0x7f400008c0

FiberScheduler: cc 101, fiber 0x7f400008c0 in progress...

Thread 1 getting next capture

Thread 1 is waiting

FiberScheduler: cc 101, fiber 0x7f400008c0 succeeded async operation

Thread 2 is working on CC 101

CC 101 processing step 4 in fiber 0x7f400008c0

Thread 4 is waiting

Created fiber 0x7f40000d00 for CC 102

Thread 3 is working on CC 102

CC 102 completed step 0 in fiber 0x7f40000d00

CC 102 processing step 1 in fiber 0x7f40000d00

FiberScheduler: cc 102, fiber 0x7f40000d00 in progress...

Thread 3 getting next capture

Thread 3 is waiting

Thread 1 is waiting

cc 102(1) runCount=1 runIspOut=0, latest ccId=0
populateStaticProperties

FiberScheduler: cc 102, fiber 0x7f40000d00 succeeded async operation

Thread 4 is working on CC 102

CC 102 processing step 2 in fiber 0x7f40000d00

FiberScheduler: cc 102, fiber 0x7f40000d00 in progress...

Thread 4 getting next capture

Thread 4 is waiting

NV AE and AfApply algorithms are active.

Thread 3 is waiting

FiberScheduler: cc 101, fiber 0x7f400008c0 in progress...

Thread 2 getting next capture

Thread 2 is waiting

Thread 1 is waiting

FiberScheduler: cc 102, fiber 0x7f40000d00 succeeded async operation

Thread 4 is working on CC 102

CC 102 processing step 3 in fiber 0x7f40000d00

FiberScheduler: cc 102, fiber 0x7f40000d00 in progress...

Thread 4 getting next capture
FiberScheduler: cc 102, fiber 0x7f40000d00 succeeded async operation


Thread 3 is working on CC 102

CC 102 processing step 4 in fiber 0x7f40000d00

Thread 4 is waiting

FiberScheduler: cc 101, fiber 0x7f400008c0 succeeded async operation

Thread 1 is working on CC 101

CC 101 completed step 5 in fiber 0x7f400008c0

CC 101 completed step 6 in fiber 0x7f400008c0

CC 101 processing step 7 in fiber 0x7f400008c0

FiberScheduler: cc 101, fiber 0x7f400008c0 in progress...

Thread 1 getting next capture

Thread 4 is waiting

FiberScheduler: cc 102, fiber 0x7f40000d00 in progress...

Thread 3 getting next capture

Thread 4 is waiting

Thread 2 is waiting

Thread 1 is waiting

Thread 3 is waiting

PowerServiceUtils:calculateReqClock: entered

PowerServiceHw:addRequest: table size: before: 0, after:1

	request table for VI 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1932, inH=1102, inBpp = 10, fps=60
	req[0]: outW=0, outH=0, outBpp=0
	req[0]: clock=288000000, pixelRate=288000000, timeout=450
	req[0]: isoBw=0, timeout=450
	req[0]: non_isoBw=0, timeout=450
PowerServiceHw:addRequest: table size: before: 0, after:1

	request table for CSI 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1932, inH=1102, inBpp = 10, fps=60
	req[0]: outW=0, outH=0, outBpp=0
	req[0]: clock=0, pixelRate=288000000, timeout=450
	req[0]: isoBw=0, timeout=450
	req[0]: non_isoBw=0, timeout=450
PowerServiceHw:setClock: PowerServiceHw[1]: requested_clock_Hz=288000000

PowerServiceUtils:calculateReqClock: entered

PowerServiceHw:addRequest: table size: before: 0, after:1

	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1932, inH=1102, inBpp = 10, fps=60FiberScheduler: cc 102, fiber 0x7f40000d00 succeeded async operation

Thread 4 is working on CC 102


	req[0]: outW=1920, outH=1096, outBpp=12
	req[0]: clock=288000000, pixelRate=288000000, timeout=450
	req[0]: isoBw=432000, timeout=450
	req[0]: non_isoBw=0, timeout=450
PowerServiceHw:setClock: PowerServiceHw[2]: requested_clock_Hz=288000000

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
Sensor_WriteFrameRate:	INPUT frameLength:2307, frameRate:60.000000
Sensor_WriteGain:	INPUT gainCtrl:100 analogGain:1.000000
Sensor_WriteExposure:	INPUT coarseTime:2807, expTime:0.020273
NvPclDriver_UpdateOutputSettings:	OUTPUT frameLength:2307, frameRate:60.018005
NvPclDriver_UpdateOutputSettings:	OUTPUT analogGain:1.000000
NvPclDriver_UpdateOutputSettings:	OUTPUT coarseTime:2807, expTime:0.020273
NvPclDriver_V4L2_Sensor_Write:-----------------------
NvPclSettingsApply: Reading PCL settings
CC 102 completed step 5 in fiber 0x7f40000d00

CC 102 completed step 6 in fiber 0x7f40000d00

CC 102 processing step 7 in fiber 0x7f40000d00

FiberScheduler: cc 102, fiber 0x7f40000d00 in progress...

Thread 4 getting next capture

Thread 4 is waiting

Thread 2 is waiting

PowerServiceHwIsp:setLaBw: m_bwVal_Iso=432000 and m_bwVal_NonIso=0

PowerServiceCore:setCameraBw: totalIsoBw=432000

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
Sensor_WriteFrameRate:	INPUT frameLength:2307, frameRate:60.000000
Sensor_WriteGain:	INPUT gainCtrl:100 analogGain:1.000000
Sensor_WriteExposure:	INPUT coarseTime:2807, expTime:0.020273
NvPclDriver_UpdateOutputSettings:	OUTPUT frameLength:2307, frameRate:60.018005
NvPclDriver_UpdateOutputSettings:	OUTPUT analogGain:1.000000
NvPclDriver_UpdateOutputSettings:	OUTPUT coarseTime:2807, expTime:0.020273
NvPclDriver_V4L2_Sensor_Write:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
Sensor_WriteFrameRate:	INPUT frameLength:2307, frameRate:60.000000
Sensor_WriteGain:	INPUT gainCtrl:100 analogGain:1.000000
Sensor_WriteExposure:	INPUT coarseTime:2302, expTime:0.016632
NvPclDriver_UpdateOutputSettings:	OUTPUT frameLength:2307, frameRate:60.018005
NvPclDriver_UpdateOutputSettings:	OUTPUT analogGain:1.000000
NvPclDriver_UpdateOutputSettings:	OUTPUT coarseTime:2302, expTime:0.016626
NvPclDriver_V4L2_Sensor_Write:-----------------------
NvPclSettingsApply: Reading PCL settings
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
Created fiber 0x7f40000f20 for CC 103

Thread 1 is working on CC 103

populateStaticProperties
Fiber 0x7f40000f20 is aborting in CC 2


launchCC abort cc 104

FiberScheduler: cc 103, fiber 0x7f40000f20 aborted

Error: waitCsiFrameStart timeout guid 2
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
Sensor_WriteFrameRate:	INPUT frameLength:2307, frameRate:60.000000
Sensor_WriteGain:	INPUT gainCtrl:201 analogGain:2.004169
Sensor_WriteExposure:	INPUT coarseTime:2302, expTime:0.016632
Error: waitCsiFrameStart Something went wrong with waiting on frame start
Created fiber 0x7f897ec160 for CC 104
Thread 3 is working on CC 104

Fiber 0x7f897ec160 is aborting in CC 3

FiberScheduler: cc 104, fiber 0x7f897ec160 aborted


SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
NvPclDriver_UpdateOutputSettings:	OUTPUT frameLength:2307, frameRate:60.018005
NvPclDriver_UpdateOutputSettings:	OUTPUT analogGain:2.003906
NvPclDriver_UpdateOutputSettings:	OUTPUT coarseTime:2302, expTime:0.016626
NvPclDriver_V4L2_Sensor_Write:-----------------------
populateStaticProperties

NvPclSettingsApply: Reading PCL settings
launchCC abort cc 105

Thread 4 is working on CC 105

Fiber 0x7f897e82c0 is aborting in CC 3

FiberScheduler: cc 105, fiber 0x7f897e82c0 aborted

Created fiber 0x7f897e82c0 for CC 105

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
populateStaticProperties

launchCC abort cc 106

Thread 2 is working on CC 106

Fiber 0x7f897f0b10 is aborting in CC 3

FiberScheduler: cc 106, fiber 0x7f897f0b10 aborted

Created fiber 0x7f897f0b10 for CC 106

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
populateStaticProperties

launchCC abort cc 107

Created fiber 0x7f897f1ba0 for CC 107

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
populateStaticProperties

launchCC abort cc 108

Created fiber 0x7f897f2c30 for CC 108

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
populateStaticProperties

launchCC abort cc 109

Created fiber 0x7f897f3cc0 for CC 109

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
populateStaticProperties

launchCC abort cc 110

Created fiber 0x7f897f4d50 for CC 110

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 731)
FiberScheduler: cc 101, fiber 0x7f400008c0 aborted in async operation

FiberScheduler: fiber 0x7f897ec160 exiting

Thread 3 getting next capture

disposing CC 104

Thread 3 is working on CC 107

Fiber 0x7f897f1ba0 is aborting in CC 3

FiberScheduler: cc 107, fiber 0x7f897f1ba0 aborted

FiberScheduler: fiber 0x7f897f1ba0 exiting

Thread 3 getting next capture

disposing CC 107

Thread 3 is working on CC 108

Fiber 0x7f897f2c30 is aborting in CC 3

FiberScheduler: cc 108, fiber 0x7f897f2c30 aborted

FiberScheduler: fiber 0x7f897f2c30 exiting

Thread 3 getting next capture

disposing CC 108

Thread 3 is working on CC 109

Fiber 0x7f897f3cc0 is aborting in CC 3

FiberScheduler: cc 109, fiber 0x7f897f3cc0 aborted

FiberScheduler: fiber 0x7f897e82c0 exiting

Thread 4 getting next capture

disposing CC 105

Thread 4 is working on CC 110

Fiber 0x7f897f4d50 is aborting in CC 3

FiberScheduler: cc 110, fiber 0x7f897f4d50 aborted

FiberScheduler: fiber 0x7f897f4d50 exiting

Thread 4 getting next capture

Thread 4 is waiting

FiberScheduler: fiber 0x7f897f0b10 exiting

Thread 2 getting next capture

disposing CC 106

Thread 2 is waiting

FiberScheduler: fiber 0x7f400008c0 exiting

FiberScheduler: cc 102, fiber 0x7f40000d00 aborted in async operation

FiberScheduler: fiber 0x7f40000d00 exiting

disposing CC 102

I also use v4l2-ctl to capture raw frame from IMX274 (/dev/video1) by the following command:

./v4l2-ctl --verbose --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --set-ctrl bypass_mode=0 --stream-count=10 -d /dev/video1 --stream-to=z_1920x1080.raw

The above command works correctly. It just turns on IMX274, captures frames, then turns off IMX274 without touching IMX377.

Can anyone help me with this issue ?

Thanks.

From your log I can see opened the correct sensor(IMX274) and get “Error: waitCsiFrameStart timeout guid 2” that why you got no preview scene. And the resolution is 1932x1102 that’s weird possible the device tree not correct.

Using Source GUID 2

NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A

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.

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
NvPclDriver_V4L2_Sensor_Write:+++++++++++++++++++++++
Sensor_WriteMode: Target mode Id(1): Resolution 1932x1102
setActiveBufferMemory: 2
setActivePixelFormat: 808535890
INPUT: Width 4104 Height 3062 pixelformat RG10
INPUT: Width 1932 Height 1102 pixelformat RG10
Sensor_WriteFrameRate:	INPUT frameLength:2307, frameRate:60.000000
Sensor_WriteGain:	INPUT gainCtrl:100 analogGain:1.000000
Sensor_WriteExposure:	INPUT coarseTime:2807, expTime:0.020273
NvPclDriver_UpdateOutputSettings:	OUTPUT frameLength:2307, frameRate:60.018005
NvPclDriver_UpdateOutputSettings:	OUTPUT analogGain:1.000000
NvPclDriver_UpdateOutputSettings:	OUTPUT coarseTime:2807,

Hi ShaneCC:

Thanks for you reply.
If I change my device tree to get the following configuration:

IMX274: 2 lanes, CSI a, VI port 0 (/dev/video0)
IMX377: 2 lanes, CSI b, VI port 1 (/dev/video1)

I can the preview of IMX274 when I set sensor-id=0. But I can not see the preview of IMX377 with sensor-id=1.

I get the “Error: waitCsiFrameStart timeout guid 2” message because system always tries to use VI port 0, even I set sensor-id=1.

One more thing. When I use “gst-launch-1.0 nvcamerasrc sensor-id=0 …” to get the preview of IMX274. System tries to power on both sensors (IMX274 and IMX377). The message is as follow:

[ 3516.798623] imx274-2lane 6-001a: imx274_power_on: power on
[ 3516.813059] imx274-2lane 6-001a: power on done
[ 3516.817601] imx274-2lane 6-001a: imx274_power_off: power off
[ 3516.823383] imx274-2lane 6-001a: power off done
[ 3516.829052] imx377-2lane 2-001a: imx377_power_on: power on
[ 3516.843192] imx377-2lane 2-001a: power on done
[ 3516.847730] imx377-2lane 2-001a: imx377_power_off: power off
[ 3516.853698] imx377-2lane 2-001a: power off done
[ 3516.904363] imx377-2lane 2-001a: imx377_power_on: power on
[ 3516.913140] imx377-2lane 2-001a: power on done
[ 3516.917610] imx377-2lane 2-001a: imx377_power_off: power off
[ 3516.923479] imx377-2lane 2-001a: power off done
[ 3516.928242] imx274-2lane 6-001a: imx274_power_on: power on
[ 3516.943144] imx274-2lane 6-001a: power on done
[ 3516.947647] imx274-2lane 6-001a: imx274_power_off: power off
[ 3516.953544] imx274-2lane 6-001a: power off done
[ 3516.958403] imx274-2lane 6-001a: imx274_power_on: power on
[ 3516.973096] imx274-2lane 6-001a: power on done
[ 3516.977605] imx274-2lane 6-001a: imx274_power_off: power off
[ 3516.983366] imx274-2lane 6-001a: power off done
[ 3516.988094] imx274-2lane 6-001a: imx274_power_on: power on
[ 3517.003109] imx274-2lane 6-001a: power on done
[ 3517.007637] imx274-2lane 6-001a: imx274_power_off: power off
[ 3517.013450] imx274-2lane 6-001a: power off done
[ 3517.027999] imx377-2lane 2-001a: imx377_power_on: power on
[ 3517.043056] imx377-2lane 2-001a: power on done
[ 3517.047549] imx377-2lane 2-001a: imx377_power_off: power off
[ 3517.053282] imx377-2lane 2-001a: power off done
[ 3517.058050] imx274-2lane 6-001a: imx274_power_on: power on
[ 3517.073114] imx274-2lane 6-001a: power on done
[ 3517.077587] imx274-2lane 6-001a: imx274_power_off: power off
[ 3517.083805] imx274-2lane 6-001a: power off done
[ 3517.088542] imx274-2lane 6-001a: imx274_power_on: power on
[ 3517.104629] imx274-2lane 6-001a: power on done
[ 3517.109117] imx274-2lane 6-001a: imx274_power_off: power off
[ 3517.114913] imx274-2lane 6-001a: power off done
[ 3517.119622] imx274-2lane 6-001a: imx274_power_on: power on
[ 3517.133093] imx274-2lane 6-001a: power on done
[ 3517.137661] imx274-2lane 6-001a: imx274_power_off: power off
[ 3517.143815] imx274-2lane 6-001a: power off done
[ 3517.185933] imx274-2lane 6-001a: imx274_power_on: power on
[ 3517.193137] imx274-2lane 6-001a: power on done

I don’t think this is correct. In this reply, if sensor-id=0, system should use IMX274, without touching IMX377. But now both sensors are used.

If there is something else I can do, please tell me.
Thanks.

No matter which sensor id was opened it will list all the sensors at first so you will see both of your sensor list will power on/off. Your case must be the device tree got problem to cause it.

Hi arthurho,

Have you found the cause and resolved the problem?
Can both cameras work well now?

Thanks

Hi kayccc:

Thanks for you concern.
Yes, I can make both cameras work well.
The root cause is the device name.

My device tree:

imx274@1a {
  compatible = "nvidia,<b>imx274-2lane</b>"
  ...
};

tegra-camera-platform {
  ...
  modules {
    ...
    module0 {
      drivernode0 {
        ...
        devname = "<b>imx274</b> 6-001a";
      };
      ...
    };
  };
};

We can see that “imx274-2lane” doesn’t match “imx274”.
After changing “imx274-2lane” (in device tree and driver code) to “imx274”, both cameras work well.