A strange error from on deepstream-app

• Hardware Platform (Jetson / GPU) Custom Board using Jetson Nano Module
• DeepStream Version 4.0 (jetpack 4.3) ← must
• JetPack Version (valid for Jetson only) 4.3

hi i had a strange error on my custom deepstream-app

below is a brief structure of my pipeline.

as described in the picture, my app have a menu UI Plugin and I’m using a valve to control the pipe line.

They are(infer & menu) switched well and there is no problem even after repeated attempts.

However, if the pipeline flow is maintained in the menu UI for more than 20 to 30 minutes,

If open the “infer valve” again. An error is occurring in the nvinfer plugin.

error is below

set ui mode



**PERF: 29.86 (30.00) 29.86 (30.00)

**PERF: 30.26 (30.00) 30.26 (30.00)

**PERF: 29.93 (30.00) 29.93 (30.00)

**PERF: 30.26 (30.00) 30.26 (30.00)

**PERF: 29.94 (30.00) 29.94 (30.00)

set infer mode

**PERF: 0.00 (30.00) 0.00 (30.00)

2:00:50.153290672 18278 0x555dc5ef70 WARN nvinfer gstnvinfer.cpp:1830:gst_nvinfer_output_loop:<primary_gie_classifier> error: Internal data stream error.
2:00:50.153881297 18278 0x555dc5ef70 WARN nvinfer gstnvinfer.cpp:1830:gst_nvinfer_output_loop:<primary_gie_classifier> error: streaming stopped, reason not-negotiated (-4)
ERROR from primary_gie_classifier: Internal data stream error.
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(1830): gst_nvinfer_output_loop (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInfer:primary_gie_classifier:
streaming stopped, reason not-negotiated (-4)
ERROR from src_elem: Internal data stream error.
Debug info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin1/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)
ERROR from src_elem: Internal data stream error.
Debug info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)
ERROR from primary_gie_queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstQueue:primary_gie_queue:
streaming stopped, reason not-negotiated (-4)

what do i check?

could you help me ?

Hi @ThomasHan,

  1. can you upgrade to DS5.0GA to check?

  2. from below error, you can check the line#1830 of gstnvinfer.cpp

    2:00:50.153290672 18278 0x555dc5ef70 WARN nvinfer gstnvinfer.cpp:1830:gst_nvinfer_output_loop:<primary_gie_classifier> error: Internal data stream error.
    2:00:50.153881297 18278 0x555dc5ef70 WARN nvinfer gstnvinfer.cpp:1830:gst_nvinfer_output_loop:<primary_gie_classifier> error: streaming stopped, reason not-negotiated (-4)

hi @mchi

  1. I can’t migrate right now. (because the storage is full)

  2. Following your advice, I built the gst_nvinfer to debug, but the error below occurred.

/opt/nvidia/deepstream/deepstream-4.0/sources/gst-plugins/gst-nvinfer$ sudo CUDA_VER=10.0 make install
g++ -c -o gstnvinfer.o -fPIC -std=c++11 -DDS_VERSION="4.0.2" -I /usr/local/cuda-10.0/include -I …/…/includes -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -DIS_TEGRA gstnvinfer.cpp
In file included from gstnvinfer.cpp:19:0:
gstnvinfer.h:29:10: fatal error: nvtx3/nvToolsExt.h: No such file or directory
include “nvtx3/nvToolsExt.h”
^~~~~~~~~~~~~~~~~~~~

how can i find to nvtx3/nvToolExt.h ??

I checked DS5.0 code, no DS code includes nvToolExt.h, is it added by yourself?

no this is original source file in deepstream 4.0

really, gst_nvinfer.cpp contained some method [nvtxDomainRangePop, nvtxDomainRangePushEx …]
ex

nvtxDomainRangeEnd(nvinfer->nvtx_domain, buf_process_range); in function of gst_nvinfer_submit_input_buffer

could you tell me how do i include nvtoolsext.h.
or have no any problem when I delete methods related to nvToolsext.h?

Hi @ThomasHan,
please find the header file under /usr/local/cuda/, i.e

/usr/local/cuda-10.0/targets/aarch64-linux/include/nvtx3/