Error in Deepstream-occupancy-analytics compilation

I’m using PeopleNet for counting of people entering and exiting the line. I’m following “deepstream-occupancy-analytics” from the GitHub using this link “GitHub - NVIDIA-AI-IOT/deepstream-occupancy-analytics: This is a sample application for counting people entering/leaving in a building using NVIDIA Deepstream SDK, Transfer Learning Toolkit (TLT), and pre-trained models. This application can be used to build real-time occupancy analytics applications for smart buildings, hospitals, retail, etc. The application is based on deepstream-test5 sample application.”. After following the procedures step by step as mentioned in ReadMe file, when I run “make” inside the “deepstream-occupancy-analytics”,

I get the error as mentioned below.

/usr/bin/ld: cannot find -lnvdsgst_customhelper
collect2: error: ld returned 1 exit status
Makefile:75: recipe for target ‘deepstream-test5-analytics’ failed
make: *** [deepstream-test5-analytics] Error 1

I have completed Deepstream SDK download using the official documentation as mentioned in NVIDIA. I have Deepstream SDK 6.0 downloaded on my Jetson Nano.

Kindly suggest me how to resolve this issue.

Regards
Suraj Singh

Environment

Hardware: Jetson Nano 4GB RAM
TensorRT Version: TensorRT 8.2.1
GPU Type: NVIDIA Maxwell architecture with 128 NVIDIA CUDA® cores
Nvidia Driver Version: JetPack 4.6.1
CUDA Version: CUDA 10.2
CUDNN Version: CuDNN 8.2.1
Operating System + Version: Ubuntu 18.04

Full traceback error repo: -

g++ -o deepstream-test5-analytics deepstream_test5_app_main.o …/deepstream-test5/deepstream_utc.o …/deepstream-app/deepstream_app.o …/deepstream-app/deepstream_app_config_parser.o …/…/apps-common/src/deepstream_tracker_bin.o …/…/apps-common/src/deepstream_primary_gie_bin.o …/…/apps-common/src/deepstream_source_bin.o …/…/apps-common/src/deepstream_audio_classifier_bin.o …/…/apps-common/src/deepstream_c2d_msg.o …/…/apps-common/src/deepstream_config_file_parser.o …/…/apps-common/src/deepstream_preprocess.o …/…/apps-common/src/deepstream_common.o …/…/apps-common/src/deepstream_sink_bin.o …/…/apps-common/src/deepstream_perf.o …/…/apps-common/src/deepstream_dewarper_bin.o …/…/apps-common/src/deepstream_dsexample.o …/…/apps-common/src/deepstream_secondary_gie_bin.o …/…/apps-common/src/deepstream_dsanalytics.o …/…/apps-common/src/deepstream_tiled_display_bin.o …/…/apps-common/src/deepstream_c2d_msg_util.o …/…/apps-common/src/deepstream_osd_bin.o …/…/apps-common/src/deepstream_streammux.o deepstream_nvdsanalytics_meta.o -L/opt/nvidia/deepstream/deepstream-6.0/lib/ -lnvdsgst_meta -lnvds_meta -lnvdsgst_helper -lnvdsgst_customhelper -lnvdsgst_smartrecord -lnvds_utils -lnvds_msgbroker -lm -lgstrtspserver-1.0 -ldl -Wl,-rpath,/opt/nvidia/deepstream/deepstream-6.0/lib/ -L/usr/local/cuda-10.2/lib64/ -lcudart pkg-config --libs gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0
/usr/bin/ld: cannot find -lnvdsgst_customhelper
collect2: error: ld returned 1 exit status
Makefile:75: recipe for target ‘deepstream-test5-analytics’ failed
make: *** [deepstream-test5-analytics] Error 1strong text****

The main branch is adapted to the DS-6.2+ version.

If you want to use it on DS-6.0, please use the ds_6.0 branch.

Hello @junshengy , after following the ds_6.0 branch, I get the same error as mentioned above.
I’m mentioning the entire error below: -

