# Deepstream-test3-app error

**URL:** <https://forums.developer.nvidia.com/t/deepstream-test3-app-error/192841>\
**Category:** DeepStream SDK\
**Tags:** yolo, gstreamer, deepstream\
**Created:** [October 23, 2021, 3:08am UTC](https://forums.developer.nvidia.com/t/deepstream-test3-app-error/192841 "2021-10-23T03:08:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rscgg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rscgg](https://forums.developer.nvidia.com/u/rscgg)\
**Post date:** [October 23, 2021, 3:08am UTC](https://forums.developer.nvidia.com/t/deepstream-test3-app-error/192841/1 "2021-10-23T03:08:29Z")

</div>

Please provide complete information as applicable to your setup.

\*\*• Jetson NX  
\*\*• DeepStream Version5.1  
\*\*• JetPack Version 4.5,Ubuntu18.04  
\*\*• TensorRT Version 7.1  
\*\*• yolov5s.engine

Hi,i have successfully run the base program of"deepstream-test3-app" and use yolov5s.engine for single channel RTSP processing,but when i use multi-channel RTSP input is ERROR.Please help me,thanks.  
example single: ./deepstream-test3-app ‘rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1’  
example multi(ERROR): ./deepstream-test3-app ‘rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1’ ‘rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1’

my dstest3\_pgie\_config.txt:  
[property]  
gpu-id=0  
force-implicit-batch-dim=1  
net-scale-factor=0.0039215697906911373  
model-color-format=0  
model-engine-file=yolov5s.engine  
labelfile-path=labels.txt  
num-detected-classes=80  
interval=0  
gie-unique-id=1  
process-mode=1  
network-type=0  
cluster-mode=4  
batch-size=2  
maintain-aspect-ratio=0  
parse-bbox-func-name=NvDsInferParseCustomYoloV5  
custom-lib-path=nvdsinfer\_custom\_impl\_Yolo/libnvdsinfer\_custom\_impl\_Yolo.so

[class-attrs-all]  
pre-cluster-threshold=0.25

ERROR:  
./deepstream-test3-app ‘rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1’ ‘rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1’

Now playing: rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1, rtsp://admin:byzt-2018@192.168.1.108:554/cam/realmonitor?channel=1&subtype=1,

Using winsys: x11  
0:00:04.770858648 11863 0x558d9b4400 INFO nvinfer gstnvinfer.cpp:619:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1702\> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.1/sources/yolov5-5.0/yolov5s.engine  
INFO: [Implicit Engine Info]: layers num: 2  
0 INPUT kFLOAT data 3x640x960  
1 OUTPUT kFLOAT prob 6001x1x1

0:00:04.771146457 11863 0x558d9b4400 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::checkBackendParams() \<nvdsinfer\_context\_impl.cpp:1643\> [UID = 1]: Backend has maxBatchSize 1 whereas 2 has been requested  
0:00:04.771207961 11863 0x558d9b4400 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1814\> [UID = 1]: deserialized backend context :/opt/nvidia/deepstream/deepstream-5.1/sources/yolov5-5.0/yolov5s.engine failed to match config params, trying rebuild  
0:00:04.806984321 11863 0x558d9b4400 INFO nvinfer gstnvinfer.cpp:619:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1716\> [UID = 1]: Trying to create engine from model files  
ERROR: failed to build network since there is no model file matched.  
ERROR: failed to build network.  
0:00:04.808547975 11863 0x558d9b4400 ERROR nvinfer gstnvinfer.cpp:613:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1736\> [UID = 1]: build engine file failed  
0:00:04.808614471 11863 0x558d9b4400 ERROR nvinfer gstnvinfer.cpp:613:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1822\> [UID = 1]: build backend context failed  
0:00:04.808671559 11863 0x558d9b4400 ERROR nvinfer gstnvinfer.cpp:613:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::initialize() \<nvdsinfer\_context\_impl.cpp:1149\> [UID = 1]: generate backend failed, check config file settings  
0:00:04.809142345 11863 0x558d9b4400 WARN nvinfer gstnvinfer.cpp:812:gst\_nvinfer\_start: error: Failed to create NvDsInferContext instance  
0:00:04.809216041 11863 0x558d9b4400 WARN nvinfer gstnvinfer.cpp:812:gst\_nvinfer\_start: error: Config file path: dstest3\_pgie\_config.txt, NvDsInfer Error: NVDSINFER\_CONFIG\_FAILED  
Running…  
ERROR from element primary-nvinference-engine: Failed to create NvDsInferContext instance  
Error details: /dvs/git/dirty/git-master\_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(812): gst\_nvinfer\_start (): /GstPipeline:dstest3-pipeline/GstNvInfer:primary-nvinference-engine:  
Config file path: dstest3\_pgie\_config.txt, NvDsInfer Error: NVDSINFER\_CONFIG\_FAILED  
Returned, stopping playback  
Deleting pipeline

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [October 25, 2021, 1:54am UTC](https://forums.developer.nvidia.com/t/deepstream-test3-app-error/192841/3 "2021-10-25T01:54:17Z")

</div>

> [@rscgg](#):
>
> 0:00:04.771207961 11863 0x558d9b4400 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1814\> [UID = 1]: deserialized backend context :/opt/nvidia/deepstream/deepstream-5.1/sources/yolov5-5.0/yolov5s.engine failed to match config params, trying rebuild

How did you generate the “yolov5s.engine” file? What is your original model? Your engine does not match the config you set in the config file. Please check your configs.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 16, 2021, 1:43am UTC](https://forums.developer.nvidia.com/t/deepstream-test3-app-error/192841/5 "2021-11-16T01:43:36Z")

</div>

Closed on November 16, 2021, 1:43am UTC

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