Tegra_multimedia_api/samples/00_video_decode core dump

Hi,Nvidia:
I had a problem with jetson Nano.
Jetson nano:
system:Ubuntu 18.04.4 LTS
jetpack:4.4 DP [ L4T 32.4.2 ]

The example under the tegra_multimedia_api/samples/00_video_decode folder has a core dumped at runtime.
I did the following:
step1: export DISPLAY=":1"
step2: sudo ln -sf libv4l2.so.0 libv4l2.so
step3: ./video_decode H264 …/…/data/Video/sample_outdoor_car_1080p_10fps.h264

The errors are as follows:

Set governor to performance before enabling profiler
Creating decoder in blocking mode
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Starting decoder capture loop thread
Video Resolution: 1920x1080
[INFO] (NvEglRenderer.cpp:109) Setting Screen
width 1920 height 1080
Input file read complete
Query and set capture successful
Segmentation fault (core dumped)

When I was debugging with GDB, the following appeared:

Thread 7 “video_decode” received signal SIGSEGV,
Segmentation fault.
[Switching to Thread 0x7faddfd1d0 (LWP 27257)]
__GI___pthread_mutex_lock (mutex=0x900000001) at
pthread_mutex_lock.c:65
65 pthread_mutex_lock.c: No such file or directory.
(gdb) bt
#0 __GI___pthread_mutex_lock (mutex=0x900000001) at
pthread_mutex_lock.c:65
#1 0x0000007fb7cd7284 in NvBufferTransform () from /usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so.1.0.0
#2 0x000000555555daf4 in dec_capture_loop_fcn (arg=0x7fffffe950) at video_decode_main.cpp:917
#3 0x0000007fb7f88088 in start_thread (arg=0x7fffffe77f) at pthread_create.c:463
#4 0x0000007fb7a064ec in thread_start () at …/sysdeps/unix/sysv/linux/aarch64/clone.S:78

1 Like

Hi,
You may not run correct version of the samples. Please install the samples through SDKManager and check

/usr/src/jetson_multimedia_api