NvArgus: SCF: Error InvalidState

I’m using Jetpack r32.7.4 and I’m encountering these issues. Can you please suggest me where to look?
It happens about 1 hour after I reboot the divece

Apr 09 13:52:07 dnncam-0003111 nvargus-daemon[5061]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function returnFrame(), line 375)

Apr 09 13:52:07 dnncam-0003111 nvargus-daemon[5061]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function getBuffer(), line 437)

Apr 09 13:52:07 dnncam-0003111 nvargus-daemon[5061]: SCF: Error InvalidState: (propagating from src/components/CaptureContainerImpl.cpp, function assignAllBuffersFromStream(), line 232)

Apr 09 13:52:07 dnncam-0003111 nvargus-daemon[5061]: SCF: Error InvalidState: (propagating from src/components/stages/CCDataSetupStage.cpp, function doHandleRequest(), line 68)

Apr 09 13:52:07 dnncam-0003111 nvargus-daemon[5061]: SCF: Error InvalidState: (propagating from src/components/stages/OrderedStage.cpp, function doExecute(), line 158)

Apr 09 13:52:07 dnncam-0003111 nvargus-daemon[5061]: SCF: Error InvalidState: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 998)

Apr 09 13:52:12 dnncam-0003111 nvargus-daemon[5061]: === python3[16137]: Connection closed (7FB39671C0)=== python3[16137]: WARNING: CameraProvider was not destroyed before client connection terminated.=== p

ython3[16137]: The client may have abnormally terminated. Destroying CameraProvider...=== python3[16137]: CameraProvider destroyed (0x7fad5132e0)=== python3[16137]: WARNING: Cleaning up 1 outstandi

ng requests...=== python3[16137]: WARNING: Cleaning up 1 outstanding stream settings...=== python3[16137]: WARNING: Cleaning up 1 outstanding queues...=== python3[16137]: WARNING: Cleaning up 1 outstanding

sessions...waitForIdleLocked remaining request 1415780

Apr 09 13:52:12 dnncam-0003111 nvargus-daemon[5061]: waitForIdleLocked remaining request 1415779

Apr 09 13:52:12 dnncam-0003111 nvargus-daemon[5061]: waitForIdleLocked remaining request 1415778

Apr 09 13:52:12 dnncam-0003111 nvargus-daemon[5061]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 928)

Apr 09 13:52:12 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error Timeout: (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 169)

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: waitForIdleLocked remaining request 1415780

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: waitForIdleLocked remaining request 1415779

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: waitForIdleLocked remaining request 1415778

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 928)

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: SCF: Error Timeout: (propagating from src/api/Session.cpp, function abortCaptures(), line 894)

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: SCF: Error Timeout: (propagating from src/api/Session.cpp, function shutdown(), line 406)

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: PowerServiceCore:handleRequests: timePassed = 5044

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: SCF: Error Timeout: (propagating from src/api/Session.cpp, function shutdown(), line 506)

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: SCF: Error Timeout: (propagating from src/api/CameraDriver.cpp, function deleteSession(), line 635)

Apr 09 13:52:17 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error Timeout: (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 194)

Apr 09 13:52:20 dnncam-0003111 nvargus-daemon[5061]: === python3[16137]: WARNING: Cleaning up 1 outstanding streams...=== python3[16137]: NOTE: Destroy all libargus objects before destroying the CameraProvi

der to avoid these warnings.=== python3[16137]: Connection cleaned up (7FB39671C0)=== python3[1162420]: Connection established (7FB39671C0)=== python3[1162420]: CameraProvider initialized (0x7fad3d89c0)(Arg

us) Error InvalidState: CaptureProvider destroyed (in src/api/CameraProviderImpl.cpp, function createCaptureSessionInternal(), line 247)

Apr 09 13:52:40 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error InvalidState: CaptureProvider destroyed (in src/api/CameraProviderImpl.cpp, function createCaptureSessionInternal(), line 247)

Apr 09 13:53:00 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error InvalidState: CaptureProvider destroyed (in src/api/CameraProviderImpl.cpp, function createCaptureSessionInternal(), line 247)

Apr 09 13:53:20 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error InvalidState: CaptureProvider destroyed (in src/api/CameraProviderImpl.cpp, function createCaptureSessionInternal(), line 247)

Apr 09 13:53:40 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error InvalidState: CaptureProvider destroyed (in src/api/CameraProviderImpl.cpp, function createCaptureSessionInternal(), line 247)

Apr 09 13:54:00 dnncam-0003111 nvargus-daemon[5061]: (Argus) Error InvalidState: CaptureProvider destroyed (in src/api/CameraProviderImpl.cpp, function createCaptureSessionInternal(), line 247)

hello pablo.aarch64,

could you please give more details.
for instance, which camera module you’re using, what’s the real camera use-case…etc

Hi Jerry,
Thanks for replying, this is connected to a Sony imx334 sensor. The application that uses the feed is an Object recognition software, it’s pointing 24/7 to a street.

