Hi All
looking for help about a strange issue: system works well at 4K, while gstreamer freezes the system at 2K.
We have a board Auvidea JN30B with a Jetson Nano (production) and a Framos IMX415 sensor;
we ported the original Framos driver to this platform, configured the sensor as CSI-2 serial / 4lane and we can successfully capture images 3840x2160 at 25-35 fps or more, both with gstreamer and V4L2;
when we try to configure the system to work with 1944x1096 (H/V 2/2-line binning mode) at 30fps, we can still capture with V4L2 but if we run gstreamer the system freezes and then reboots
This is how we configure the DT (we edited the working one for 4K and always have only one mode at the time):
mode0 {
mclk_khz = "37125";
num_lanes = "4";
tegra_sinterface = "serial_c";
discontinuous_clk = "no";
cil_settletime = "0";
active_w = "1944";
active_h = "1096";
dynamic_pixel_bit_depth = "12";
csi_pixel_bit_depth = "12";
mode_type = "bayer";
pixel_phase = "gbrg";
readout_orientation = "0";
line_length = "4400";
inherent_gain = "1";
pix_clk_hz = "297000000";
min_gain_val = "1.0";
max_gain_val = "72.0";
min_hdr_ratio = "1";
max_hdr_ratio = "64";
min_framerate = "1.462526";
max_framerate = "30";
min_exp_time = "1";
max_exp_time = "65535";
embedded_metadata_height = "1";
};
Here how we capture with V4L2:
v4l2-ctl -d /dev/video1 --set-ctrl=data_rate=4
v4l2-ctl -d /dev/video1 --verbose --set-fmt-video=width=1944,height=1096,pixelformat=GB12 --set-ctrl bypass_mode=0 --stream-mmap --stream-skip=0 --stream-count=1 --stream-to=frame.raw
This is the log produced:
VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 1952/1096
Pixel Format : 'GB12'
Field : None
Bytes per Line : 3904
Size Image : 4278784
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
VIDIOC_REQBUFS: 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 : 0
Type : Video Capture
Flags : mapped
Field : None
Sequence : 0
Length : 4278784
Bytesused: 4278784
Timestamp: 0.000000s (Monotonic, End-of-Frame)
VIDIOC_STREAMOFF: ok
This the gstreamer command:
v4l2-ctl -d /dev/video1 --set-ctrl=data_rate=4
gst-launch-1.0 --gst-debug-level=2 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=1944, height=1096, format=(string)NV12, framerate=(fraction)30/1' ! nvoverlaysink overlay-y=100 overlay-x=200 overlay-w=1558 overlay-h=876 overlay=1 -e
Here its log:
0:00:00.607358627 7506 0x5582fff780 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/maselettronica/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1944 x 1096 FR = 29,999999 fps Duration = 33333334 ; Analog Gain range min 1,000000, max 72,000000; Exposure Range min 1000, max 65535000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 1944 H = 1096
seconds to Run = 0
Frame Rate = 29,999999
GST_ARGUS: PowerService: requested_clock_Hz=13982220
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Because of the freezing/reboot I cannot provide a trace and I have only a partial log from nvargus-daemon:
==== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...
=== gst-launch-1.0[7506]: Connection established (7F7A5E31D0)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 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(0x7f747d95b0)
getInstance: s_instance(0x7f747d95b0)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7f747dbbb0)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7f747e1110)
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
Services are started
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
=== gst-launch-1.0[7506]: CameraProvider initialized (0x7f7482a6a0)sourceRegistry[0] assigned
ispRegistry[0] assigned
Using Source GUID 0
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
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
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
InstructionList:
+ GraphSettings
| SensorMode: 1944x1096 BayerS16GBRG 30.0fps
| output 0: 1944x1096 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: [1944, 1096]
| IspOut0: [1944, 1096]
| IspOut1: [0, 0]
| IspOut2: [0, 0]
+ 5: TempBufferAcquireStage
| Buffer Index: 2
| BufferRequirements: 1944x1 Pitch NonColor8
+ 6: TempBufferAcquireStage
| Buffer Index: 3
| BufferRequirements: 524288x1 Pitch NonColor8
+ 7: SensorISPCaptureStage
| Source GUID: 0
| Output A Buffer: 0
| SensorMetadata Buffer: 2
| Output IspStats Buffer: 3
+ 8: StatsBufferAcquireStage
| Buffer Index: 1
| BufferRequirements: 640x362 Pitch Y8_ER 420
+ 9: BlitStage
| Input Buffer: 0
| Output Buffer: 1
| Filter: Nearest
| Transform: None
| Src Rect: Not used
| Dst Rect: Not used
+ 10: StatsUpdateStage
| Output Meta Buffer: 2
| Output IspStats Buffer: 3
+ 11: BufferReturnStage
| Output A Buffer: 2
+ 12: BufferReturnStage
| Output A Buffer: 3
+ 13: AcPluginStage
| operation: opAnalyze
+ 14: AfAnalysisStage
+ 15: MonitorStage
+ 16: ExifStage
+ 17: MakerNoteStage
+ 18: BufferReturnStage
| Output A Buffer: 0
+ 19: MetadataReturnStage
+ 20: PerfStatsStage
Created fiber 0x7f24000b20 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 0x7f24000b20
cc 101(1) session 0 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 0 completed step 1 in fiber 0x7f24000b20
NV AE and AfApply algorithms are active.
CC 101 session 0 completed step 2 in fiber 0x7f24000b20
CC 101 session 0 completed step 3 in fiber 0x7f24000b20
CC 101 session 0 completed step 4 in fiber 0x7f24000b20
CC 101 session 0 completed step 5 in fiber 0x7f24000b20
CC 101 session 0 completed step 6 in fiber 0x7f24000b20
CC 101 session 0 processing step 7 in fiber 0x7f24000b20
FiberScheduler: cc 101, session 0, fiber 0x7f24000b20 in progress...
Thread 1 getting next capture
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 is waiting
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 1 is waiting
Created fiber 0x7f24000dd0 for CC 102 globalID 102 session 0
Thread 3 is working on CC 102 session 0 globalID 102 step 0
CC 102 session 0 completed step 0 in fiber 0x7f24000dd0
cc 102(2) session 0 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 0 completed step 1 in fiber 0x7f24000dd0
NV AE and AfApply algorithms are active.
CC 102 session 0 completed step 2 in fiber 0x7f24000dd0
CC 102 session 0 completed step 3 in fiber 0x7f24000dd0
CC 102 session 0 completed step 4 in fiber 0x7f24000dd0
CC 102 session 0 completed step 5 in fiber 0x7f24000dd0
CC 102 session 0 completed step 6 in fiber 0x7f24000dd0
CC 102 session 0 processing step 7 in fiber 0x7f24000dd0
FiberScheduler: cc 102, session 0, fiber 0x7f24000dd0 in progress...
Thread 3 getting next capture
Thread 4 is waiting
Thread 3 is waiting
PowerServiceHw:addRequest: table size: before: 0, after:1
request table for ISP 0:
req[0]: output1 width=0, output1 height=0, output1 Bpp=0
req[0]: output2 width=0, output2 height=0, output2 Bpp=0
req[0]: input width=1944, input height=1096, input Bpp=12
req[0]: output width=130, output height=74, output Bpp=16
req[0]: input fps=30
req[0]: guID=0, stage type=SensorIspCapture
req[0]: clock=0 Hz, iso bw=54151 KB/s, non-iso bw=0 KB/s
req[450]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=54151 and m_bwVal_NonIso=0 KBpS
PowerServiceCore:setCameraBw: totalIsoBw=54151
PowerServiceHw:addRequest: table size: before: 1, after:2
request table for ISP 0:
req[0]: output1 width=0, output1 height=0, output1 Bpp=0
req[0]: output2 width=0, output2 height=0, output2 Bpp=0
req[0]: input width=1944, input height=1096, input Bpp=12
req[0]: output width=130, output height=74, output Bpp=16
req[0]: input fps=30
req[0]: guID=0, stage type=SensorIspCapture
req[0]: clock=0 Hz, iso bw=54151 KB/s, non-iso bw=0 KB/s
req[415]: timeout=0
req[1]: output1 width=0, output1 height=0, output1 Bpp=0
req[1]: output2 width=0, output2 height=0, output2 Bpp=0
req[1]: input width=1944, input height=1096, input Bpp=12
req[1]: output width=1944, output height=1096, output Bpp=12
req[1]: input fps=30
req[1]: guID=0, stage type=SensorIspCapture
req[1]: clock=0 Hz, iso bw=595438 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=0, output1 height=0, output1 Bpp=0
req[0]: output2 width=0, output2 height=0, output2 Bpp=0
req[0]: input width=1944, input height=1096, input Bpp=12
req[0]: output width=130, output height=74, output Bpp=16
req[0]: input fps=30
req[0]: guID=0, stage type=SensorIspCapture
req[0]: clock=0 Hz, iso bw=54151 KB/s, non-iso bw=0 KB/s
req[414]: timeout=0
req[1]: output1 width=0, output1 height=0, output1 Bpp=0
req[1]: output2 width=0, output2 height=0, output2 Bpp=0
req[1]: input width=1944, input height=1096, input Bpp=12
req[1]: output width=1944, output height=1096, output Bpp=12
req[1]: input fps=30
req[1]: guID=0, stage type=SensorIspCapture
req[1]: clock=0 Hz, iso bw=595438 KB/s, non-iso bw=0 KB/s
req[449]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=595438 and m_bwVal_NonIso=0 KBpS
PowerServiceCore:setCameraBw: totalIsoBw=595438
Created fiber 0x7f24000f70 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
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000
CC 103 session 0 completed step 0 in fiber 0x7f24000f70
cc 103(3) session 0 runCount=2 runIspOut=0, latest ccId=0
CC 103 session 0 completed step 1 in fiber 0x7f24000f70
NV AE and AfApply algorithms are active.
CC 103 session 0 completed step 2 in fiber 0x7f24000f70
CC 103 session 0 completed step 3 in fiber 0x7f24000f70
CC 103 session 0 completed step 4 in fiber 0x7f24000f70
CC 103 session 0 completed step 5 in fiber 0x7f24000f70
CC 103 session 0 completed step 6 in fiber 0x7f24000f70
CC 103 session 0 processing step 7 in fiber 0x7f24000f70
FiberScheduler: cc 103, session 0, fiber 0x7f24000f70 in progress...
Thread 5 getting next capture
Thread 5 is waiting
Thread 6 is waiting
If I switch discontinuous_clk the system doesn’t freeze, still gstremer doesn’t capture and nvargus-daemon logs as follow:
=== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...
=== gst-launch-1.0[8099]: Connection established (7F9B9461D0)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 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(0x7f947d9720)
getInstance: s_instance(0x7f947d9720)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7f9476e190)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7f947e11d0)
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
Services are started
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
=== gst-launch-1.0[8099]: CameraProvider initialized (0x7f94829ba0)sourceRegistry[0] assigned
ispRegistry[0] assigned
Using Source GUID 0
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
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
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
InstructionList:
+ GraphSettings
| SensorMode: 1944x1096 BayerS16GBRG 30.0fps
| output 0: 1944x1096 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: [1944, 1096]
| IspOut0: [1944, 1096]
| IspOut1: [0, 0]
| IspOut2: [0, 0]
+ 5: TempBufferAcquireStage
| Buffer Index: 2
| BufferRequirements: 1944x1 Pitch NonColor8
+ 6: TempBufferAcquireStage
| Buffer Index: 3
| BufferRequirements: 524288x1 Pitch NonColor8
+ 7: SensorISPCaptureStage
| Source GUID: 0
| Output A Buffer: 0
| SensorMetadata Buffer: 2
| Output IspStats Buffer: 3
+ 8: StatsBufferAcquireStage
| Buffer Index: 1
| BufferRequirements: 640x362 Pitch Y8_ER 420
+ 9: BlitStage
| Input Buffer: 0
| Output Buffer: 1
| Filter: Nearest
| Transform: None
| Src Rect: Not used
| Dst Rect: Not used
+ 10: StatsUpdateStage
| Output Meta Buffer: 2
| Output IspStats Buffer: 3
+ 11: BufferReturnStage
| Output A Buffer: 2
+ 12: BufferReturnStage
| Output A Buffer: 3
+ 13: AcPluginStage
| operation: opAnalyze
+ 14: AfAnalysisStage
+ 15: MonitorStage
+ 16: ExifStage
+ 17: MakerNoteStage
+ 18: BufferReturnStage
| Output A Buffer: 0
+ 19: MetadataReturnStage
+ 20: PerfStatsStage
Session::updatePerfHints()
Thread 1 is working on CC 101 session 0 globalID 101 step 0
CC 101 session 0 completed step 0 in fiber 0x7f44000b20
cc 101(1) session 0 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 0 completed step 1 in fiber 0x7f44000b20
NV AE and AfApply algorithms are active.
CC 101 session 0 completed step 2 in fiber 0x7f44000b20
CC 101 session 0 completed step 3 in fiber 0x7f44000b20
Created fiber 0x7f44000b20 for CC 101 globalID 101 session 0
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 0x7f44000dd0 for CC 102 globalID 102 session 0
Thread 2 is working on CC 102 session 0 globalID 102 step 0
Session::updatePerfHints()
CC 101 session 0 completed step 4 in fiber 0x7f44000b20
CC 102 session 0 completed step 0 in fiber 0x7f44000dd0
CC 101 session 0 completed step 5 in fiber 0x7f44000b20updatePerfHints(): guid=0ll, CaptureIntent=1
cc 102(2) session 0 runCount=1 runIspOut=0, latest ccId=0
CC 101 session 0 completed step 6 in fiber 0x7f44000b20
CC 102 session 0 completed step 1 in fiber 0x7f44000dd0
NV AE and AfApply algorithms are active.
updatePerfHints(): NvCameraCoreUseCase_Preview
CC 101 session 0 processing step 7 in fiber 0x7f44000b20
FiberScheduler: cc 101, session 0, fiber 0x7f44000b20 in progress...
Thread 1 getting next capture
Thread 3 is waiting
Thread 1 is waiting
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 0x7f44000dd0
CC 102 session 0 completed step 3 in fiber 0x7f44000dd0
CC 102 session 0 completed step 4 in fiber 0x7f44000dd0
CC 102 session 0 completed step 5 in fiber 0x7f44000dd0
CC 102 session 0 completed step 6 in fiber 0x7f44000dd0
CC 102 session 0 processing step 7 in fiber 0x7f44000dd0
FiberScheduler: cc 102, session 0, fiber 0x7f44000dd0 in progress...
Thread 2 getting next capture
Thread 4 is waiting
Thread 2 is waiting
PowerServiceHw:addRequest: table size: before: 0, after:1
request table for ISP 0:
req[0]: output1 width=0, output1 height=0, output1 Bpp=0
req[0]: output2 width=0, output2 height=0, output2 Bpp=0
req[0]: input width=1944, input height=1096, input Bpp=12
req[0]: output width=130, output height=74, output Bpp=16
req[0]: input fps=30
req[0]: guID=0, stage type=SensorIspCapture
req[0]: clock=0 Hz, iso bw=54151 KB/s, non-iso bw=0 KB/s
req[450]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=54151 and m_bwVal_NonIso=0 KBpS
PowerServiceCore:setCameraBw: totalIsoBw=54151
PowerServiceHw:addRequest: table size: before: 1, after:2
request table for ISP 0:
req[0]: output1 width=0, output1 height=0, output1 Bpp=0
req[0]: output2 width=0, output2 height=0, output2 Bpp=0
req[0]: input width=1944, input height=1096, input Bpp=12
req[0]: output width=130, output height=74, output Bpp=16
req[0]: input fps=30
req[0]: guID=0, stage type=SensorIspCapture
req[0]: clock=0 Hz, iso bw=54151 KB/s, non-iso bw=0 KB/s
req[411]: timeout=0
req[1]: output1 width=0, output1 height=0, output1 Bpp=0
req[1]: output2 width=0, output2 height=0, output2 Bpp=0
req[1]: input width=1944, input height=1096, input Bpp=12
req[1]: output width=1944, output height=1096, output Bpp=12
req[1]: input fps=30
req[1]: guID=0, stage type=SensorIspCapture
req[1]: clock=0 Hz, iso bw=595438 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=0, output1 height=0, output1 Bpp=0
req[0]: output2 width=0, output2 height=0, output2 Bpp=0
req[0]: input width=1944, input height=1096, input Bpp=12
req[0]: output width=130, output height=74, output Bpp=16
req[0]: input fps=30
req[0]: guID=0, stage type=SensorIspCapture
req[0]: clock=0 Hz, iso bw=54151 KB/s, non-iso bw=0 KB/s
req[409]: timeout=0
req[1]: output1 width=0, output1 height=0, output1 Bpp=0
req[1]: output2 width=0, output2 height=0, output2 Bpp=0
req[1]: input width=1944, input height=1096, input Bpp=12
req[1]: output width=1944, output height=1096, output Bpp=12
req[1]: input fps=30
req[1]: guID=0, stage type=SensorIspCapture
req[1]: clock=0 Hz, iso bw=595438 KB/s, non-iso bw=0 KB/s
req[448]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=595438 and m_bwVal_NonIso=0 KBpS
PowerServiceCore:setCameraBw: totalIsoBw=595438
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/NvIspHw.cpp, function waitIspStatsFinished(), line 561)
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/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)
Error: waitCsiFrameStart timeout guid 0
************VI/CSI Debug Registers**********
VI_CFG_INTERRUPT_MASK_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_INT_MASK_0 = 0x00000000
VI_CSI_1_ERROR_STATUS_0 = 0x00000000
VI_CSI_1_ERROR_INT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_STATUS_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_STATUS_0 = 0x00000000
CSI_CSI_CIL_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_A_STATUS_0 = 0x00000000
CSI_CSI_CILA_STATUS_0 = 0x00000000
CSI_CSI_CIL_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_B_STATUS_0 = 0x00000000
CSI_CSI_CILB_STATUS_0 = 0x00000000
CSI_CSI_READONLY_STATUS_0 = 0x00000000
CSI_DEBUG_CONTROL_0 = 0x2f752a00
CSI_DEBUG_COUNTER_0_0 = 0x00000000
CSI_DEBUG_COUNTER_1_0 = 0x00000000
CSI_DEBUG_COUNTER_2_0 = 0x00000000
*****************************************
Error: waitCsiFrameStart Something went wrong with waiting on frame start
Error: waitCsiFrameStart Something went wrong with waiting on frame start
Created fiber 0x7f44000f70 for CC 103 globalID 103 session 0
Thread 5 is working on CC 103 session 0 globalID 103 step 0
PowerServiceCore:handleRequests: timePassed = 1507
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 0x7f44000f70
cc 103(3) session 0 runCount=2 runIspOut=0, latest ccId=0
CC 103 session 0 completed step 1 in fiber 0x7f44000f70
NV AE and AfApply algorithms are active.
CC 103 session 0 completed step 2 in fiber 0x7f44000f70
CC 103 session 0 completed step 3 in fiber 0x7f44000f70
CC 103 session 0 completed step 4 in fiber 0x7f44000f70
CC 103 session 0 completed step 5 in fiber 0x7f44000f70
CC 103 session 0 completed step 6 in fiber 0x7f44000f70
CC 103 session 0 processing step 7 in fiber 0x7f44000f70
FiberScheduler: cc 103, session 0, fiber 0x7f44000f70 in progress...
Thread 5 getting next capture
Thread 6 is waiting
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000
Thread 5 is waiting
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/NvIspHw.cpp, function waitIspStatsFinished(), line 561)
Error: waitCsiFrameStart timeout guid 0
************VI/CSI Debug Registers**********
VI_CFG_INTERRUPT_MASK_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_INT_MASK_0 = 0x00000000
VI_CSI_1_ERROR_STATUS_0 = 0x00000000
VI_CSI_1_ERROR_INT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_STATUS_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_STATUS_0 = 0x00000000
CSI_CSI_CIL_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_A_STATUS_0 = 0x00000000
CSI_CSI_CILA_STATUS_0 = 0x00000000
CSI_CSI_CIL_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_B_STATUS_0 = 0x00000000
CSI_CSI_CILB_STATUS_0 = 0x00000000
CSI_CSI_READONLY_STATUS_0 = 0x00000000
CSI_DEBUG_CONTROL_0 = 0x2f752a00
CSI_DEBUG_COUNTER_0_0 = 0x00000000
CSI_DEBUG_COUNTER_1_0 = 0x00000000
CSI_DEBUG_COUNTER_2_0 = 0x00000000
*****************************************
SCF: Error Timeout: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 990)
Created fiber 0x7f44001110 for CC 104 globalID 104 session 0
Thread 7 is working on CC 104 session 0 globalID 104 step 0
CC 104 session 0 completed step 0 in fiber 0x7f44001110
cc 104(4) session 0 runCount=3 runIspOut=0, latest ccId=0
CC 104 session 0 completed step 1 in fiber 0x7f44001110
NV AE and AfApply algorithms are active.
CC 104 session 0 completed step 2 in fiber 0x7f44001110
CC 104 session 0 completed step 3 in fiber 0x7f44001110
CC 104 session 0 completed step 4 in fiber 0x7f44001110
CC 104 session 0 completed step 5 in fiber 0x7f44001110
CC 104 session 0 completed step 6 in fiber 0x7f44001110
CC 104 session 0 processing step 7 in fiber 0x7f44001110
FiberScheduler: cc 104, session 0, fiber 0x7f44001110 in progress...
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
(Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
(Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
.....
In this case this is the trace:
# tracer: nop
#
# entries-in-buffer/entries-written: 110/110 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
v4l2-ctl-8246 [003] .... 1290.475237: tegra_channel_open: vi-output, imx415 0-001a
v4l2-ctl-8246 [000] .... 1290.478702: camera_common_s_power: status : 0x1
v4l2-ctl-8246 [002] .... 1290.481966: camera_common_s_power: status : 0x0
v4l2-ctl-8246 [003] .... 1290.482191: camera_common_s_power: status : 0x1
v4l2-ctl-8246 [001] .... 1290.661073: camera_common_s_power: status : 0x0
v4l2-ctl-8246 [001] .... 1290.662408: tegra_channel_set_power: imx415 0-001a : 0x1
v4l2-ctl-8246 [001] .... 1290.662434: camera_common_s_power: status : 0x1
v4l2-ctl-8246 [001] .... 1290.694773: tegra_channel_set_power: nvcsi--1 : 0x1
v4l2-ctl-8246 [001] .... 1290.694786: csi_s_power: enable : 0x1
v4l2-ctl-8246 [001] .... 1290.698657: tegra_channel_close: vi-output, imx415 0-001a
v4l2-ctl-8246 [001] .... 1290.698731: tegra_channel_set_power: imx415 0-001a : 0x0
v4l2-ctl-8246 [001] .... 1290.698755: camera_common_s_power: status : 0x0
v4l2-ctl-8246 [001] .... 1290.699844: tegra_channel_set_power: nvcsi--1 : 0x0
v4l2-ctl-8246 [001] .... 1290.699852: csi_s_power: enable : 0x0
nvargus-daemon-8259 [001] .... 1293.494515: tegra_channel_open: vi-output, nvtc358743 6-000f
nvargus-daemon-8259 [001] .... 1293.495667: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [000] .... 1293.499882: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [000] .... 1293.499942: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [000] .... 1293.666600: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [000] .... 1293.666980: tegra_channel_set_power: nvtc358743 6-000f : 0x1
nvargus-daemon-8259 [000] .... 1293.666989: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [000] .... 1293.667086: tegra_channel_set_power: nvcsi--2 : 0x1
nvargus-daemon-8259 [000] .... 1293.667090: csi_s_power: enable : 0x1
nvargus-daemon-8259 [000] .... 1293.667358: tegra_channel_close: vi-output, nvtc358743 6-000f
nvargus-daemon-8259 [000] .... 1293.667381: tegra_channel_set_power: nvtc358743 6-000f : 0x0
nvargus-daemon-8259 [000] .... 1293.667391: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [000] .... 1293.667515: tegra_channel_set_power: nvcsi--2 : 0x0
nvargus-daemon-8259 [000] .... 1293.667519: csi_s_power: enable : 0x0
nvargus-daemon-8259 [000] .... 1293.667846: tegra_channel_open: vi-output, imx415 0-001a
nvargus-daemon-8259 [000] .... 1293.667920: tegra_channel_set_power: imx415 0-001a : 0x1
nvargus-daemon-8259 [000] .... 1293.667930: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [002] .... 1293.699782: tegra_channel_set_power: nvcsi--1 : 0x1
nvargus-daemon-8259 [002] .... 1293.699789: csi_s_power: enable : 0x1
nvargus-daemon-8259 [002] .... 1293.700085: tegra_channel_close: vi-output, imx415 0-001a
nvargus-daemon-8259 [002] .... 1293.700107: tegra_channel_set_power: imx415 0-001a : 0x0
nvargus-daemon-8259 [002] .... 1293.700118: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [001] .... 1293.700811: tegra_channel_set_power: nvcsi--1 : 0x0
nvargus-daemon-8259 [001] .... 1293.700817: csi_s_power: enable : 0x0
nvargus-daemon-8259 [001] .... 1293.707813: tegra_channel_open: vi-output, nvtc358743 6-000f
nvargus-daemon-8259 [001] .... 1293.707881: tegra_channel_set_power: nvtc358743 6-000f : 0x1
nvargus-daemon-8259 [001] .... 1293.707892: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [003] .... 1293.708177: tegra_channel_set_power: nvcsi--2 : 0x1
nvargus-daemon-8259 [003] .... 1293.708180: csi_s_power: enable : 0x1
nvargus-daemon-8259 [003] .... 1293.708277: tegra_channel_close: vi-output, nvtc358743 6-000f
nvargus-daemon-8259 [003] .... 1293.708288: tegra_channel_set_power: nvtc358743 6-000f : 0x0
nvargus-daemon-8259 [003] .... 1293.708292: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [003] .... 1293.708358: tegra_channel_set_power: nvcsi--2 : 0x0
nvargus-daemon-8259 [003] .... 1293.708359: csi_s_power: enable : 0x0
nvargus-daemon-8259 [003] .... 1293.708525: tegra_channel_open: vi-output, imx415 0-001a
nvargus-daemon-8259 [003] .... 1293.708569: tegra_channel_set_power: imx415 0-001a : 0x1
nvargus-daemon-8259 [003] .... 1293.708575: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [001] .... 1293.740138: tegra_channel_set_power: nvcsi--1 : 0x1
nvargus-daemon-8259 [001] .... 1293.740140: csi_s_power: enable : 0x1
nvargus-daemon-8259 [001] .... 1293.740280: tegra_channel_close: vi-output, imx415 0-001a
nvargus-daemon-8259 [001] .... 1293.740292: tegra_channel_set_power: imx415 0-001a : 0x0
nvargus-daemon-8259 [001] .... 1293.740297: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [000] .... 1293.740663: tegra_channel_set_power: nvcsi--1 : 0x0
nvargus-daemon-8259 [000] .... 1293.740667: csi_s_power: enable : 0x0
nvargus-daemon-8259 [000] .... 1293.769959: tegra_channel_open: vi-output, imx415 0-001a
nvargus-daemon-8259 [000] .... 1293.769994: tegra_channel_set_power: imx415 0-001a : 0x1
nvargus-daemon-8259 [000] .... 1293.770008: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [000] .... 1293.801368: tegra_channel_set_power: nvcsi--1 : 0x1
nvargus-daemon-8259 [000] .... 1293.801372: csi_s_power: enable : 0x1
nvargus-daemon-8259 [000] .... 1293.801398: tegra_channel_close: vi-output, imx415 0-001a
nvargus-daemon-8259 [000] .... 1293.801407: tegra_channel_set_power: imx415 0-001a : 0x0
nvargus-daemon-8259 [000] .... 1293.801411: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [000] .... 1293.801705: tegra_channel_set_power: nvcsi--1 : 0x0
nvargus-daemon-8259 [000] .... 1293.801706: csi_s_power: enable : 0x0
nvargus-daemon-8259 [000] .... 1293.801803: tegra_channel_open: vi-output, imx415 0-001a
nvargus-daemon-8259 [000] .... 1293.801828: tegra_channel_set_power: imx415 0-001a : 0x1
nvargus-daemon-8259 [000] .... 1293.801832: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [002] .... 1293.833307: tegra_channel_set_power: nvcsi--1 : 0x1
nvargus-daemon-8259 [002] .... 1293.833315: csi_s_power: enable : 0x1
nvargus-daemon-8259 [002] .... 1293.833620: tegra_channel_close: vi-output, imx415 0-001a
nvargus-daemon-8259 [002] .... 1293.833637: tegra_channel_set_power: imx415 0-001a : 0x0
nvargus-daemon-8259 [002] .... 1293.833646: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [002] .... 1293.834165: tegra_channel_set_power: nvcsi--1 : 0x0
nvargus-daemon-8259 [002] .... 1293.834168: csi_s_power: enable : 0x0
nvargus-daemon-8259 [002] .... 1293.834351: tegra_channel_open: vi-output, imx415 0-001a
nvargus-daemon-8259 [002] .... 1293.834407: tegra_channel_set_power: imx415 0-001a : 0x1
nvargus-daemon-8259 [002] .... 1293.834415: camera_common_s_power: status : 0x1
nvargus-daemon-8259 [001] .... 1293.866145: tegra_channel_set_power: nvcsi--1 : 0x1
nvargus-daemon-8259 [001] .... 1293.866157: csi_s_power: enable : 0x1
nvargus-daemon-8259 [001] .... 1293.866529: tegra_channel_close: vi-output, imx415 0-001a
nvargus-daemon-8259 [001] .... 1293.866568: tegra_channel_set_power: imx415 0-001a : 0x0
nvargus-daemon-8259 [001] .... 1293.866581: camera_common_s_power: status : 0x0
nvargus-daemon-8259 [000] .... 1293.867153: tegra_channel_set_power: nvcsi--1 : 0x0
nvargus-daemon-8259 [000] .... 1293.867159: csi_s_power: enable : 0x0
CaptureSchedule-8278 [002] .... 1294.016282: tegra_channel_open: vi-output, imx415 0-001a
CaptureSchedule-8278 [002] .... 1294.016319: tegra_channel_set_power: imx415 0-001a : 0x1
CaptureSchedule-8278 [002] .... 1294.016325: camera_common_s_power: status : 0x1
CaptureSchedule-8278 [002] .... 1294.047830: tegra_channel_set_power: nvcsi--1 : 0x1
CaptureSchedule-8278 [002] .... 1294.047833: csi_s_power: enable : 0x1
CaptureSchedule-8278 [002] .... 1294.051540: tegra_channel_set_stream: enable : 0x1
CaptureSchedule-8278 [002] .... 1294.052711: tegra_channel_set_stream: nvcsi--1 : 0x1
CaptureSchedule-8278 [002] .... 1294.052714: csi_s_stream: enable : 0x1
CaptureSchedule-8278 [002] .... 1294.052715: tegra_channel_set_stream: imx415 0-001a : 0x1
nvargus-daemon-8314 [002] .... 1299.408895: tegra_channel_close: vi-output, imx415 0-001a
nvargus-daemon-8314 [002] .... 1299.408912: tegra_channel_set_stream: enable : 0x0
nvargus-daemon-8314 [002] .... 1299.408913: tegra_channel_set_stream: imx415 0-001a : 0x0
nvargus-daemon-8314 [003] .... 1299.421526: tegra_channel_set_stream: nvcsi--1 : 0x0
nvargus-daemon-8314 [003] .... 1299.421542: csi_s_stream: enable : 0x0
nvargus-daemon-8314 [000] .... 1299.425874: tegra_channel_set_power: imx415 0-001a : 0x0
nvargus-daemon-8314 [000] .... 1299.425884: camera_common_s_power: status : 0x0
nvargus-daemon-8314 [001] .... 1299.426342: tegra_channel_set_power: nvcsi--1 : 0x0
nvargus-daemon-8314 [001] .... 1299.426346: csi_s_power: enable : 0x0
kworker/2:0-8247 [002] .... 1304.445196: camera_common_s_power: status : 0x1
kworker/2:0-8247 [002] .... 1304.448677: camera_common_s_power: status : 0x0
kworker/2:0-8247 [002] .... 1304.448770: camera_common_s_power: status : 0x1
kworker/2:0-8247 [002] .... 1304.622291: camera_common_s_power: status : 0x0
Any idea is welcome.
Thanks
Pietro