nvargus-deamon problem

Hi,
I used JetsonTX2i with CSI raw12 camera (li-imx264) with pipeline:

gst-launch-1.0 nvarguscamerasrc aeantibanding=0 ! video/x-raw(memory:NVMM),width=(int)2448,height=(int)2058,framerate=(fraction)25/1,format=(string)NV12 ! nvvidconv left=0 top=0 bottom=2058 right=2448 flip-method=2 ! video/x-raw,width=1280,height=960,format=I420 ! appsink

I am interested in hardware jpg encoding/decoding. But after installing MultimediaAPI, nvargus-daemon catches errors or even segfault.

Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
Created fiber 0x7f50000b20 for CC 101 globalID 101 session 0
Thread 1 is working on CC 101 session 0 globalID 101 step 0
CC 101 session 0 completed step 0 in fiber 0x7f50000b20
cc 101(1) session 0 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 0 completed step 1 in fiber 0x7f50000b20
NV AE and AfApply algorithms are active.
CC 101 session 0 completed step 2 in fiber 0x7f50000b20
CC 101 session 0 completed step 3 in fiber 0x7f50000b20
CC 101 session 0 completed step 4 in fiber 0x7f50000b20
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

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

Created fiber 0x7f50000dd0 for CC 102 globalID 102 session 0
Thread 2 is working on CC 102 session 0 globalID 102 step 0
CC 102 session 0 completed step 0 in fiber 0x7f50000dd0
cc 102(2) session 0 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 0 completed step 1 in fiber 0x7f50000dd0
NV AE and AfApply algorithms are active.
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

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

CC 102 session 0 completed step 2 in fiber 0x7f50000dd0
CC 102 session 0 completed step 3 in fiber 0x7f50000dd0
CC 102 session 0 completed step 4 in fiber 0x7f50000dd0
CC 101 session 0 completed step 5 in fiber 0x7f50000b20
CC 101 session 0 completed step 6 in fiber 0x7f50000b20
CC 101 session 0 completed step 7 in fiber 0x7f50000b20
CC 101 session 0 completed step 8 in fiber 0x7f50000b20
CC 101 session 0 processing step 9 in fiber 0x7f50000b20
FiberScheduler: cc 101, session 0, fiber 0x7f50000b20 in progress...

Thread 3 is waiting
Thread 1 getting next capture
Thread 1 is waiting
CC 102 session 0 completed step 5 in fiber 0x7f50000dd0
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 2448x2058
CC 102 session 0 completed step 6 in fiber 0x7f50000dd0
CC 102 session 0 completed step 7 in fiber 0x7f50000dd0
CC 102 session 0 completed step 8 in fiber 0x7f50000dd0
CC 102 session 0 processing step 9 in fiber 0x7f50000dd0
FiberScheduler: cc 102, session 0, fiber 0x7f50000dd0 in progress...

Thread 2 getting next capture
Thread 4 is waiting
Thread 2 is waiting
writeFrameRate:	INPUT frameRate:38.000000
writeGain:	INPUT gainCtrl:0 analogGain:0.000000
updateOutputSettings:	OUTPUT frameRate:38.000000
updateOutputSettings:	OUTPUT analogGain:1.000000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:30.000002
writeExposure:	INPUT expTime:0.033330
updateOutputSettings:	OUTPUT frameRate:30.000002
updateOutputSettings:	OUTPUT expTime:0.033330
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for ISP 0:
	req[0]: output1 width=320, output1 height=200, output1 Bpp=16
	req[0]: output2 width=320, output2 height=200, output2 Bpp=16
	req[0]: input width=2448, input height=2058, input Bpp=12
	req[0]: output width=164, output height=138, output Bpp=16
	req[0]: input fps=38
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=146466 KB/s, non-iso bw=0 KB/s
	req[450]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=146466 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalIsoBw=146466
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:38.000000
updateOutputSettings:	OUTPUT frameRate:38.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:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:30.000002
updateOutputSettings:	OUTPUT frameRate:30.000002
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for ISP 0:
	req[0]: output1 width=320, output1 height=200, output1 Bpp=16
	req[0]: output2 width=320, output2 height=200, output2 Bpp=16
	req[0]: input width=2448, input height=2058, input Bpp=12
	req[0]: output width=164, output height=138, output Bpp=16
	req[0]: input fps=38
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=146466 KB/s, non-iso bw=0 KB/s
	req[410]: timeout=0
	req[1]: output1 width=320, output1 height=200, output1 Bpp=16
	req[1]: output2 width=640, output2 height=538, output2 Bpp=13
	req[1]: input width=2448, input height=2058, input Bpp=12
	req[1]: output width=2448, output height=2058, output Bpp=12
	req[1]: input fps=38
	req[1]: guID=0, stage type=SensorIspCapture
	req[1]: clock=0 Hz, iso bw=557829 KB/s, non-iso bw=0 KB/s
	req[450]: timeout=0
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for ISP 0:
	req[0]: output1 width=320, output1 height=200, output1 Bpp=16
	req[0]: output2 width=320, output2 height=200, output2 Bpp=16
	req[0]: input width=2448, input height=2058, input Bpp=12
	req[0]: output width=164, output height=138, output Bpp=16
	req[0]: input fps=38
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=146466 KB/s, non-iso bw=0 KB/s
	req[406]: timeout=0
	req[1]: output1 width=320, output1 height=200, output1 Bpp=16
	req[1]: output2 width=640, output2 height=538, output2 Bpp=13
	req[1]: input width=2448, input height=2058, input Bpp=12
	req[1]: output width=2448, output height=2058, output Bpp=12
	req[1]: input fps=38
	req[1]: guID=0, stage type=SensorIspCapture
	req[1]: clock=0 Hz, iso bw=557829 KB/s, non-iso bw=0 KB/s
	req[446]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=557829 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalIsoBw=557829