Sometimes when I systemctl restart nvargus-daemon
I get a kernel OOPS

[ 2023.174651] Internal error: Oops: 96000045 [#1] PREEMPT SMP
[ 2023.180212] Modules linked in**: xt_nat xt_tcpudp veth xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables br_netfilter mttcan can_dev bluedroid_pm userspace_alert nvgpu imx334 framos_common overlay**
[ 2023.211207] CPU**: 3 PID: 8506 Comm: SCF Execution Not tainted 4.9.299-l4t-r32.7.3+g7a682325ef58 #1**
[ 2023.220061] Hardware name**: quill (DT)**
[ 2023.223713] task**: ffffffc0fc528000 task.stack: ffffffc0ccdc4000**
[ 2023.229626] **PC is at vi_notify_channel_set_notify_funcs+0x28/0x48**
[ 2023.235709] **LR is at tegra_channel_notify_disable+0x4c/0x160**
[ 2023.241354] pc **: [<ffffff80086d67c8>] lr : [<ffffff8008c8d394>] pstate: 80400045**
[ 2023.248732] sp **: ffffffc0ccdc79a0**
[ 2023.252037] x29**: ffffffc0ccdc79a0 x28: ffffffc0fc528000**
[ 2023.257357] x27**: ffffffc1e4968440 x26: ffffffc0ccdc7de8**
[ 2023.262678] x25**: 0000000000000123 x24: ffffffc1388f4058**
[ 2023.267996] x23**: ffffffc1e7c48018 x22: 0000000000000000**
[ 2023.273317] x21**: 0000000000000000 x20: 0000000000000000**
[ 2023.278635] x19**: 0000000000000000 x18: ffffffc078483e20**
[ 2023.283954] x17**: 0000000000000001 x16: 0000000000000000**
[ 2023.289271] x15**: 000000003deaffea x14: 000000002017bb6a**
[ 2023.294592] x13**: 00000000e7cb3977 x12: 00000000fab0b094**
[ 2023.299911] x11**: 0000000000000000 x10: ffffffc0ccdc7b50**
[ 2023.305232] x9 **: 00000000ffffffd0 x8 : ffffffc0ccdc7b20**
[ 2023.310551] x7 **: 0000000000000000 x6 : ffffffc0bfa886ff**
[ 2023.315868] x5 **: 0000000000000000 x4 : 0000000000000000**
[ 2023.321188] x3 **: 0000000000000000 x2 : 0000000000000000**
[ 2023.326507] x1 **: 0000000000000000 x0 : ffffff8008c8d394**
[ 2023.333313] Process SCF Execution (pid: 8506, stack limit = 0xffffffc0ccdc4000)
[ 2023.340604] **Call trace:**
[ 2023.343044] **[<ffffff80086d67c8>] vi_notify_channel_set_notify_funcs+0x28/0x48**
[ 2023.350165] **[<ffffff8008c8d394>] tegra_channel_notify_disable+0x4c/0x160**
[ 2023.356852] **[<ffffff8008c8e8ac>] vi4_channel_stop_streaming+0x1a4/0x470**
[ 2023.363453] **[<ffffff8008c84bb8>] tegra_channel_stop_streaming+0x38/0x60**
[ 2023.370052] **[<ffffff8008c7d5ac>] __vb2_queue_cancel+0x3c/0x160**
[ 2023.375872] **[<ffffff8008c7eb54>] vb2_core_queue_release+0x2c/0x58**
[ 2023.381952] **[<ffffff8008c80ae4>] _vb2_fop_release+0x84/0xa0**
[ 2023.387512] **[<ffffff8008c88434>] tegra_channel_close+0x64/0x170**
[ 2023.393419] **[<ffffff8008c5c0e4>] v4l2_release+0x4c/0x98**
[ 2023.398633] **[<ffffff80083df0e0>] __fput+0x90/0x1c8**
[ 2023.403411] **[<ffffff80083df290>] ____fput+0x20/0x30**
[ 2023.408279] **[<ffffff8008257280>] task_work_run+0xb8/0xd0**
[ 2023.413580] **[<ffffff8008237034>] do_exit+0x37c/0xa58**
[ 2023.418533] **[<ffffff800823779c>] do_group_exit+0x3c/0xa0**
[ 2023.423834] **[<ffffff8008244d44>] get_signal+0xc4/0x778**
[ 2023.428960] **[<ffffff800820aafc>] do_signal+0x7c/0x530**
[ 2023.434000] **[<ffffff800820b130>] do_notify_resume+0x90/0xb0**
[ 2023.439559] **[<ffffff800820379c>] work_pending+0x8/0x10**
[ 2023.444691] **---[ end trace 4b6e3e62f4d29b5c ]---**
[ 2023.456164] Fixing recursive fault but reboot is needed!

I don’t know if you’ve also seen this. Or if it helps.

hello pablo.aarch64,

let’s have issue narrow down,
could you please enable camera streaming by preview disabled and shows frame-rate only,
for instance,
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v

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