cc -c -o deepstream_test5_app_main.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 deepstream_test5_app_main.c
cc -c -o …/deepstream-test5/deepstream_utc.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/deepstream-test5/deepstream_utc.c
cc -c -o …/deepstream-app/deepstream_app.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/deepstream-app/deepstream_app.c
cc -c -o …/deepstream-app/deepstream_app_config_parser.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/deepstream-app/deepstream_app_config_parser.c
cc -c -o …/…/apps-common/src/deepstream_tracker_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_tracker_bin.c
cc -c -o …/…/apps-common/src/deepstream_primary_gie_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_primary_gie_bin.c
cc -c -o …/…/apps-common/src/deepstream_source_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_source_bin.c
cc -c -o …/…/apps-common/src/deepstream_audio_classifier_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_audio_classifier_bin.c
cc -c -o …/…/apps-common/src/deepstream_c2d_msg.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_c2d_msg.c
cc -c -o …/…/apps-common/src/deepstream_config_file_parser.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_config_file_parser.c
cc -c -o …/…/apps-common/src/deepstream_preprocess.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_preprocess.c
cc -c -o …/…/apps-common/src/deepstream_common.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_common.c
cc -c -o …/…/apps-common/src/deepstream_sink_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_sink_bin.c
cc -c -o …/…/apps-common/src/deepstream_perf.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_perf.c
cc -c -o …/…/apps-common/src/deepstream_dewarper_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_dewarper_bin.c
cc -c -o …/…/apps-common/src/deepstream_dsexample.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_dsexample.c
cc -c -o …/…/apps-common/src/deepstream_secondary_gie_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_secondary_gie_bin.c
cc -c -o …/…/apps-common/src/deepstream_dsanalytics.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_dsanalytics.c
cc -c -o …/…/apps-common/src/deepstream_tiled_display_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_tiled_display_bin.c
cc -c -o …/…/apps-common/src/deepstream_c2d_msg_util.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_c2d_msg_util.c
cc -c -o …/…/apps-common/src/deepstream_osd_bin.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_osd_bin.c
cc -c -o …/…/apps-common/src/deepstream_streammux.o -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 …/…/apps-common/src/deepstream_streammux.c
g++ -c -o deepstream_nvdsanalytics_meta.o -Wall -Werror -DPLATFORM_TEGRA -I…/…/apps-common/includes -I./includes -I…/…/…/includes -I…/deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I…/deepstream-test5 -I/usr/local/cuda-10.2/include pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0 deepstream_nvdsanalytics_meta.cpp
g++ -o deepstream-test5-analytics deepstream_test5_app_main.o …/deepstream-test5/deepstream_utc.o …/deepstream-app/deepstream_app.o …/deepstream-app/deepstream_app_config_parser.o …/…/apps-common/src/deepstream_tracker_bin.o …/…/apps-common/src/deepstream_primary_gie_bin.o …/…/apps-common/src/deepstream_source_bin.o …/…/apps-common/src/deepstream_audio_classifier_bin.o …/…/apps-common/src/deepstream_c2d_msg.o …/…/apps-common/src/deepstream_config_file_parser.o …/…/apps-common/src/deepstream_preprocess.o …/…/apps-common/src/deepstream_common.o …/…/apps-common/src/deepstream_sink_bin.o …/…/apps-common/src/deepstream_perf.o …/…/apps-common/src/deepstream_dewarper_bin.o …/…/apps-common/src/deepstream_dsexample.o …/…/apps-common/src/deepstream_secondary_gie_bin.o …/…/apps-common/src/deepstream_dsanalytics.o …/…/apps-common/src/deepstream_tiled_display_bin.o …/…/apps-common/src/deepstream_c2d_msg_util.o …/…/apps-common/src/deepstream_osd_bin.o …/…/apps-common/src/deepstream_streammux.o deepstream_nvdsanalytics_meta.o -L/opt/nvidia/deepstream/deepstream-6.0/lib/ -lnvdsgst_meta -lnvds_meta -lnvdsgst_helper -lnvdsgst_customhelper -lnvdsgst_smartrecord -lnvds_utils -lnvds_msgbroker -lm -lgstrtspserver-1.0 -ldl -Wl,-rpath,/opt/nvidia/deepstream/deepstream-6.0/lib/ -L/usr/local/cuda-10.2/lib64/ -lcudart pkg-config --libs gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0
/usr/bin/ld: cannot find -lnvdsgst_customhelper
collect2: error: ld returned 1 exit status
Makefile:75: recipe for target ‘deepstream-test5-analytics’ failed
make: *** [deepstream-test5-analytics] Error 1