Created fiber 0x7f50000f70 for CC 103 globalID 103 session 0
Thread 5 is working on CC 103 session 0 globalID 103 step 0
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

CC 103 session 0 completed step 0 in fiber 0x7f50000f70
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

cc 103(3) session 0 runCount=2 runIspOut=0, latest ccId=0
CC 103 session 0 completed step 1 in fiber 0x7f50000f70
NV AE and AfApply algorithms are active.
CC 103 session 0 completed step 2 in fiber 0x7f50000f70
CC 103 session 0 completed step 3 in fiber 0x7f50000f70
CC 103 session 0 completed step 4 in fiber 0x7f50000f70
CC 103 session 0 completed step 5 in fiber 0x7f50000f70
CC 103 session 0 completed step 6 in fiber 0x7f50000f70
CC 103 session 0 completed step 7 in fiber 0x7f50000f70
CC 103 session 0 completed step 8 in fiber 0x7f50000f70
CC 103 session 0 processing step 9 in fiber 0x7f50000f70
FiberScheduler: cc 103, session 0, fiber 0x7f50000f70 in progress...

Thread 5 getting next capture
Thread 5 is waiting
Thread 6 is waiting
NvViErrorDecode Stream 0.0 failed: ts 538196203456 frame 1 error 2 data 0x00400060
NvViErrorDecode CaptureError: CsimuxFrameError (2)
NvViErrorDecode See https://wiki.nvidia.com/wmpwiki/index.php/Camera_Debugging/CaptureError_debugging for more information and links to documents.
CsimuxFrameError_Regular : 0x00400060
    Stream ID                [ 2: 0]: 0
        
    VPR state from fuse block    [ 3]: 0
        
    Frame end (FE)              [ 5]: 1
        A frame end has been found on a regular mode stream.
    CSI_FAULT                   [ 6]: 1
        An FE packet was found and marked with a CSI Error
    CSI_CODE                 [25:20]: 0x4
        Check the CSI specification for the meaning. See https://wiki.nvidia.com/wmpwiki/index.php/Camera_Debugging/CaptureError_debugging#CSI_CODE
NvViCsiAbort - close channel, release syncpts
captureErrorCallback Stream 0.0 capture 1 failed: ts 538196203456 frame 1 error 2 data 0x00400060

SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameStart(), line 624)
SCF: Error BadValue:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 478)
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 0x7f50001110 for CC 104 globalID 104 session 0
Thread 7 is working on CC 104 session 0 globalID 104 step 0
Fiber 0x7f50001110 is aborting in CC 104 Session 0
FiberScheduler: cc 104 session 0, fiber 0x7f50001110 aborted

FiberScheduler: fiber 0x7f50001110 exiting
Thread 7 getting next capture
Thread 8 is waiting
Thread 9 is waiting
Thread 7 is waiting
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/NvIspHw.cpp, function waitIspStatsFinished(), line 561)
SCF: Error InvalidState:  (propagating from src/services/capture/NvViCsiHw.cpp, function startCapture(), line 502)
FiberScheduler: cc 101, session 0, fiber 0x7f50000b20 aborted in async operation

