# Error running deepstream sample apps

**URL:** <https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280>\
**Category:** DeepStream SDK\
**Created:** [April 26, 2021, 10:02am UTC](https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280 "2021-04-26T10:02:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya9](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aditya9](https://forums.developer.nvidia.com/u/aditya9)\
**Post date:** [April 26, 2021, 10:02am UTC](https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280/1 "2021-04-26T10:02:08Z")

</div>

ERROR from element nvv4l2-decoder: Device ‘/dev/nvidia0’ failed during initialization  
Error details: gstv4l2object.c(4074): gst\_v4l2\_object\_set\_format\_full (): /GstPipeline:dstest2-pipeline/nvv4l2decoder:nvv4l2-decoder:  
Call to S\_FMT failed for H264 @ 1280x720: Unknown error -1

Hardware - 1070 dgpu  
deepstream - 5.1

---

<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:** [April 27, 2021, 5:23am UTC](https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280/3 "2021-04-27T05:23:40Z")

</div>

**There is no update from you for a period, assuming this is not an issue any more.  
Hence we are closing this topic. If need further support, please open a new one.  
Thanks**

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)**

---

<div class="post-metadata">

**Author:** ![648811273](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@648811273](https://forums.developer.nvidia.com/u/648811273)\
**Post date:** [September 14, 2021, 6:25am UTC](https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280/5 "2021-09-14T06:25:31Z")

</div>

请问同样的问题，环境是ubuntu20.04，2080ti，deepstream5.1，运行deepstream-python-test2时遇到同样的错误，错误如下：  
deepstream\_test\_2.py:178: PyGIDeprecationWarning: Since version 3.11, calling threads\_init is no longer needed. See: [Projects/PyGObject/Threading - GNOME Wiki!](https://wiki.gnome.org/PyGObject/Threading)  
GObject.threads\_init()  
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Creating EGLSink

Playing file sample\_720p.h264  
Adding elements to Pipeline

Linking elements in the Pipeline

deepstream\_test\_2.py:382: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead  
loop = GObject.MainLoop()  
Starting pipeline

ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1523 Deserialize engine failed because file path: /home/jovyan/work/Secondary\_VehicleTypes/resnet18.caffemodel\_b16\_int8.engine open error  
0:00:13.684326455 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 4]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1691\> [UID = 4]: deserialize engine from file :/home/jovyan/work/Secondary\_VehicleTypes/resnet18.caffemodel\_b16\_int8.engine failed  
0:00:13.685409876 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 4]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1798\> [UID = 4]: deserialize backend context from engine from file :/home/jovyan/work/Secondary\_VehicleTypes/resnet18.caffemodel\_b16\_int8.engine failed, try rebuild  
0:00:13.685423586 251 0x55fbaef59270 INFO nvinfer gstnvinfer.cpp:619:gst\_nvinfer\_logger: NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1716\> [UID = 4]: Trying to create engine from model files  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Reading Calibration Cache for calibrator: EntropyCalibration2  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Generated calibration scales using calibration cache. Make sure thatcalibration cache has latest scales.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: To regenerate calibration cache, please delete the existing one. TensorRT will generate a new calibration cache.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Detected 1 inputs and 1 output network tensors.  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1495 Serialize engine failed because of file path: /home/jovyan/work/Secondary\_VehicleTypes/resnet18.caffemodel\_b16\_gpu0\_int8.engine opened error  
0:00:30.470172456 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 4]: Warning from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1744\> [UID = 4]: failed to serialize cude engine to file: /home/jovyan/work/Secondary\_VehicleTypes/resnet18.caffemodel\_b16\_gpu0\_int8.engine  
INFO: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:685 [Implicit Engine Info]: layers num: 2  
0 INPUT kFLOAT input\_1 3x224x224  
1 OUTPUT kFLOAT predictions/Softmax 6x1x1

0:00:30.477248401 251 0x55fbaef59270 INFO nvinfer gstnvinfer\_impl.cpp:313:notifyLoadModelStatus: [UID 4]: Load new model:dstest2\_sgie3\_config.txt sucessfully  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1523 Deserialize engine failed because file path: /home/jovyan/work/Secondary\_CarMake/resnet18.caffemodel\_b16\_int8.engine open error  
0:00:30.477641585 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 3]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1691\> [UID = 3]: deserialize engine from file :/home/jovyan/work/Secondary\_CarMake/resnet18.caffemodel\_b16\_int8.engine failed  
0:00:30.477653839 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 3]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1798\> [UID = 3]: deserialize backend context from engine from file :/home/jovyan/work/Secondary\_CarMake/resnet18.caffemodel\_b16\_int8.engine failed, try rebuild  
0:00:30.477660373 251 0x55fbaef59270 INFO nvinfer gstnvinfer.cpp:619:gst\_nvinfer\_logger: NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1716\> [UID = 3]: Trying to create engine from model files  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Reading Calibration Cache for calibrator: EntropyCalibration2  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Generated calibration scales using calibration cache. Make sure thatcalibration cache has latest scales.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: To regenerate calibration cache, please delete the existing one. TensorRT will generate a new calibration cache.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Detected 1 inputs and 1 output network tensors.  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1495 Serialize engine failed because of file path: /home/jovyan/work/Secondary\_CarMake/resnet18.caffemodel\_b16\_gpu0\_int8.engine opened error  
0:00:40.871404510 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 3]: Warning from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1744\> [UID = 3]: failed to serialize cude engine to file: /home/jovyan/work/Secondary\_CarMake/resnet18.caffemodel\_b16\_gpu0\_int8.engine  
INFO: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:685 [Implicit Engine Info]: layers num: 2  
0 INPUT kFLOAT input\_1 3x224x224  
1 OUTPUT kFLOAT predictions/Softmax 20x1x1

