Error with first sample run with Deepstream6.0

I am trying to run deepstream for detection and tracking,

here is the sample cmd i tried

gst-launch-1.0 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4 ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvinfer config-file-path=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_infer_primary.txt ! nvtracker tracker-width=640 tracker-height=480 ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so ll-config-file=config_tracker_NvDCF_perf.yml enable-batch-process=1 ! nvvideoconvert ! ‘video/x-raw(memory:NVMM),format=RGBA’ ! nvmultistreamtiler ! nvdsosd ! nvvideoconvert ! nvegltransform ! nveglglessink

from DeepStream SDK FAQ - #15 by Fiona.Chen

The output is
Setting pipeline to PAUSED …

Using winsys: x11
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
~~ CLOG[/dvs/git/dirty/git-master_linux/deepstream/sdk/src/utils/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp, getConfigRoot() @line 54]: [NvTrackerParams::getConfigRoot()] !!![WARNING] Invalid low-level config file caused an exception, but will go ahead with the default config values
gstnvtracker: Batch processing is ON
gstnvtracker: Past frame output is OFF
~~ CLOG[/dvs/git/dirty/git-master_linux/deepstream/sdk/src/utils/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp, getConfigRoot() @line 54]: [NvTrackerParams::getConfigRoot()] !!![WARNING] Invalid low-level config file caused an exception, but will go ahead with the default config values
[NvMultiObjectTracker] Initialized
ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/…/…/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine open error
0:00:03.758874065 31209 0x55740fe200 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1889> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/…/…/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine failed
0:00:03.781779180 31209 0x55740fe200 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1996> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/…/…/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine failed, try rebuild
0:00:03.781937452 31209 0x55740fe200 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1914> [UID = 1]: Trying to create engine from model files
ERROR: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine opened error
0:03:54.975430240 31209 0x55740fe200 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1942> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 3
0 INPUT kFLOAT input_1 3x368x640
1 OUTPUT kFLOAT conv2d_bbox 16x23x40
2 OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40

0:03:55.082173927 31209 0x55740fe200 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_infer_primary.txt sucessfully
Pipeline is PREROLLING …
Got context from element ‘eglglessink0’: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;

(gst-launch-1.0:31209): GStreamer-WARNING **: 12:38:37.668: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstlibav.so’: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block

(gst-launch-1.0:31209): GStreamer-WARNING **: 12:38:37.689: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstlibav.so’: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Got EOS from element “pipeline0”.
Execution ended after 0:00:48.117851457
Setting pipeline to PAUSED …
Setting pipeline to READY …
[NvMultiObjectTracker] De-initialized
Setting pipeline to NULL …
Freeing pipeline …

i want to know that how can i do detection and tracking using deepstream
if there is any tutorial for beginners please share

Thank you

How did you run the command line? docker or ssh, or other ways? This error means that eglsink cannot be created.
If you use ssh, you need to first execute export DISPLAY=:0 or export DISPLAY=:1.

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvinfer.html

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvtracker.html

You can refer to the two links above

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

hey @junshengy
Thank you very much for the quick response.

here are my setup details:

• Hardware Platform: Jetson xavier nx
• deepstream-app version 6.0.1 & DeepStreamSDK 6.0.1
• JetPack Version: 4.6.1
• TensorRT Version : 8.2.1-1+cuda10.2

• Issue Type: Running detection, tracking and age,gender detection on deepstream

I was able to run the same command after a system restart, tried with rtsp also, it worked
Thank you for the above links , i was able to understand both concepts clearly.

Now my question is , i want to run yolov8, deepsort and deepface libraries using deepstream
can you share any resources to perform this.

And again, thank you very much for your support.

If you use xavier nx, you can upgrade to DS-6.3 first, then refer to the link below

@junshengy thank you for the response
I am currently installing deepstream 6.3
having some issues with installation Quickstart Guide — DeepStream documentation 6.4 documentation

  1. E: Unable to locate package libssl3

sudo apt-get install ./deepstream-6.3_6.3.0-1_amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘deepstream-6.3:amd64’ instead of ‘./deepstream-6.3_6.3.0-1_amd64.deb’
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
deepstream-6.3:amd64 : Depends: cuda-cudart-12-1:amd64 but it is not installable
Depends: cuda-cudart-dev-12-1:amd64 but it is not installable
Depends: libnpp-12-1:amd64 but it is not installable
Depends: libnpp-dev-12-1:amd64 but it is not installable
Depends: libcairo2:amd64 (>= 1.15.10) but it is not installable
Depends: libglib2.0-0:amd64 (>= 2.56.4) but it is not installable
Depends: libgstreamer1.0-0:amd64 (>= 1.14.1) but it is not installable
Depends: libgstreamer1.0-dev:amd64 (>= 1.14.1) but it is not installable
Depends: libgstreamer-plugins-base1.0-0:amd64 (>= 1.14.1) but it is not installable
Depends: libgstreamer-plugins-base1.0-dev:amd64 (>= 1.14.1) but it is not installable
Depends: libnvinfer8:amd64 (>= 8.0.0) but it is not installable
Depends: libnvinfer-dev:amd64 (>= 8.0.0) but it is not installable
Depends: libnvparsers8:amd64 (>= 8.0.0) but it is not installable
Depends: libnvparsers-dev:amd64 (>= 8.0.0) but it is not installable
Depends: libnvonnxparsers8:amd64 (>= 8.0.0) but it is not installable
Depends: libnvonnxparsers-dev:amd64 (>= 8.0.0) but it is not installable
Depends: libnvinfer-plugin8:amd64 (>= 8.0.0) but it is not installable
Depends: libnvinfer-plugin-dev:amd64 (>= 8.0.0) but it is not installable
Depends: libpangocairo-1.0-0:amd64 (>= 1.40.14) but it is not installable
Depends: libx11-6:amd64 but it is not installable
Depends: libyaml-cpp-dev:amd64 (>= 0.6.2) but it is not installable
E: Unable to correct problems, you have held broken packages.

and now if i do,
deepstream-app -v
deepstream-app: error while loading shared libraries: libyaml-cpp.so.0.6: cannot open shared object file: No such file or directory

so the current DS6.0 is not working

please share the steps to install DS6.3

Since you use xavier nx, you can only upgrade to DS-6.3.

First you need to upgrade JetPack to version 5.1.2.

For detailed steps, you can refer to the link below

https://docs.nvidia.com/metropolis/deepstream/6.3/dev-guide/text/DS_Quickstart.html#install-jetson-sdk-components

Will the jetack 5.0.2 work ?

Here is the compatibility table

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html#platform-and-os-compatibility

Understood,
i am using a vendor product.
I have ubuntu 18

i will try to check with JetPack version 5.1.2.

for the time being will simply reinstalling deepstream 6.0.1 work to get the working system back ?

Update: reinstalling is not working
followed, Quickstart Guide — DeepStream 6.0 Release documentation

but facing
Reinstallation of nvidia-l4t-gstreamer is not possible, it cannot be downloaded.
Reinstallation of nvidia-l4t-multimedia is not possible, it cannot be downloaded.
Reinstallation of nvidia-l4t-core is not possible, it cannot be downloaded.

@junshengy
i was able to run GitHub - marcoslucianops/DeepStream-Yolo: NVIDIA DeepStream SDK 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models
Thank you for the support

1 Like

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