SCF: Error InvalidState:  (propagating from src/services/capture/DeviceRecordNv.cpp, function doCSItoISPCapture(), line 110)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureRecord.cpp, function doCSItoISPCapture(), line 547)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureRecord.cpp, function issueCapture(), line 460)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1276)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1107)
SCF: Error OverFlow:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function returnRequestPoolCaptures(), line 1226)
FiberScheduler: fiber 0x7f50000b20 exiting
FiberScheduler: cc 101, session 0, fiber 0x7f50000b20 aborted in async operation

SCF: Error OverFlow:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function checkCaptureComplete(), line 1198)
SCF: Error BadParameter: Fiber not present (in src/components/CaptureContainerImpl.cpp, function detachFiber(), line 597)
SCF: Error BadParameter: CC not being processed (in src/api/Session.cpp, function processingEnding(), line 1080)
SCF: Error OverFlow:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
Thread 10 is waiting
SCF: Error OverFlow: Worker thread CaptureScheduler checkFramePending failed (in src/common/Utils.cpp, function workerThread(), line 133)
SCF: Error InvalidState: Active fiber not found (in src/components/FiberScheduler.cpp, function endOfLife(), line 548)
FiberScheduler: fiber 0x7f50000b20 exiting
disposing CC 101 Session 0
Thread 11 is waiting
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 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 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 InvalidState:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error InvalidState: Worker thread CaptureScheduler frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/NvIspHw.cpp, function waitIspStatsFinished(), line 561)
SCF: Error Timeout: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 990)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 478)
SCF: Error Timeout: ISP port 1 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 501)
SCF: Error Timeout: ISP port 2 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 512)
SCF: Error Timeout:  (propagating from src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 519)
SCF: Error Timeout:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error Timeout: Worker thread IspHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 133)
=== gst-launch-1.0[7664]: Connection closed (7FAD29C1D0)=== gst-launch-1.0[7664]: WARNING: CameraProvider was not destroyed before client connection terminated.=== gst-launch-1.0[7664]:          The client may have abnormally terminated. Destroying CameraProvider...=== gst-launch-1.0[7664]: CameraProvider destroyed (0x7fa86d0cb0)=== gst-launch-1.0[7664]: WARNING: Cleaning up 1 outstanding requests...=== gst-launch-1.0[7664]: WARNING: Cleaning up 1 outstanding streams...SCF: Error InvalidState: 2 buffers still pending during EGLStreamProducer destruction (propagating from src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 305)
SCF: Error InvalidState:  (propagating from src/services/gl/EGLStreamProducer.cpp, function ~EGLStreamProducer(), line 50)
=== gst-launch-1.0[7664]: WARNING: Cleaning up 1 outstanding stream settings...=== gst-launch-1.0[7664]: WARNING: Cleaning up 1 outstanding sessions...waitForIdleLocked remaining request 103 
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)

v4l2-ctl is fine:

v4l2-ctl -d /dev/video0 -w --verbose --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test2.raw
nvbuf_utils: Could not get EGL display connection
nvbuf_utils: Could not get EGL display connection
Opening in BLOCKING MODE 
VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_REQBUFS: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_STREAMON: ok
	Index    : 3
	Type     : Video Capture
	Flags    : mapped
	Field    : None
	Sequence : 3
	Length   : 10075968
	Bytesused: 10075968
	Timestamp: 0.000000s (Monotonic, End-of-Frame)

VIDIOC_STREAMOFF: ok

Segmentation fault (core dumped)

=== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...=== gst-launch-1.0[7882]: Connection established (7FB26FA1D0)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(0x7fac63c140)
getInstance: s_instance(0x7fac63c140)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7fac60b740)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7fac63d5e0)
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: imx265_rear_imx265
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx265 2-0010
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx265_rear_imx265 position0
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 0 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7fac5e0430
NvPclHwInitializeModule: allocate overrides pathname @ 0x7fac63e500
NvPclHwInitializeModule: allocate overrides pathname @ 0x7fac5f0950
NvPclHwInitializeModule: allocate overrides pathname @ 0x7fac3649b0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7fac5e4f70
NvPclHwInitializeModule: allocate overrides pathname @ 0x7fac5e4ee0
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/imx265_rear_imx265.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/imx265_rear_imx265.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx265_rear_imx265.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/imx265_rear_imx265.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx265_rear_imx265.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/imx265_rear_imx265.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/imx265_rear_imx265.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx265_rear_imx265.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx265_rear_imx265.bin] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_sensor)
NvPclCreateDriver: Found a Driver name match (v4l2_sensor)
NvPclConnectDrivers: hImager was NULL, creating new imager
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
OFDPropertyGetString: could not read property [use_sensor_mode_id]
OFDPropertyGetString: could not read property [delayed_gain]
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[7882]: CameraProvider initialized (0x7fac6e9800)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

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
X11 connection rejected because of wrong authentication.
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=0, 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: 2448x2058 BayerS16RGGB 38.0fps
      | output 0: 2448x2058 BL U8_V8_ER 420SP
      | inputClipRect 0: (0.00,0.00, 1.00,1.00)

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 5
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApply
      +  4: AcMergeStage
          | IspIn: [2448, 2058]
          | IspOut0: [2448, 2058]
          | IspOut1: [0, 0]
          | IspOut2: [640, 538]
      +  5: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x538 Pitch Y8_ER 420
      +  6: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 2448x1 Pitch NonColor8
      +  7: TempBufferAcquireStage
          | Buffer Index: 3
          | BufferRequirements: 524288x1 Pitch NonColor8
      +  8: SensorISPCaptureStage
          | Source GUID: 0
          | Output A Buffer: 0
          | Output Thumb Buffer: 1
          | SensorMetadata Buffer: 2
          | Output IspStats Buffer: 3
      +  9: StatsUpdateStage
          | Output Meta Buffer: 2
          | Output IspStats Buffer: 3
      + 10: BufferReturnStage
          | Output A Buffer: 2
      + 11: BufferReturnStage
          | Output A Buffer: 3
      + 12: AcPluginStage
          | operation: opAnalyze
      + 13: AfAnalysisStage
      + 14: MonitorStage
      + 15: ExifStage
      + 16: MakerNoteStage
      + 17: BufferReturnStage
          | Output A Buffer: 0
      + 18: MetadataReturnStage
      + 19: PerfStatsStage

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

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

Created fiber 0x7f54000b20 for CC 101 globalID 101 session 0
Thread 1 is working on CC 101 session 0 globalID 101 step 0
Created fiber 0x7f54000dd0 for CC 102 globalID 102 session 0
Thread 2 is working on CC 102 session 0 globalID 102 step 0
CC 102 session 0 stalled step 0 in fiber 0x7f54000dd0
FiberScheduler: cc 102, session 0 fiber 0x7f54000dd0 not ready to execute stalled on 0x7fac8033d0 stage...
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview

NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

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

Thread 2 getting next capture
Thread 3 is waiting
CC 101 session 0 completed step 0 in fiber 0x7f54000b20
Thread 2 is working on CC 102 session 0 globalID 102 step 0
Thread 4 is waiting
cc 101(1) session 0 runCount=0 runIspOut=0, latest ccId=0
CC 102 session 0 completed step 0 in fiber 0x7f54000dd0
CC 101 session 0 completed step 1 in fiber 0x7f54000b20
cc 102(2) session 0 runCount=1 runIspOut=0, latest ccId=0
NV AE and AfApply algorithms are active.
CC 102 session 0 completed step 1 in fiber 0x7f54000dd0
CC 102 session 0 stalled step 2 in fiber 0x7f54000dd0
FiberScheduler: cc 102, session 0 fiber 0x7f54000dd0 not ready to execute stalled on 0x7fac6ed650 stage...

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

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

Thread 1 getting next capture
Thread 9 is waiting
Thread 1 is waiting
CC 102 session 0 completed step 7 in fiber 0x7f54000dd0
CC 102 session 0 processing step 8 in fiber 0x7f54000dd0
FiberScheduler: cc 102, session 0, fiber 0x7f54000dd0 in progress...