the nvdsgst_customhelper file is not found in the library while compilation. KIndly suggest what I’m doing wrong.

I would be grateful for your support .

Regards
Suraj Singh

Hii @junshengy,

I resolved this error by removing nvdsgst_customhelper from the make file and then after running “make”, the compilation was done successfully.

So, I ran the following command to start the app as mentioned below: -

“./deepstream-test5-analytics -c config/test5_config_file_src_infer_tlt.txt”

But the app run failed, below is the error log :-

**** WARN: <parse_source:577>: Deprecated config ‘smart-rec-video-cache’ used in group [source0]. Use ‘smart-rec-cache’ instead**

**(deepstream-test5-analytics:9159): GLib-CRITICAL : 17:58:31.122: g_strchug: assertion ‘string != NULL’ failed

(deepstream-test5-analytics:9159): GLib-CRITICAL : 17:58:31.122: g_strchomp: assertion ‘string != NULL’ failed
Failed to load config file: No such file or directory
**** ERROR: <gst_nvinfer_parse_config_file:1303>: failed

**** ERROR: main:1088: Failed to set pipeline to PAUSED**
Quitting
ERROR from sink_sub_bin_sink2: Could not configure supporting library.
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmsgbroker/gstnvmsgbroker.cpp(402): legacy_gst_nvmsgbroker_start (): /GstPipeline:pipeline/GstBin:sink_sub_bin2/GstNvMsgBroker:sink_sub_bin_sink2:
unable to connect to broker library
ERROR from sink_sub_bin_sink2: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Debug info: gstbasesink.c(5265): gst_base_sink_change_state (): /GstPipeline:pipeline/GstBin:sink_sub_bin2/GstNvMsgBroker:sink_sub_bin_sink2:
Failed to start
App run failed

Kindly suggest me how to resolve this issue.

Regards

Suraj Singh

The makefile of the ds_6.0 branch does not depend on libnvdsgst_customhelper.

Are you using the master branch?

I think it may be because you have not started kafka.

tar -xzf kafka_2.13-2.6.0.tgz

cd kafka_2.13-2.6.0

bin/zookeeper-server-start.sh config/zookeeper.properties

bin/kafka-server-start.sh config/server.properties

bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092

Please refer to the steps in the README.

Hii @junshengy , i have started kafka now and most of the errors mentioned above are resolved completely. But there is something I think is missing which I’m not able to find out. The log I’m getting now is as follows: -

**** WARN: <parse_source:577>: Deprecated config ‘smart-rec-video-cache’ used in group [source0]. Use ‘smart-rec-cache’ instead**

**(deepstream-test5-analytics:17386): GLib-CRITICAL : 15:15:45.164: g_strchug: assertion ‘string != NULL’ failed

**(deepstream-test5-analytics:17386): GLib-CRITICAL : 15:15:45.164: g_strchomp: assertion ‘string != NULL’ failed
Warning: ‘input-dims’ parameter has been deprecated. Use ‘infer-dims’ instead.

Using winsys: x11 **
**** Message: 15:15:48.113: Failed to load file: No such file or directory

Error in creating instance
**** ERROR: main:1088: Failed to set pipeline to PAUSED**
Quitting
App run failed

I’m unable to identify which file is missing. Kindly help me in resolving this issue.

Regards

Suraj Singh

If you use the master branch, have you changed the value of msg-conv-config in the [sink1] group?

It should look like below

