Python bindings sample apps cant run

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
**• DeepStream Version 6.2
• 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)

±----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:98:00.0 Off | 0 |
| N/A 40C P8 10W / 70W | 11MiB / 15360MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1515 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 2263 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+

glueck@glueck-WHITLEY:~$ lspci | grep -i vga
03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
glueck@glueck-WHITLEY:~$ sudo lshw -C display
[sudo] password for glueck:
*-display
description: VGA compatible controller
product: ASPEED Graphics Family
vendor: ASPEED Technology, Inc.
physical id: 0
bus info: pci@0000:03:00.0
version: 41
width: 32 bits
clock: 33MHz
capabilities: pm msi vga_controller cap_list rom
configuration: driver=ast latency=0
resources: irq:19 memory:94000000-97ffffff memory:98000000-9801ffff ioport:3000(size=128) memory:c0000-dffff
*-display
description: 3D controller
product: TU104GL [Tesla T4]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:98:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration: driver=nvidia latency=0
resources: iomemory:206f0-206ef iomemory:206f0-206ef irq:18 memory:da000000-daffffff memory:206fc0000000-206fcfffffff memory:206ff0000000-206ff1ffffff memory:db000000-db3fffff memory:206ec0000000-206fbfffffff memory:206fd0000000-206fefffffff
glueck@glueck-WHITLEY:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.24

glueck@glueck-WHITLEY:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-test3$ ./deepstream-test3-app dstest3_config.yml
Now playing : file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
Using file: dstest3_config.yml
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See CUDA_MODULE_LOADING in CUDA C++ Programming Guide
WARNING: …/nvdsinfer/nvdsinfer_model_builder.cpp:1487 Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-test3/…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine open error
0:00:03.320525213 29573 0x559d69c1d440 WARN nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1897> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-test3/…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed
0:00:03.370163820 29573 0x559d69c1d440 WARN nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2002> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-test3/…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed, try rebuild
0:00:03.370241183 29573 0x559d69c1d440 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1923> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See CUDA_MODULE_LOADING in CUDA C++ Programming Guide
WARNING: [TRT]: The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
WARNING: …/nvdsinfer/nvdsinfer_model_builder.cpp:1459 Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine opened error
0:00:30.035964207 29573 0x559d69c1d440 WARN nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1950> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See CUDA_MODULE_LOADING in CUDA C++ Programming Guide
INFO: …/nvdsinfer/nvdsinfer_model_builder.cpp:610 [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:30.134006115 29573 0x559d69c1d440 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus: [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-test3/dstest3_pgie_config.yml sucessfully
Decodebin child added: source

(deepstream-test3-app:29573): GLib-GObject-WARNING **: 15:49:45.180: g_object_set_is_valid_property: object class ‘GstFileSrc’ has no property named ‘drop-on-latency’
Decodebin child added: decodebin0
Running…

Decodebin child added: qtdemux0
Decodebin child added: multiqueue0
Decodebin child added: h264parse0
Decodebin child added: capsfilter0
Decodebin child added: aacparse0
Decodebin child added: avdec_aac0
Decodebin child added: nvv4l2decoder0
Frame Number = 0 Number of objects = 14 Vehicle Count = 8 Person Count = 6
Frame Number = 1 Number of objects = 12 Vehicle Count = 7 Person Count = 5
Frame Number = 2 Number of objects = 13 Vehicle Count = 7 Person Count = 6
Frame Number = 3 Number of objects = 11 Vehicle Count = 6 Person Count = 5
cuGraphicsGLRegisterBuffer failed with error(219) gst_eglglessink_cuda_init texture = 1
Frame Number = 4 Number of objects = 14 Vehicle Count = 7 Person Count = 7
Frame Number = 5 Number of objects = 14 Vehicle Count = 8 Person Count = 6
Frame Number = 6 Number of objects = 10 Vehicle Count = 6 Person Count = 4
Frame Number = 7 Number of objects = 11 Vehicle Count = 7 Person Count = 4
Frame Number = 8 Number of objects = 11 Vehicle Count = 6 Person Count = 5
0:00:30.544663092 29573 0x559d69071360 WARN nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop: error: Internal data stream error.
0:00:30.544674105 29573 0x559d69071360 WARN nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop: error: streaming stopped, reason not-negotiated (-4)
ERROR from element primary-nvinference-engine: Internal data stream error.
Error details: gstnvinfer.cpp(2369): gst_nvinfer_output_loop (): /GstPipeline:dstest3-pipeline/GstNvInfer:primary-nvinference-engine:
streaming stopped, reason not-negotiated (-4)
Returned, stopping playback
Frame Number = 9 Number of objects = 10 Vehicle Count = 6 Person Count = 4
Frame Number = 10 Number of objects = 11 Vehicle Count = 6 Person Count = 5
Deleting pipeline

advantech server dgpu

as the error shown, elgsink failed to initialize. please refer to 20. How to trouble shoot error cuGraphicsGLRegisterBuffer failed with error(219) gst_eglglessink_cuda_init texture = 1.
or you might use DS6.4 docker(DeepStream | NVIDIA NGC) if you are using docker.

we didnt use docker, i’ve tried reviewing but nothing works, can you give me some startup guide to start from like codes and places in my server to find the error

please refer to this topic. we suggest using fakesink, which will not show the output video. here is the method.

  1. add this modification patch.txt (168 Bytes)in deepstream_test3_app.
  2. rebuild test3 then execute export NVDS_TEST3_PERF_MODE=1 && ./deepstream-test3-app dstest3_config.yml

Hello,

Please check if you’re using the correct display driver and cuda versions for DeepStream 6.2 and T4 GPU: Quickstart Guide — DeepStream documentation 6.4 documentation

we’re using deepstream 6.2

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.
Hello,

Your issue is typically indicative of the wrong nvidia driver version, but your driver version looks correct according to your nvidia-smi output (525.147.05).

Can you check that CUDA 11.8 is installed? You can see which CUDA versions are installed by running:

ls -l /usr/local | grep cuda

Please also check that your TensorRT version is 8.5.2.2 by running:

dpkg -l | grep TensorRT

You can see the full list of dependencies and their versions for DS 6.2 here:

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