Thread 8 getting next capture
Thread 10 is waiting
Thread 8 is waiting
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 2448x2058
writeFrameRate:	INPUT frameRate:38.000000
writeGain:	INPUT gainCtrl:0 analogGain:0.000000
updateOutputSettings:	OUTPUT frameRate:38.000000
updateOutputSettings:	OUTPUT analogGain:1.000000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:25.000000
writeExposure:	INPUT expTime:0.033331
updateOutputSettings:	OUTPUT frameRate:25.000000
updateOutputSettings:	OUTPUT expTime:0.033330
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for ISP 0:
	req[0]: output1 width=320, output1 height=200, output1 Bpp=16
	req[0]: output2 width=320, output2 height=200, output2 Bpp=16
	req[0]: input width=2448, input height=2058, input Bpp=12
	req[0]: output width=164, output height=138, output Bpp=16
	req[0]: input fps=38
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=146466 KB/s, non-iso bw=0 KB/s
	req[450]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=146466 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalIsoBw=146466
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:38.000000
updateOutputSettings:	OUTPUT frameRate:38.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:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:25.000000
updateOutputSettings:	OUTPUT frameRate:25.000000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for ISP 0:
	req[0]: output1 width=320, output1 height=200, output1 Bpp=16
	req[0]: output2 width=320, output2 height=200, output2 Bpp=16
	req[0]: input width=2448, input height=2058, input Bpp=12
	req[0]: output width=164, output height=138, output Bpp=16
	req[0]: input fps=38
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=146466 KB/s, non-iso bw=0 KB/s
	req[410]: timeout=0
	req[1]: output1 width=320, output1 height=200, output1 Bpp=16
	req[1]: output2 width=640, output2 height=538, output2 Bpp=13
	req[1]: input width=2448, input height=2058, input Bpp=12
	req[1]: output width=2448, output height=2058, output Bpp=12
	req[1]: input fps=38
	req[1]: guID=0, stage type=SensorIspCapture
	req[1]: clock=0 Hz, iso bw=557829 KB/s, non-iso bw=0 KB/s
	req[450]: timeout=0
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for ISP 0:
	req[0]: output1 width=320, output1 height=200, output1 Bpp=16
	req[0]: output2 width=320, output2 height=200, output2 Bpp=16
	req[0]: input width=2448, input height=2058, input Bpp=12
	req[0]: output width=164, output height=138, output Bpp=16
	req[0]: input fps=38
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=146466 KB/s, non-iso bw=0 KB/s
	req[406]: timeout=0
	req[1]: output1 width=320, output1 height=200, output1 Bpp=16
	req[1]: output2 width=640, output2 height=538, output2 Bpp=13
	req[1]: input width=2448, input height=2058, input Bpp=12
	req[1]: output width=2448, output height=2058, output Bpp=12
	req[1]: input fps=38
	req[1]: guID=0, stage type=SensorIspCapture
	req[1]: clock=0 Hz, iso bw=557829 KB/s, non-iso bw=0 KB/s
	req[446]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=557829 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalIsoBw=557829
Created fiber 0x7f54000f70 for CC 103 globalID 103 session 0Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

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

Thread 11 is working on CC 103 session 0 globalID 103 step 0

CC 103 session 0 completed step 0 in fiber 0x7f54000f70
cc 103(3) session 0 runCount=2 runIspOut=0, latest ccId=0
CC 103 session 0 completed step 1 in fiber 0x7f54000f70
NV AE and AfApply algorithms are active.
CC 103 session 0 completed step 2 in fiber 0x7f54000f70
CC 103 session 0 completed step 3 in fiber 0x7f54000f70
CC 103 session 0 completed step 4 in fiber 0x7f54000f70
CC 103 session 0 completed step 5 in fiber 0x7f54000f70
CC 103 session 0 completed step 6 in fiber 0x7f54000f70
CC 103 session 0 completed step 7 in fiber 0x7f54000f70
CC 103 session 0 processing step 8 in fiber 0x7f54000f70
FiberScheduler: cc 103, session 0, fiber 0x7f54000f70 in progress...

Thread 11 getting next capture
Thread 12 is waiting
Thread 11 is waiting
NvViErrorDecode Stream 0.0 failed: ts 371540416736 frame 1 error 2 data 0x00400060
NvViErrorDecode CaptureError: CsimuxFrameError (2)
NvViErrorDecode See https://wiki.nvidia.com/wmpwiki/index.php/Camera_Debugging/CaptureError_debugging for more information and links to documents.
CsimuxFrameError_Regular : 0x00400060
    Stream ID                [ 2: 0]: 0
        
    VPR state from fuse block    [ 3]: 0
        
    Frame end (FE)              [ 5]: 1
        A frame end has been found on a regular mode stream.
    CSI_FAULT                   [ 6]: 1
        An FE packet was found and marked with a CSI Error
    CSI_CODE                 [25:20]: 0x4
        Check the CSI specification for the meaning. See https://wiki.nvidia.com/wmpwiki/index.php/Camera_Debugging/CaptureError_debugging#CSI_CODE