msg-conv-config=msgconv_sample_config.txt

Hii @junshengy, Thank you for your reply but,

I’m using ds_6.0 branch because my deepstream version is 6.0.
Kindly suggest accordingly.

Regards

Suraj Singh

There is a bug in ds_6.0, and the download link in model.sh is invalid.

But it doesn’t matter, this error is because the correct configuration file cannot be found.

You can try the master branch and delete -lnvdsgst_customhelper. I tried it and it works.

Hii @junshengy , Thankyou for your immediate support. I’m greatful for it.

But I have ubuntu os 18.04 which comes in jetpack 4.6.1.

I wanted to know if master branch for occupancy analytics supports the jetpack 4.6.1 and ubuntu OS 18.04?

Kindly suggest accordingly

Regards
Suraj Singh

Currently I don’t have a jetson nano, but I tested it using DS-6.0 docker and it works.

Hii @junshengy , I corrected the configuration file path and run the deepstream-test5 app but this time the error is different. The logs are mentioned below: -

**** WARN: <parse_source:577>: Deprecated config ‘smart-rec-video-cache’ used in group [source0]. Use ‘smart-rec-cache’ instead**

**(deepstream-test5-analytics:19001): GLib-CRITICAL : 16:07:22.690: g_strchug: assertion ‘string != NULL’ failed

**(deepstream-test5-analytics:19001): GLib-CRITICAL : 16:07:22.691: g_strchomp: assertion ‘string != NULL’ failed
Warning: ‘input-dims’ parameter has been deprecated. Use ‘infer-dims’ instead.

**Using winsys: x11 **
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-6.0/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: /home/tms/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-occupancy-analytics/config/peoplenet/resnet34_peoplenet_pruned.etlt_b1_gpu0_int8.engine open error
0:00:14.891132864 19001 0x558cf474f0 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1889> [UID = 1]: deserialize engine from file :/home/tms/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-occupancy-analytics/config/peoplenet/resnet34_peoplenet_pruned.etlt_b1_gpu0_int8.engine failed
0:00:14.901537470 19001 0x558cf474f0 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1996> [UID = 1]: deserialize backend context from engine from file :/home/tms/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-occupancy-analytics/config/peoplenet/resnet34_peoplenet_pruned.etlt_b1_gpu0_int8.engine failed, try rebuild
0:00:14.901616899 19001 0x558cf474f0 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1914> [UID = 1]: Trying to create engine from model files
WARNING: INT8 not supported by platform. Trying FP16 mode.
NvDsInferCudaEngineGetFromTltModel: Failed to open TLT encoded model file /home/tms/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-occupancy-analytics/config/peoplenet/resnet34_peoplenet_pruned.etlt
ERROR: Failed to create network using custom network creation function
ERROR: Failed to get cuda engine from custom library API
0:00:16.226198557 19001 0x558cf474f0 ERROR nvinfer gstnvinfer.cpp:632:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1934> [UID = 1]: build engine file failed
Segmentation fault (core dumped)

What issue is it actually and how to resolve this?

Also please suggest me if there is some way out to run this ds-6.0 without moving to master branch because I have already moved forward in it.

Regards

Suraj

Hii @junshengy, I had a query regarding the hardware.

I’m using Jetson Nano 4Gb so jetpack 5.1.2 supports Jetson Nano ?
or I need to use Jetson Orin Nano for it?

Regards
Suraj Singh

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

This error means that the model conversion failed. Can you share your configuration file?

What files are there in deepstream-occupancy-analytics/config/peoplenet directory ?

Or you should modify config_infer_primary_peoplenet.txt like master branch ?

tlt-model-key=tlt_encode
tlt-encoded-model=peoplenet/resnet34_peoplenet_pruned_int8.etlt
labelfile-path=peoplenet/labels.txt
int8-calib-file=peoplenet/resnet34_peoplenet_pruned_int8.txt

Jetson nano can only be upgraded to JP-4.6. If you have orin nano, you can try DS-6.3.I think DS-6.3 should work normally

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