How can i solve this problem in Libargus? "Failed to get IFrame interface"

I am using the imx-586 sensor in the Nvidia Jetson NX platform,the driver is fine,and i can get raw-data by the following command
“v4l2-ctl -V --set-fmt-video=width=4000,height=3000,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=imx586.raw -d /dev/video0”
But I can’t get pictures or video streams in the application layer by any gstreamer commands or v4l2 commands.So I used Libargus to track the problem.I build and run the libargus sample which path is "/usr/src/jetson_multimedia_api/argus/build/samples/oneShot/argus_oneshot ",and it was error “Failed to get IFrame interface”,and it must restart the sudo systemctl restart nvargus-daemon,otherwise it can’t capture again,How can i solve this problem?


Get the log from nvargus-daemon to check.

https://elinux.org/Jetson/l4t/Camera_BringUp

And more detailed logs:
root@nx-desktop:~# kill the process of argus_daemon/nvargus-daemon or nvcamera-daemon
-bash: kill: the: arguments must be process or job IDs
-bash: kill: process: arguments must be process or job IDs
-bash: kill: of: arguments must be process or job IDs
-bash: kill: argus_daemon/nvargus-daemon: arguments must be process or job IDs
-bash: kill: or: arguments must be process or job IDs
-bash: kill: nvcamera-daemon: arguments must be process or job IDs
root@nx-desktop:~# export enableCamPclLogs=5
root@nx-desktop:~#
root@nx-desktop:~#
root@nx-desktop:~# export enableCamScfLogs=5
root@nx-desktop:~#
root@nx-desktop:~#
root@nx-desktop:~#
root@nx-desktop:~# /usr/sbin/nvargus-daemon
=== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections…
=== gst-launch-1.0[7840]: Connection established (7F8FEEC1D0)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(0x7f887bc900)
getInstance: s_instance(0x7f887bc900)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7f887bee20)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7f887c4380)
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: imx586_left_BS
NvPclHwPrintModuleDefinition – Position: 60
NvPclHwPrintModuleDefinition – CalibrationData Found: 1
NvPclHwPrintCameraSubModule – HwCamSubModule[0].Name: v4l2_lens
NvPclHwPrintCameraSubModule – HwCamSubModule[0].DevName:
NvPclHwPrintCameraSubModule – HwCamSubModule[1].Name: v4l2_sensor
NvPclHwPrintCameraSubModule – HwCamSubModule[1].DevName: imx586 2-001a
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx586_left_BS position60
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 60 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8869c950
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f886f1420
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f886a2990
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f882041c0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f88807e00
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f887fc4e0
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/imx586_left_BS.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/imx586_left_BS.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx586_left_BS.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/imx586_left_BS.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx586_left_BS.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/imx586_left_BS.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/imx586_left_BS.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx586_left_BS.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx586_left_BS.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]
OFDPropertyCopyToLong: could not read property [has-eeprom]
loadBinaryBlob: Binary read 6
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: ----------------------
LSC: LSC surface is not based on full res!
=== gst-launch-1.0[7840]: CameraProvider initialized (0x7f88807e90)sourceRegistry[0] assigned

ispRegistry[0] assigned

Using Source GUID 3c
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A
NvPHSSendThroughputHints: sensorId=60, 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
Session::updatePerfHints()
updatePerfHints(): guid=60ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=60, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=60, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

No output buffers for 2
No output buffers for 1
InstructionList:

  • GraphSettings
    | SensorMode: 4000x3000 BayerS16RGGB 24.1fps
    | output 0: 4000x3000 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: [4000, 3000]
      | IspOut0: [4000, 3000]
      | IspOut1: [0, 0]
      | IspOut2: [640, 480]
    • 5: TempBufferAcquireStage
      | Buffer Index: 3
      | BufferRequirements: 4000x3000 Pitch BayerS16RGGB
    • 6: TempBufferAcquireStage
      | Buffer Index: 4
      | BufferRequirements: 4000x1 Pitch NonColor8
    • 7: SensorCaptureStage
      | Master: 1
      | Source GUID: 60
      | Output Buffer: 3
      | SensorMetadata Buffer: 4
    • 8: StatsBufferAcquireStage
      | Buffer Index: 1
      | BufferRequirements: 640x480 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: 60
    • 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

Session::updatePerfHints()
updatePerfHints(): guid=60ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=60, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=60, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

Created fiber 0x7f38000b20 for CC 101 globalID 101 session 60
Thread 1 is working on CC 101 session 60 globalID 101 step 0
Session::updatePerfHints()
updatePerfHints(): guid=60ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=60, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

Thread 2 is working on CC 102 session 60 globalID 102 step 0
NvPHSSendThroughputHints: sensorId=60, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

CC 102 session 60 completed step 0 in fiber 0x7f38000dd0
CC 102 session 60 stalled step 1 in fiber 0x7f38000dd0
FiberScheduler: cc 102, session 60 fiber 0x7f38000dd0 not ready to execute stalled on 0x7f882161b0 stage…

Thread 2 getting next capture
Thread 3 is waiting
Thread 2 is waiting
CC 101 session 60 completed step 0 in fiber 0x7f38000b20
cc 101(1) session 60 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 60 completed step 1 in fiber 0x7f38000b20
Created fiber 0x7f38000dd0 for CC 102 globalID 102 session 60
Thread 4 is working on CC 102 session 60 globalID 102 step 1
cc 102(2) session 60 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 60 completed step 1 in fiber 0x7f38000dd0
CC 102 session 60 stalled step 2 in fiber 0x7f38000dd0
FiberScheduler: cc 102, session 60 fiber 0x7f38000dd0 not ready to execute stalled on 0x7f887f9a80 stage…

