Nvargus-daemon error

The platform we are using is Orin 32G with JetPack 5.1.4. We are currently using the SenYun S56 camera. Since the S56 camera outputs raw-format images, we need to use the ISP function on the Orin. The ISP files have been provided by SenYun, and we have modified the device tree file accordingly.

However, an error occurs when we run nvargus_nvraw --lps to query. We are unable to identify the root cause. We have not found the source code of nvargus-daemon, so we hope you can help us check the specific cause of the error.

The device tree configuration file is: brd602-gmsl-max96724-common.dtsi

The nvargus-daemon error log is attached in: argus-daemon.log

I started the nvargus-daemon using the following command:sudo enableCamPclLogs=5 enableCamScfLogs=5 nvargus-daemon

brd602-gmsl-max96724-common.dtsi.txt (71.2 KB)

argus-daemon.log (29.1 KB)

Looks like your device tree if for JP6.

You may check with vendor get the dts for JP5.

Thanks

I have modified the device tree and can see the device through nvargus_nvraw --lps, but when using the GStreamer plugin to acquire images, an error occurred. The method to acquire images is as follows:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=300 ! ‘video/x-raw(memory:NVMM), width=2560, height=1984, format=NV12, framerate=29/1’ ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test_video.mp4

The error log is in s56_daemon.log. Please tell me the cause of the error.

nvargus_nvraw --lps
nvargus_nvraw version 1.15.0
Number of supported sensor entries 1
Entry Source Mode Uniquename Resolution FR BitDepth Mode
Index Index Index CSI Dyn Type
0 0 0 cam0_bottomleft 2560x1984 29 10 10 Bayer

s56_daemon.log (12.3 KB)

What’s the gstreamer log?

Does v4l2-ctl capture successfully?

v4l2-ctl --stream-mmap -c bypass_mode=0

After modifying the device tree, the current status is as follows.

nvargus_nvraw --lps
nvargus_nvraw version 1.15.0
Number of supported sensor entries 1
Entry Source Mode Uniquename Resolution FR BitDepth Mode
Index Index Index CSI Dyn Type
0 0 0 cam0_bottomleft 2560x1984 29 10 10 Bayer

nvidia@miivii-tegra:~/Desktop$ v4l2-ctl --stream-mmap -c bypass_mode=0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.02 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.02 fps
<<<<<<<<<<^C

Then I used the following pipeline to capture images, but an exception occurred. The log of nvargus_daemon is nvargus_daemon.log, and the image capture command is as follows.

nvargus_daemon.log (13.0 KB)

gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=300 ! ‘video/x-raw(memory:NVMM), width=2560, height=1984, format=NV12, framerate=29/1’ ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test_video.mp4
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
NvMMLiteOpen : Block : BlockType = 4
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
GST_ARGUS: Creating output stream
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:828 Failed to create OutputStream
Got EOS from element “pipeline0”.
Execution ended after 0:00:00.781420591
Setting pipeline to NULL …
Freeing pipeline …

Please check by below command.

gst-launch-1.0 nvarguscamerasrc num-buffers=150 ! 'video/x-raw(memory:NVMM)' ! nvvidconv flip-method=1 ! fpsdisplaysink video-sink=fakesink text-overlay=false -v

gst-launch-1.0 nvarguscamerasrc num-buffers=150 ! ‘video/x-raw(memory:NVMM)’ ! nvvidconv flip-method=1 ! fpsdisplaysink video-sink=fakesink text-overlay=false -v
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1080, height=(int)1920, framerate=(fraction)30/1, format=(string)NV12
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw(memory:NVMM), width=(int)1080, height=(int)1920, framerate=(fraction)30/1, format=(string)NV12
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1080, height=(int)1920, framerate=(fraction)30/1, format=(string)NV12
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1080, height=(int)1920, framerate=(fraction)30/1, format=(string)NV12
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
GST_ARGUS: Creating output stream
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:828 Failed to create OutputStream
WARNING: from element /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: Pipeline construction is invalid, please add queues.
Additional debug info:
gstbasesink.c(1209): gst_base_sink_query_latency (): /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0:
Not enough buffering available for the processing deadline of 0:00:00.020000000, add enough queues to buffer 0:00:00.020000000 additional data. Shortening processing latency to 0:00:00.000000000.
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Got EOS from element “pipeline0”.
Execution ended after 0:00:00.719919792
Setting pipeline to NULL …
Freeing pipeline …

argus_daemon.log (12.3 KB)

Here is the device tree configuration for my video0 node.

miivii_max96724_a@4 {

            compatible = "sony,imx735";

            devnode = "video0";

            reg = <0x4>;



            */\* Physical dimensions of sensor \*/*

            physical_w = "15.0";

            physical_h = "12.5";



            sensor_model ="max96724";

            use_sensor_mode_id = "false";

            use_decibel_gain = "false";

            default_derserializer_reg = <0x2E>;

            mode0 {

                mclk_khz = "24000";

                        num_lanes = "4";

                        tegra_sinterface = "serial_c";

                        phy_mode = "DPHY";

                        vc_id = "1";

                        discontinuous_clk = "no";

                        dpcm_enable = "false";

                        cil_settletime = "0";

                        lane_polarity = "0";

                        dynamic_pixel_bit_depth = "10";

                        csi_pixel_bit_depth = "10";

                        mode_type = "bayer";

                        pixel_phase = "gbrg";

                        active_w = "2560";

                        active_h = "1984";

                        readout_orientation = "0";

                        line_length = "2800";

                        inherent_gain = "1";

                        pix_clk_hz = "200000000";

                        serdes_pix_clk_hz = "560000000";

                        gain_factor = "100";

                        min_gain_val = "100";

                        max_gain_val = "400";

                        step_gain_val = "1";

                        default_gain = "100";

                        min_hdr_ratio = "1";

                        max_hdr_ratio = "1";

                        framerate_factor = "1000000";

                        min_framerate = "30000000";

                        max_framerate = "30000000";

                        step_framerate = "1";

                        default_framerate = "30000000";

                        exposure_factor = "1000000";

                        min_exp_time = "40";

                        max_exp_time = "30000";

                        step_exp_time = "1";

                        default_exp_time = "30000";

                        embedded_metadata_height = "0";

            };



            ports {

                #address-cells = <1>;

                #size-cells = <0>;



                port@0 {

                    reg = <0>;

                    miivii_max96724_out0: endpoint {

                        vc-id = <1>;

                        port-index = <2>;

                        bus-width = <4>;

                        remote-endpoint = <&miivii_max96724_csi_in0>;

                    };

                };

            };

Suppose the root cause could be below message.

Do you run the command by ssh connection?

If yes need export DISPLAY=:0

(Argus) Error NotSupported: Failed to create EGLStream (in src/api/EGLOutputStreamImpl.cpp, function initialize(), line 121)
(Argus) Error NotSupported:  (propagating from src/api/CaptureSessionImpl.cpp, function createEGLOutputStream(), line 987)
(Argus) Error InvalidState: Unknown stream deleted. (in src/api/CaptureSessionImpl.cpp, function outputStreamDeleted(), line 1104)
(Argus) Error NotSupported:  (propagating from src/api/CaptureSessionImpl.cpp, function createOutputStreamInternal(), line 849)
Worker thread CaptureDispatcher stop
ViCsi capture path not initialized