ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: UNAVAILABLE

遇到類似的問題

我使用兩個MIPI sensor 輸入. 長時間測試約半小時到四小時
會出現錯誤!
只用一個MIPI sensor超過八小時 未出現錯誤,但沒設備持續長時間測

root@Jetson:/home/nvidia# cat /etc/nv_tegra_release
# R35 (release), REVISION: 5.0, GCID: 35550185, BOARD: t186ref, EABI: aarch64, DATE: Tue Feb 20 04:46:31 UTC 2024

測試指令

gst-launch-1.0 -vvv nvarguscamerasrc sensor_id=0 ! video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, framerate=30/1, format=(string)NV12 ! nvvidconv ! nvegltransform ! nveglglessink -e"
gst-launch-1.0 -vvv nvarguscamerasrc sensor_id=1 ! video/x-raw(memory:NVMM), width=(int)800, height=(int)800, framerate=30/1, format=(string)NV12 ! nvvidconv ! nvegltransform ! nveglglessink -e"

root@Jetson:/home/nvidia# CONSUMER: ERROR OCCURRED
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: UNAVAILABLE
Additional debug info:
Argus Error Status
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
Got EOS from element "pipeline0".
EOS received - stopping pipeline...
Execution ended after 5:35:46.250582592
Setting pipeline to NULL ...
GST_ARGUS: Cleaning up
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
Freeing pipeline ...
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error InvalidState: Argus client is exiting with 4 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)

目前增加

echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

與修改測試指令 重作長時間測試

gst-launch-1.0 -vvv nvarguscamerasrc sensor_id=1 ! video/x-raw(memory:NVMM), width=(int)800, height=(int)800, framerate=30/1, format=(string)NV12 ! nvvidconv ! fpsdisplaysink video-sink=fakesink --verbose"

請問還有其他建議嗎???

測試約一小時半 依然出現錯誤 停止撥放

/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 772058, dropped: 0, current: 59.85, average: 59.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 772058, dropped: 0, current: 59.85, average: 59.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 772089, dropped: 0, current: 60.22, average: 59.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 772089, dropped: 0, current: 60.22, average: 59.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 772119, dropped: 0, current: 59.81, average: 59.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 772119, dropped: 0, current: 59.81, average: 59.95
CONSUMER: ERROR OCCURRED
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: UNAVAILABLE
Additional debug info:
Argus Error Status
Execution ended after 3:34:40.297977211
Setting pipeline to NULL ...
GST_ARGUS: Cleaning up
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
Freeing pipeline ...
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error InvalidState: Argus client is exiting with 4 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)
root@Jetson:/home/nvidia#

驅動未出現錯誤訊息 但有個IRQ錯誤 不知是否有相關性

[  195.416617] irq 259: nobody cared (try booting with the "irqpoll" option)
[  195.423628] CPU: 0 PID: 125 Comm: irq/259-nvvrs-p Tainted: G           OE     5.10.192-tegra #1
[  195.423632] Hardware name: NVIDIA Jetson AGX Orin with 32GB (p3701-0004)/Jetson, BIOS 5.0-35550185 02/20/2024
[  195.423635] Call trace:
[  195.423649]  dump_backtrace+0x0/0x1e0
[  195.423656]  show_stack+0x2c/0x40
[  195.423665]  dump_stack+0xf0/0x130
[  195.423670]  __report_bad_irq+0x54/0xe0
[  195.423676]  note_interrupt+0x2f8/0x350
[  195.423682]  handle_irq_event_percpu+0x88/0x90
[  195.423687]  handle_irq_event+0x4c/0xa0
[  195.423691]  handle_fasteoi_irq+0xbc/0x170
[  195.423697]  generic_handle_irq+0x3c/0x60
[  195.423702]  __handle_domain_irq+0x6c/0xc0
[  195.423706]  gic_handle_irq+0x64/0x130
[  195.423710]  el1_irq+0xd0/0x180
[  195.423717]  _raw_spin_unlock_irq+0x28/0x60
[  195.423720]  irq_finalize_oneshot.part.0+0x6c/0x110
[  195.423724]  irq_thread_fn+0x64/0xb0
[  195.423727]  irq_thread+0x164/0x2e0
[  195.423732]  kthread+0x148/0x170
[  195.423736]  ret_from_fork+0x10/0x1c
[  195.423739] handlers:
[  195.426076] [<0000000061861c52>] irq_default_primary_handler threaded [<000000004e39ed7e>] regmap_irq_thread
[  195.436207] Disabling IRQ #259

出現錯誤後 使用 v4l2-ctl 也是無法取得

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1500,height=1500,pixelformat=BG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-skip=0 --stream-to=bg10_1500x1500_c0_cib0.raw

VIDIOC_S_EXT_CTRLS: failed: Device or resource busy
bypass_mode: Device or resource busy
VIDIOC_S_FMT: failed: Device or resource busy
                VIDIOC_REQBUFS returned -1 (Device or resource busy)```

Do you apply the lib and RCE firmware still have problem?

更新下列檔案

Please upgrate to r35.5 and apply below lib and RCE firmware.

libnvfusacap.so.r35.5_none_nofity (7.8 KB)
libnvscf.so.r35.5.inifite.txt (8.4 MB)
camera-rtcpu-t234-rce.img.r35.5.asynchronous (519.3 KB)

重開機後執行測試會出現下面錯誤訊息 , 無法執行

Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:759 No cameras available
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstNvEglTransform:nvegltransform0.GstPad:src: caps = video/x-raw(memory:EGLImage), width=(int)1500, height=(int)1500, format=(string)RGBA, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstEglGlesSink:eglglessink0.GstPad:sink: caps = video/x-raw(memory:EGLImage), width=(int)1500, height=(int)1500, format=(string)RGBA, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstNvEglTransform:nvegltransform0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1500, height=(int)1500, format=(string)NV12, framerate=(fraction)30/1
WARNING: from element /GstPipeline:pipeline0/GstEglGlesSink:eglglessink0: Pipeline construction is invalid, please add queues.
Additional debug info:
gstbasesink.c(1209): gst_base_sink_query_latency (): /GstPipeline:pipeline0/GstEglGlesSink:eglglessink0:
Not enough buffering available for  the processing deadline of 0:00:00.015000000, add enough queues to buffer  0:00:00.015000000 additional data. Shortening processing latency to 0:00:00.000000000.
Got EOS from element "pipeline0".
Execution ended after 0:00:00.971918304
Setting pipeline to NULL ...
Freeing pipeline ...
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 277)
(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 350)
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 379)
(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)
(Argus) Error EndOfFile:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)

修改這兩個改回原本版本 可恢復執行…待長時間測試
/usr/lib/aarch64-linux-gnu/tegra/libnvscf.so
/usr/lib/aarch64-linux-gnu/tegra/libnvfusacap.so

Please help to verify this lib if have launch problem.

libnvfusacap.so.r35.5.txt (193.6 KB)

更換後可以執行測試
待長時間測試

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