Thread 4 getting next capture
Thread 5 is waiting
Thread 4 is waiting
NV AE and AfApply algorithms are active.
CC 101 session 60 completed step 2 in fiber 0x7f38000b20
Thread 6 is working on CC 102 session 60 globalID 102 step 2
NV AE and AfApply algorithms are active.
CC 101 session 60 completed step 3 in fiber 0x7f38000b20
CC 102 session 60 completed step 2 in fiber 0x7f38000dd0
CC 102 session 60 completed step 3 in fiber 0x7f38000dd0
CC 102 session 60 stalled step 4 in fiber 0x7f38000dd0
FiberScheduler: cc 102, session 60 fiber 0x7f38000dd0 not ready to execute stalled on 0x7f88bc1b90 stage…

Thread 6 getting next capture
Thread 6 is waiting
Thread 7 is waiting
CC 101 session 60 completed step 4 in fiber 0x7f38000b20
Thread 8 is working on CC 102 session 60 globalID 102 step 4
CC 102 session 60 completed step 4 in fiber 0x7f38000dd0
CC 101 session 60 completed step 5 in fiber 0x7f38000b20
CC 101 session 60 completed step 6 in fiber 0x7f38000b20
CC 101 session 60 processing step 7 in fiber 0x7f38000b20
FiberScheduler: cc 101, session 60, fiber 0x7f38000b20 in progress…

Thread 1 getting next capture
Thread 9 is waiting
Thread 1 is waiting
CC 102 session 60 completed step 5 in fiber 0x7f38000dd0
CC 102 session 60 completed step 6 in fiber 0x7f38000dd0
CC 102 session 60 processing step 7 in fiber 0x7f38000dd0
FiberScheduler: cc 102, session 60, fiber 0x7f38000dd0 in progress…

Thread 10 is waiting
Thread 8 getting next capture
Thread 8 is waiting
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 4000x3000
writeFrameRate: INPUT frameRate:24.088320
writeGain: INPUT gainCtrl:a analogGain:1.000000
updateOutputSettings: OUTPUT frameRate:24.088320
updateOutputSettings: OUTPUT analogGain:1.122018
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate: INPUT frameRate:21.000000
writeExposure: INPUT expTime:0.029708
updateOutputSettings: OUTPUT frameRate:21.000000
updateOutputSettings: OUTPUT expTime:0.029708
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
SCF: Error BadParameter: Invalid GUID (in src/services/power/PowerServiceRequest.cpp, function setRequest(), line 96)
SCF: Error BadParameter: (propagating from src/services/capture/CaptureRecord.cpp, function makePowerRequest(), line 407)
SCF: Error BadParameter: (propagating from src/services/capture/CaptureRecord.cpp, function setPowerRequirements(), line 737)
SCF: Error BadParameter: (propagating from src/services/capture/CaptureRecord.cpp, function issueCapture(), line 449)
SCF: Error BadParameter: (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1293)
SCF: Error BadParameter: (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1124)
FiberScheduler: cc 101, session 60, fiber 0x7f38000b20 aborted in async operation

FiberScheduler: fiber 0x7f38000b20 exiting
Thread 11 is waiting
disposing CC 101 Session 60
SCF: Error Timeout: (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 637)
SCF: Error Timeout: (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 358)
SCF: Error BadParameter: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadParameter: Worker thread CaptureScheduler frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
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 0x7f38000f70 for CC 103 globalID 103 session 60
Thread 12 is working on CC 103 session 60 globalID 103 step 0
Fiber 0x7f38000f70 is aborting in CC 103 Session 60
FiberScheduler: cc 103 session 60, fiber 0x7f38000f70 aborted

FiberScheduler: fiber 0x7f38000f70 exiting
Thread 12 getting next capture
Thread 3 is waiting
Thread 2 is waiting
Thread 12 is waiting
=== gst-launch-1.0[7840]: Connection closed (7F8FEEC1D0)=== gst-launch-1.0[7840]: WARNING: CameraProvider was not destroyed before client connection terminated.=== gst-launch-1.0[7840]: The client may have abnormally terminated. Destroying CameraProvider…=== gst-launch-1.0[7840]: CameraProvider destroyed (0x7f88807e90)=== gst-launch-1.0[7840]: WARNING: Cleaning up 1 outstanding requests…=== gst-launch-1.0[7840]: WARNING: Cleaning up 1 outstanding streams…SCF: Error InvalidState: 1 buffers still pending during EGLStreamProducer destruction (propagating from src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 306)
SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function ~EGLStreamProducer(), line 50)
=== gst-launch-1.0[7840]: WARNING: Cleaning up 1 outstanding stream settings…=== gst-launch-1.0[7840]: WARNING: Cleaning up 1 outstanding sessions…waitForIdleLocked remaining request 102
SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 920)
(Argus) Error Timeout: (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 166)
^C

Please try below command before launch camera APP.

sudo service nvargus-daemon stop
sudo enableCamInfiniteTimeout=1 nvargus-daemon

It will get the same result as this log?


Is there same problem with the “GUID” or “ISP”?

Don’t know why ARGUS can’t capture frame data from MIPI bus.
Could you try to modify the driver to make gain/framerate/exposure CID as dummy function to clarify if sensor configure cause the problem.

Thank you for your help,i had solved the problem .

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