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.
MIT License
221 stars 73 forks source link

Unable to run. Checked all factors but can not find the reason. #51

Closed noobdevelop0512 closed 2 years ago

noobdevelop0512 commented 2 years ago

My platform is Nvidia Jetson Nano. Jetpack Version is 4.5.1. The CUDA version that comes with the system is 10.2. The Deepstream I installed is 5.1, It has been tested with official examples and installed successfully. The kafka I installed is 2.13-2.6.0 as the README in the repo. The quickstart event topic was successfully created.

I switched the libnvds_msgconv.so in the opt/nvidia/deepstream/deepstream-5.1/lib/ with the one in the repo cloned which is opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-occupancy-analytics/bin/jetson/.

I also changed all the '5.0' to '5.1' in the config/test5_config_file_src_infer_tlt.txt

The Build was successful.

In the Run phase, it says:

(deepstream-test5-analytics:24279): GLib-CRITICAL **: 17:24:37.349: g_strchug: assertion 'string != NULL' failed

(deepstream-test5-analytics:24279): GLib-CRITICAL : 17:24:37.349: g_strchomp: assertion 'string != NULL' failed WARN: : Num of Tiles less than number of sources, readjusting to 2 rows, 1 columns Warning: 'input-dims' parameter has been deprecated. Use 'infer-dims' instead. ** ERROR: : Failed to set pipeline to PAUSED Quitting ERROR from sink_sub_bin_sink2: Could not initialize supporting library. Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmsgbroker/gstnvmsgbroker.c(359): legacy_gst_nvmsgbroker_start (): /GstPipeline:pipeline/GstBin:sink_sub_bin2/GstNvMsgBroker:sink_sub_bin_sink2: unable to open shared 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

I have checked all the factors I know but still can not solve the problem. Can someone give me a hand?

monjha commented 2 years ago

Hi noobdeveloper,

The issue seems to be the kafka server. could you check if the kafka is running fine before starting the app?

noobdevelop0512 commented 2 years ago

Hi noobdeveloper,

The issue seems to be the kafka server. could you check if the kafka is running fine before starting the app?

noobdevelop0512 commented 2 years ago

Hi noobdeveloper,

The issue seems to be the kafka server. could you check if the kafka is running fine before starting the app?

Later I found the reason. The librdkafka was not installed correctly before the DS installation.