0:00:40.877730263 251 0x55fbaef59270 INFO nvinfer gstnvinfer\_impl.cpp:313:notifyLoadModelStatus: [UID 3]: Load new model:dstest2\_sgie2\_config.txt sucessfully  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1523 Deserialize engine failed because file path: /home/jovyan/work/Secondary\_CarColor/resnet18.caffemodel\_b16\_int8.engine open error  
0:00:40.878035419 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1691\> [UID = 2]: deserialize engine from file :/home/jovyan/work/Secondary\_CarColor/resnet18.caffemodel\_b16\_int8.engine failed  
0:00:40.878057800 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1798\> [UID = 2]: deserialize backend context from engine from file :/home/jovyan/work/Secondary\_CarColor/resnet18.caffemodel\_b16\_int8.engine failed, try rebuild  
0:00:40.878063976 251 0x55fbaef59270 INFO nvinfer gstnvinfer.cpp:619:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1716\> [UID = 2]: Trying to create engine from model files  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Reading Calibration Cache for calibrator: EntropyCalibration2  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Generated calibration scales using calibration cache. Make sure thatcalibration cache has latest scales.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: To regenerate calibration cache, please delete the existing one. TensorRT will generate a new calibration cache.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Detected 1 inputs and 1 output network tensors.  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1495 Serialize engine failed because of file path: /home/jovyan/work/Secondary\_CarColor/resnet18.caffemodel\_b16\_gpu0\_int8.engine opened error  
0:00:51.857319121 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 2]: Warning from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1744\> [UID = 2]: failed to serialize cude engine to file: /home/jovyan/work/Secondary\_CarColor/resnet18.caffemodel\_b16\_gpu0\_int8.engine  
INFO: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:685 [Implicit Engine Info]: layers num: 2  
0 INPUT kFLOAT input\_1 3x224x224  
1 OUTPUT kFLOAT predictions/Softmax 12x1x1

0:00:51.864405386 251 0x55fbaef59270 INFO nvinfer gstnvinfer\_impl.cpp:313:notifyLoadModelStatus: [UID 2]: Load new model:dstest2\_sgie1\_config.txt sucessfully  
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds\_mot\_klt.so  
gstnvtracker: Optional NvMOT\_RemoveStreams not implemented  
gstnvtracker: Batch processing is OFF  
gstnvtracker: Past frame output is OFF  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1523 Deserialize engine failed because file path: /home/jovyan/work/Primary\_Detector/resnet10.caffemodel\_b1\_int8.engine open error  
0:00:51.880422076 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() \<nvdsinfer\_context\_impl.cpp:1691\> [UID = 1]: deserialize engine from file :/home/jovyan/work/Primary\_Detector/resnet10.caffemodel\_b1\_int8.engine failed  
0:00:51.880477486 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() \<nvdsinfer\_context\_impl.cpp:1798\> [UID = 1]: deserialize backend context from engine from file :/home/jovyan/work/Primary\_Detector/resnet10.caffemodel\_b1\_int8.engine failed, try rebuild  
0:00:51.880510294 251 0x55fbaef59270 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  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Reading Calibration Cache for calibrator: EntropyCalibration2  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Generated calibration scales using calibration cache. Make sure thatcalibration cache has latest scales.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: To regenerate calibration cache, please delete the existing one. TensorRT will generate a new calibration cache.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.  
INFO: …/nvdsinfer/nvdsinfer\_func\_utils.cpp:39 [TRT]: Detected 1 inputs and 2 output network tensors.  
ERROR: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:1495 Serialize engine failed because of file path: /home/jovyan/work/Primary\_Detector/resnet10.caffemodel\_b1\_gpu0\_int8.engine opened error  
0:00:59.259545606 251 0x55fbaef59270 WARN nvinfer gstnvinfer.cpp:616:gst\_nvinfer\_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() \<nvdsinfer\_context\_impl.cpp:1744\> [UID = 1]: failed to serialize cude engine to file: /home/jovyan/work/Primary\_Detector/resnet10.caffemodel\_b1\_gpu0\_int8.engine  
INFO: …/nvdsinfer/nvdsinfer\_model\_builder.cpp:685 [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:00:59.264065233 251 0x55fbaef59270 INFO nvinfer gstnvinfer\_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest2\_pgie\_config.txt sucessfully  
Error: gst-resource-error-quark: Device ‘/dev/nvidia0’ failed during initialization (1): gstv4l2object.c(4074): gst\_v4l2\_object\_set\_format\_full (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2-decoder:  
Call to S\_FMT failed for H264 @ 1280x720: Unknown error -1

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [September 28, 2021, 2:12am UTC](https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280/6 "2021-09-28T02:12:43Z")

</div>

Hi [648811273](https://forums.developer.nvidia.com/u/648811273),

This is an old thread, please help to open a new topic. Thanks

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [September 28, 2021, 2:12am UTC](https://forums.developer.nvidia.com/t/error-running-deepstream-sample-apps/176280/7 "2021-09-28T02:12:45Z")

</div>

Closed on September 28, 2021, 2:12am UTC