NvViCsiAbort - close channel, release syncpts
captureErrorCallback Stream 0.0 capture 3 failed: ts 371540416736 frame 1 error 2 data 0x00400060

SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameStart(), line 624)
SCF: Error BadValue:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 478)
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 0x7f54001110 for CC 104 globalID 104 session 0
Thread 3 is working on CC 104 session 0 globalID 104 step 0
Fiber 0x7f54001110 is aborting in CC 104 Session 0
FiberScheduler: cc 104 session 0, fiber 0x7f54001110 aborted

FiberScheduler: fiber 0x7f54001110 exiting
Thread 3 getting next capture
Thread 4 is waiting
Thread 5 is waiting
Thread 3 is waiting
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/NvIspHw.cpp, function waitIspStatsFinished(), line 561)
FiberScheduler: cc 101, session 0, fiber 0x7f54000b20 aborted in async operation
SCF: Error InvalidState:  (propagating from src/services/capture/NvViCsiHw.cpp, function startCapture(), line 502)
SCF: Error InvalidState:  (propagating from src/services/capture/DeviceRecordNv.cpp, function doCSItoISPCapture(), line 110)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureRecord.cpp, function doCSItoISPCapture(), line 547)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureRecord.cpp, function issueCapture(), line 460)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1276)
SCF: Error InvalidState:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1107)
SCF: Error OverFlow:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function returnRequestPoolCaptures(), line 1226)

FiberScheduler: cc 101, session 0, fiber 0x7f54000b20 aborted in async operation

SCF: Error BadParameter: Fiber not present (in src/components/CaptureContainerImpl.cpp, function detachFiber(), line 597)
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 Timeout:  (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 637)
SCF: Error Timeout:  (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 358)
FiberScheduler: fiber 0x7f54000b20 exiting
SCF: Error InvalidState:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error InvalidState: Worker thread CaptureScheduler frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
Segmentation fault (core dumped)

Is it something like this?:
https://devtalk.nvidia.com/default/topic/1065378/

Hello s.burgov,

The csimuxerror may be due to improper lane configuration, check the number of lanes the camera actually outputs and the <b>num_lanes</b> entry given in the device tree. Also, if 4 lane you can only use ports 0, 2 or 4.

I can use pipeline without MultimdiaAPI.
Anyway here is my device tree, num_lanes params are correct.

