Fail run the deepstream-occupancy-analytics on Jetson nano

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Jetson Nano
• DeepStream Version: 6.0.1
• JetPack Version (valid for Jetson only) :4.5.1-b17
• TensorRT Version: 8.2.1.9
• NVIDIA GPU Driver Version (valid for GPU only)
• 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)

I am getting the following error.

anil@anil-desktop:/opt/nvidia/deepstream/deepstream- 
6.0/sources/apps/sample_apps/deepstream-occupancy-analytics$ ./deepstream- 
test5-analytics -c config/dstest_occupancy_analytics.txt 

(deepstream-test5-analytics:11129): GLib-CRITICAL **: 17:11:17.368: g_strchug: assertion 'string != NULL' failed

(deepstream-test5-analytics:11129): GLib-CRITICAL **: 17:11:17.368: g_strchomp: assertion 'string != NULL' failed
** WARN: <create_pipeline:1170>: 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.

Using winsys: x11 
gstnvtracker: Loading low-level lib at 
/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
gstnvtracker: Failed to open low-level lib at 
/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
dlopen error: /opt/nvidia/vpi1/lib64/libnvvpi.so.1: undefined symbol: 
NvMediaLDCUpdateTNR2Params
gstnvtracker: Failed to initilaize low level lib.
** ERROR: <main:1088>: Failed to set pipeline to PAUSED
Quitting
App run failed

Please help me. Thanks.

What is the output when you run ldd /opt/nvidia/vpi1/lib64/libnvvpi.so.1 ?

Is there any output from the following command line?

readelf -s -W /usr/lib/aarch64-linux-gnu/nvidia/libnvmedia.so|grep NvMediaLDCUpdateTNR2Params

@junshengy for your response.

Blockquote
anil@anil-desktop:~$ ldd /opt/nvidia/vpi1/lib64/libnvvpi.so.1
linux-vdso.so.1 (0x0000007fa6e9f000)
libnvbuf_utils.so.1.0.0 => /usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so.1.0.0 (0x0000007fa391e000)
libnvmedia.so => /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so (0x0000007fa38b4000)
libnvrm.so => /usr/lib/aarch64-linux-gnu/tegra/libnvrm.so (0x0000007fa3871000)
libnvrm_graphics.so => /usr/lib/aarch64-linux-gnu/tegra/libnvrm_graphics.so (0x0000007fa3851000)
libnvtvmr.so => /usr/lib/aarch64-linux-gnu/tegra/libnvtvmr.so (0x0000007fa37c1000)
libnvos.so => /usr/lib/aarch64-linux-gnu/tegra/libnvos.so (0x0000007fa37a3000)
libEGL.so.1 => /usr/lib/aarch64-linux-gnu/libEGL.so.1 (0x0000007fa3782000)
libEGL_nvidia.so.0 => /usr/lib/aarch64-linux-gnu/tegra-egl/libEGL_nvidia.so.0 (0x0000007fa3657000)
libcudart.so.10.2 => /usr/local/cuda-10.2/lib64/libcudart.so.10.2 (0x0000007fa35cf000)
libcuda.so.1 => /usr/lib/aarch64-linux-gnu/tegra/libcuda.so.1 (0x0000007fa268c000)
libcufft.so.10 => /usr/local/cuda-10.2/lib64/libcufft.so.10 (0x0000007f965e4000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f965b8000)
libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f965a3000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f964ea000)
libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f964c6000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f9636d000)
/lib/ld-linux-aarch64.so.1 (0x0000007fa6e73000)
libnvddk_vic.so => /usr/lib/aarch64-linux-gnu/tegra/libnvddk_vic.so (0x0000007f9634f000)
libnvbuf_fdmap.so.1.0.0 => /usr/lib/aarch64-linux-gnu/tegra/libnvbuf_fdmap.so.1.0.0 (0x0000007f9633c000)
libnvdc.so => /usr/lib/aarch64-linux-gnu/tegra/libnvdc.so (0x0000007f9631c000)
libnvparser.so => /usr/lib/aarch64-linux-gnu/tegra/libnvparser.so (0x0000007f962e0000)
librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007f962c9000)
libGLdispatch.so.0 => /usr/lib/aarch64-linux-gnu/libGLdispatch.so.0 (0x0000007f9619d000)
libnvidia-glsi.so.32.5.0 => /usr/lib/aarch64-linux-gnu/tegra/libnvidia-glsi.so.32.5.0 (0x0000007f960f0000)
libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f95f5c000)
libnvrm_gpu.so => /usr/lib/aarch64-linux-gnu/tegra/libnvrm_gpu.so (0x0000007f95f18000)
libnvidia-fatbinaryloader.so.440.18 => /usr/lib/aarch64-linux-gnu/tegra/libnvidia-fatbinaryloader.so.440.18 (0x0000007f95ea9000)
libnvimp.so => /usr/lib/aarch64-linux-gnu/tegra/libnvimp.so (0x0000007f95e94000)
libnvidia-rmapi-tegra.so.32.5.0 => /usr/lib/aarch64-linux-gnu/tegra/libnvidia-rmapi-tegra.so.32.5.0 (0x0000007f95e51000)

and

anil@anil-desktop:~$ readelf -s -W /usr/lib/aarch64-linux- 
gnu/nvidia/libnvmedia.so|grep NvMediaLDCUpdateTNR2Params
readelf: Error: '/usr/lib/aarch64-linux-gnu/nvidia/libnvmedia.so': No such file

For your system, it should be /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so

It seems that Jetpack is not installed correctly. Since you are using Jetpack Nano, try the following link

https://docs.nvidia.com/jetson/archives/jetpack-archived/jetpack-461/install-jetpack/index.html

@junshengy

Thanks for your response.

But I have a Jetson nano with third part carrier board, which has its own BSP.

Blockquote
anil@anil-desktop:~$ sudo apt-cache show nvidia-jetpack
[sudo] password for anil:
Package: nvidia-jetpack
Version: 4.5.1-b17
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 4.5.1-b17), nvidia-opencv (= 4.5.1-b17), nvidia-cudnn8 (= 4.5.1-b17), nvidia-tensorrt (= 4.5.1-b17), nvidia-visionworks (= 4.5.1-b17), nvidia-container (= 4.5.1-b17), nvidia-vpi (= 4.5.1-b17), nvidia-l4t-jetson-multimedia-api (>> 32.5-0), nvidia-l4t-jetson-multimedia-api (<< 32.6-0)
Homepage: Jetson - Embedded AI Computing Platform | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_4.5.1-b17_arm64.deb
Size: 29390
SHA256: 13c10e9a53ec51c261ce188d626966dfca27f26b2ed94ba700147c1ba3e35399
SHA1: 81047a7779241bbf16763dbd1c4c12cf8c9d0496
MD5sum: 54916439514f39af5234b3a43e329910
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

DS-6.0 is compatible with Jetpack 4.6.1 GA

Here is the compatibility table.

https://docs.nvidia.com/metropolis/deepstream/6.3/dev-guide/text/DS_Quickstart.html#id5

You need to consult the supplier.

@junshengy

Jetpack 4.5.1 does not support deepstream version 6.0.1. I switch to Jetpack 4.6.2 and it works. Thanks.