09_camera_jpeg_capture is not working Sometimes

I encounter camera_jpeg_capture failed to start-up sometimes with my sersor device.

Application message is as following:

./camera_jpeg_capture --disable-jpg
[INFO] (NvEglRenderer.cpp:109) <renderer0> Setting Screen width 640 height 480
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/sc130gs_center_A6V26.isp] 6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/sc130gs_center_A6V26.isp] 7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/sc130gs_center_A6V26.isp] 8/16---- imager: No override file found. ----
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/sc130gs_front_A6V26.isp] 6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/sc130gs_front_A6V26.isp] 7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/sc130gs_front_A6V26.isp] 8/16---- imager: No override file found. ----
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/sc130gs_bottom_A6V26.isp] 6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/sc130gs_bottom_A6V26.isp] 7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/sc130gs_bottom_A6V26.isp] 8/16---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected...
PRODUCER: Available Sensor modes :
PRODUCER: [0] W=1280 H=1024
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
SCF: Error InvalidState:  NonFatal ISO BW requested not set. Requested = 2147483647 Set = 4687500 (in src/services/power/PowerServiceCore.cpp, function setCameraBw(), line 653)
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
launchCC abort cc 104 session 1
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
launchCC abort cc 105 session 1
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
launchCC abort cc 106 session 1
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
launchCC abort cc 107 session 1
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
launchCC abort cc 108 session 1
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
launchCC abort cc 109 session 1
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)

Kernel debug message is as following:

[ 6775.795701] misc tegra_camera_ctrl: ISO BW req 2147483647 > 4687500 (max) capping to max
[ 6775.803961] misc tegra_camera_ctrl: vi_v4l2_update_isobw: requested iso bw is larger than max
[ 6775.823249] sc130gs 2-0032: sc130gs_s_stream++,enable:1 mode:0 
[ 6775.843649] sc130gs 2-0032: sc130gs_s_ctrl++
[ 6775.848013] sc130gs 2-0032: Set Group Hold1
[ 6775.852244] sc130gs 2-0032: sc130gs_s_ctrl++
[ 6775.856603] sc130gs 2-0032: Set CoarseTime 2087 us
[ 6775.861454] sc130gs 2-0032: sc130gs_s_ctrl++
[ 6775.865769] sc130gs 2-0032: Set Group Hold0
[ 6779.030773] sc130gs 2-0032: sc130gs_s_stream++,enable:0 mode:0 
[ 6779.036913] sc130gs 2-0032: sc130gs_power_off: power off
[ 6783.533259] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 24 (15600000.isp_camera_jpeg_cap_0) clientid 907506, HW thresh 229864, done 229866
[ 6783.546669] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 25 (15600000.isp_camera_jpeg_cap_1) clientid 907506, HW thresh 115206, done 115207
[ 6783.560202] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 28 (15600000.isp_camera_jpeg_cap_2) clientid 907506, HW thresh 115201, done 115202
[ 6783.573621] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 29 (15600000.isp_camera_jpeg_cap_3) clientid 907506, HW thresh 115198, done 115199
[ 6783.587051] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 31 (15600000.isp_camera_jpeg_cap_5) clientid 907506, HW thresh 115731, done 115732
[ 6783.600448] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 30 (15600000.isp_camera_jpeg_cap_4) clientid 907506, HW thresh 804658, done 804658
[ 6783.613828] ---- mlocks ----
[ 6783.616746] 8: locked by channel 6
[ 6783.620235] 
[ 6783.621793] ---- syncpts ----
[ 6783.624771] id 4 (disp_d) min 244754 max 244754 refs 1 (previous client : )
[ 6783.631775] id 5 (disp_e) min 2 max 2 refs 1 (previous client : )
[ 6783.637893] id 7 (vblank1) min 406729 max 0 refs 1 (previous client : )
[ 6783.644556] id 18 (17000000.gp10b_507) min 6884616 max 6884616 refs 1 (previous client : )
[ 6783.652865] id 19 (17000000.gp10b_506) min 54 max 54 refs 1 (previous client : )
[ 6783.660364] id 21 (17000000.gp10b_505) min 1228722 max 1228722 refs 1 (previous client : 17000000.gp10b_505)
[ 6783.670238] id 24 (15600000.isp_camera_jpeg_cap_0) min 229864 max 229866 refs 2 (previous client : 15600000.isp_camera_jpeg_cap_0)
[ 6783.682002] id 25 (15600000.isp_camera_jpeg_cap_1) min 115206 max 115207 refs 2 (previous client : 15600000.isp_camera_jpeg_cap_1)
[ 6783.693760] id 28 (15600000.isp_camera_jpeg_cap_2) min 115201 max 115202 refs 2 (previous client : 15600000.isp_camera_jpeg_cap_2)
[ 6783.705545] id 29 (15600000.isp_camera_jpeg_cap_3) min 115198 max 115199 refs 2 (previous client : 15600000.isp_camera_jpeg_cap_3)
[ 6783.717306] id 30 (15600000.isp_camera_jpeg_cap_4) min 804658 max 804660 refs 3 (previous client : 15600000.isp_camera_jpeg_cap_4)
[ 6783.729041] id 31 (15600000.isp_camera_jpeg_cap_5) min 115731 max 115732 refs 2 (previous client : 15600000.isp_camera_jpeg_cap_5)
[ 6783.740797] id 36 (15600000.isp_camera_jpeg_cap_4) min 2003 max 2007 refs 3 (previous client : 17000000.gp10b_499)
[ 6783.751662] 
[ 6783.753164] ---- channels ----
[ 6783.756223] 
[ 6783.756223] channel 1 - 15820000.se
[ 6783.756223] 
[ 6783.762674] NvHost basic channel registers:
[ 6783.766866] CMDFIFO_STAT_0:  00002040
[ 6783.770535] CMDFIFO_RDATA_0: 003062c4
[ 6783.774203] CMDP_OFFSET_0:   00000000
[ 6783.777874] CMDP_CLASS_0:    00000000
[ 6783.781541] CHANNELSTAT_0:   00000000
[ 6783.785206] The CDMA sync queue is empty.
[ 6783.789235] 
[ 6783.790725] 
[ 6783.790725] channel 2 - 15830000.se
[ 6783.790725] 
[ 6783.797172] NvHost basic channel registers:
[ 6783.801360] CMDFIFO_STAT_0:  00002040
[ 6783.805015] CMDFIFO_RDATA_0: 09290091
[ 6783.808681] CMDP_OFFSET_0:   00000000
[ 6783.812344] CMDP_CLASS_0:    00000000
[ 6783.816011] CHANNELSTAT_0:   00000000
[ 6783.819676] The CDMA sync queue is empty.
[ 6783.823687] 
[ 6783.825187] 
[ 6783.825187] channel 3 - 15840000.se
[ 6783.825187] 
[ 6783.831630] NvHost basic channel registers:
[ 6783.835816] CMDFIFO_STAT_0:  00002040
[ 6783.839481] CMDFIFO_RDATA_0: 0122c005
[ 6783.843149] CMDP_OFFSET_0:   00000000
[ 6783.846815] CMDP_CLASS_0:    00000000
[ 6783.850481] CHANNELSTAT_0:   00000000
[ 6783.854146] The CDMA sync queue is empty.
[ 6783.858156] 
[ 6783.859646] 
[ 6783.859646] channel 6 - 15600000.isp
[ 6783.859646] 
[ 6783.866174] NvHost basic channel registers:
[ 6783.870368] CMDFIFO_STAT_0:  0000000e
[ 6783.874034] CMDFIFO_RDATA_0: 004e0041
[ 6783.877701] CMDP_OFFSET_0:   00000050
[ 6783.881366] CMDP_CLASS_0:    00000001
[ 6783.885021] CHANNELSTAT_0:   00000000
[ 6783.888693] 
[ 6783.888693] ffffffc0a74a6600: JOB, syncpt_id=24, syncpt_val=229866, first_get=00000660, timeout=10000, num_slots=19
[ 6783.900600]     GATHER at 5a710000+3c1c, 12 words
[ 6783.905307] 20000001 00006418 20000001 00006819 20000001 00006c1c 20000001 00007c1d 20000001 0000741f 200c0001 00000005 
[ 6783.916309]     GATHER at 5a710000+3c4c, 2 words
[ 6783.920932] 20000001 0000001e 
[ 6783.924012] 
[ 6783.925512] 
[ 6783.925512] channel 7 - 15600000.isp
[ 6783.925512] 
[ 6783.932039] NvHost basic channel registers:
[ 6783.936226] CMDFIFO_STAT_0:  00004000
[ 6783.939891] CMDFIFO_RDATA_0: 00000c80
[ 6783.943558] CMDP_OFFSET_0:   00000000
[ 6783.947224] CMDP_CLASS_0:    00000032
[ 6783.950890] CHANNELSTAT_0:   00000000
[ 6783.954558] 
[ 6783.954558] ffffffc18858d000: JOB, syncpt_id=36, syncpt_val=2005, first_get=00000688, timeout=10000, num_slots=9
[ 6783.966206]     GATHER at 5a708000+0000, 7484 words

Also, I’m working on JetPack 3.3 L4T 28.2.1
Would you please help me resolve the problem?

status update:
Check onboard OV5693 sensor, There are the same issues.

Hi,
Please apply patches for camera functionality at Jetson TX2/28.2.1 patches - eLinux.org

Hi,

There are many patches in the link page.
Can you let me know which patch to apply for fix the camera issues?
Also, If we use new Jetpack 4.2, We will not need apply those patch?

Hi,
Tee web page collects patches for known issues. You may check if it helps your usecase.

For r32.1(Jetpack 4.2), the page is Jetson AGX Xavier/r32.1 patch - eLinux.org
As of now no camera issues are listed.