/ {    
        host1x {
                vi@15700000 {
                        num-channels = <2>;
                        ports {
                                #address-cells = <1>;
                                #size-cells = <0>;
                                
                                port@0 {
                                        reg = <0>;
                                        tfm_a_vi_in: endpoint {
                                                port-index = <0>;
                                                bus-width = <2>;
                                                vc-id = <1>;
                                                remote-endpoint = <&tfm_a_csi_out>;
                                        };
                                };
                                
                                port@1 {
                                        reg = <1>;
                                        imx265_b_vi_in: endpoint {
                                                port-index = <1>;
                                                bus-width = <2>;
                                                remote-endpoint = <&imx265_b_csi_out>;
                                        };
                                };
                        };
                };

                nvcsi@150c0000 {
                        num-channels = <2>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        
                        channel@0 {
                                reg = <0>;
                                ports {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
                                        port@0 {
                                                reg = <0>;
                                                tfm_a_csi_in: endpoint@0 {
                                                        port-index = <0>;
                                                        bus-width = <2>;
                                                        remote-endpoint = <&tfm_a_out>;
                                                };
                                        };
                                        port@1 {
                                                reg = <1>;
                                                tfm_a_csi_out: endpoint@1 {
                                                        remote-endpoint = <&tfm_a_vi_in>;
                                                };
                                        };
                                };
                        };
                        
                        channel@1 {
                                reg = <1>;
                                ports {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
                                        port@0 {
                                                reg = <0>;
                                                imx265_b_csi_in: endpoint@0 {
                                                        port-index = <1>;
                                                        bus-width = <2>;
                                                        remote-endpoint = <&imx265_b_out>;
                                                };
                                        };
                                        port@1 {
                                                reg = <1>;
                                                imx265_b_csi_out: endpoint@1 {
                                                        remote-endpoint = <&imx265_b_vi_in>;
                                                };
                                        };
                                };
                        };
                };
        };


        i2c@3180000 {
                
                tfm_a@20 {
                        compatible = "nvidia,thermoframe";
                        reg = <0x20>;
                        devnode = "video0";

                        /* Physical dimensions of sensor */
                        physical_w = "15.0";
                        physical_h = "12.5";

                        sensor_model ="tfm";
                        /* Define any required hw resources needed by driver */
                        /* ie. clocks, io pins, power sources */

                        /* Defines number of frames to be dropped by driver internally after applying */
                        /* sensor crop settings. Some sensors send corrupt frames after applying */
                        /* crop co-ordinates */
                        post_crop_frame_drop = "0";

                        /* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
                        use_decibel_gain = "true";

                        /* if true, delay gain setting by one frame to be in sync with exposure */
                        //	delayed_gain = "true";

                        /* enable CID_SENSOR_MODE_ID for sensor modes selection */
                        //use_sensor_mode_id = "true";

                        mode0 {
                                mclk_khz = "37125";
                                num_lanes = "2";
                                tegra_sinterface = "serial_a";
                                phy_mode = "DPHY";
                                discontinuous_clk = "no";
                                dpcm_enable = "false";
                                cil_settletime = "0";
                                dynamic_pixel_bit_depth = "16";
                                csi_pixel_bit_depth = "16";
                                mode_type = "yuv";
                                pixel_phase = "uyvy";

                                active_w = "768";
                                active_h = "576";
                                readout_orientation = "0";
                                line_length = "768";
                                inherent_gain = "1";
                                mclk_multiplier = "20";
                                pix_clk_hz = "120000000";
                                //serdes_pix_clk_hz = "100000000";

                                gain_factor = "10";
                                min_gain_val = "0"; /* 0dB */
                                max_gain_val = "480"; /* 48dB */
                                step_gain_val = "1"; /* 0.3 */
                                default_gain = "0";
                                min_hdr_ratio = "1";
                                max_hdr_ratio = "1";
                                framerate_factor = "1000000";
                                min_framerate = "1500000"; /* 1.5 */
                                max_framerate = "38000000"; /* 30 */
                                step_framerate = "1";
                                default_framerate = "16000000";
                                exposure_factor = "1000000";
                                min_exp_time = "30"; /* us */
                                max_exp_time = "660000"; /* us */
                                step_exp_time = "1";
                                default_exp_time = "33334";/* us */
                                embedded_metadata_height = "0";
                        };

                        ports {
                                #address-cells = <1>;
                                #size-cells = <0>;
                                port@0 {
                                        reg = <0>;
                                        tfm_a_out: endpoint {
                                                port-index = <0>;
                                                bus-width = <2>;
                                                remote-endpoint = <&tfm_a_csi_in>;
                                        };
                                };
                        };
                };

        };
        i2c@c240000 {
                
                fpga_b: fpga_b@3c {
                        compatible = "nvidia,fpga";
                        reg = <0x3c>;
                        channel = "b";
                };

                imx265_b@10 {
                        compatible = "nvidia,imx265";

                        reg = <0x10>;
                        devnode = "video1";

                        /* Physical dimensions of sensor */
                        physical_w = "15.0";
                        physical_h = "12.5";

                        sensor_model ="imx265";
                        /* Define any required hw resources needed by driver */
                        /* ie. clocks, io pins, power sources */

                        clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH2>,
                                 <&tegra_car TEGRA186_CLK_PLLP_OUT0>;
                        clock-names = "extperiph2", "pllp_grtba";
                        mclk = "extperiph2";
                        reset-gpios = <&tegra_main_gpio TEGRA_MAIN_GPIO(R, 1) GPIO_ACTIVE_HIGH>;

                        clock-frequency = <37125000>;
                        nvidia,fpga-device = <&fpga_b>;
                        reset_register = "1";

                        /* Defines number of frames to be dropped by driver internally after applying */
                        /* sensor crop settings. Some sensors send corrupt frames after applying */
                        /* crop co-ordinates */
                        post_crop_frame_drop = "0";

                        /* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
                        use_decibel_gain = "true";

                        sensor_operation_mode = "master";
                        /* if true, delay gain setting by one frame to be in sync with exposure */
                        //    delayed_gain = "true";

                        /* enable CID_SENSOR_MODE_ID for sensor modes selection */
                        //use_sensor_mode_id = "true";

                        mode0 {/*mode IMX265_MODE_1920X1080_CROP_30FPS*/
                                mclk_khz = "37125";
                                num_lanes = "2";
                                tegra_sinterface = "serial_b";
                                phy_mode = "DPHY";
                                discontinuous_clk = "no";
                                dpcm_enable = "false";
                                cil_settletime = "0";
                                dynamic_pixel_bit_depth = "12";
                                csi_pixel_bit_depth = "12";
                                mode_type = "bayer";
                                pixel_phase = "rggb";

                                active_w = "2448";
                                active_h = "2058";
                                readout_orientation = "0";
                                line_length = "2656";
                                inherent_gain = "1";
                                mclk_multiplier = "20";
                                pix_clk_hz = "198000000";

                                gain_factor = "10";
                                min_gain_val = "0"; /* 0dB */
                                max_gain_val = "480"; /* 48dB */
                                step_gain_val = "1"; /* 0.3 */
                                default_gain = "0";
                                min_hdr_ratio = "1";
                                max_hdr_ratio = "1";
                                framerate_factor = "1000000";
                                min_framerate = "1500000"; /* 1.5 */
                                max_framerate = "38000000"; /* 30 */
                                step_framerate = "1";
                                default_framerate = "16000000";
                                exposure_factor = "1000000";
                                min_exp_time = "30"; /* us */
                                max_exp_time = "660000"; /* us */
                                step_exp_time = "1";
                                default_exp_time = "33334";/* us */
                                embedded_metadata_height = "0";
                        };

                        ports {
                                #address-cells = <1>;
                                #size-cells = <0>;
                                port@0 {
                                        reg = <0>;
                                        imx265_b_out: endpoint {
                                                port-index = <1>;
                                                bus-width = <2>;
                                                remote-endpoint = <&imx265_b_csi_in>;
                                        };
                                };
                        };
                };

        }; 
};
/ {
        tegra-camera-platform {
                compatible = "nvidia, tegra-camera-platform";
                /**
                * Physical settings to calculate max ISO BW
                *
                * num_csi_lanes = <>;
                * Total number of CSI lanes when all cameras are active
                *
                * max_lane_speed = <>;
                * Max lane speed in Kbit/s
                *
                * min_bits_per_pixel = <>;
                * Min bits per pixel
                *
                * vi_peak_byte_per_pixel = <>;
                * Max byte per pixel for the VI ISO case
                *
                * vi_bw_margin_pct = <>;
                * Vi bandwidth margin in percentage
                *
                * max_pixel_rate = <>;
                * Max pixel rate in Kpixel/s for the ISP ISO case
                *
                * isp_peak_byte_per_pixel = <>;
                * Max byte per pixel for the ISP ISO case
                *
                * isp_bw_margin_pct = <>;
                * Isp bandwidth margin in percentage
                */
                num_csi_lanes = <4>;
                max_lane_speed = <1500000>;
                min_bits_per_pixel = <10>;
                vi_peak_byte_per_pixel = <2>;
                vi_bw_margin_pct = <25>;
                isp_peak_byte_per_pixel = <5>;
                isp_bw_margin_pct = <25>;

                /**
                 * The general guideline for naming badge_info contains 3 parts, and is as follows,
                 * The first part is the camera_board_id for the module; if the module is in a FFD
                 * platform, then use the platform name for this part.
                 * The second part contains the position of the module, ex. "rear" or "front".
                 * The third part contains the last 6 characters of a part number which is found
                 * in the module's specsheet from the vender.
                 */
                modules {
                        
                        module0 {
                                badge = "tfm_a_front";
                                position = "front";
                                orientation = "1";
                                drivernode0 {
                                        /* Declare PCL support driver (classically known as guid)  */
                                        pcl_id = "v4l2_sensor";
                                        /* Driver v4l2 device name */
                                        devname = "tfm 2-0020";
                                        /* Declare the device-tree hierarchy to driver instance */
                                        proc-device-tree = "/proc/device-tree/i2c@3180000/tfm_a@20";
                                };
                        };
    
                        
                        module1 {
                                badge = "imx265_b_down";
                                position = "down";
                                orientation = "1";
                                drivernode0 {
                                        /* Declare PCL support driver (classically known as guid)  */
                                        pcl_id = "v4l2_sensor";
                                        /* Driver v4l2 device name */
                                        devname = "imx265 1-0010";
                                        /* Declare the device-tree hierarchy to driver instance */
                                        proc-device-tree = "/proc/device-tree/i2c@c240000/imx265_b@10";
                                };
                        };
    
                };
        };
};

It works perfect without Multimedia API.
Could you give any solution?

Does nvgstcapture-1.0 working?

After a month of waiting i tryed install MultimediaAPI again. Arguscamerascr is working ok without any changes.