Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson Orin AGX
• DeepStream Version 7.1
• JetPack Version (valid for Jetson only) 6.2
• TensorRT Version 10.3.0
• 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)
Hi,
I have a pipeline like Face Detect (PGIE) → Face Recognition → Face Swap
|
→ Yolov8 (Full frame input from PGIE) → Person Attribute
This pipeline was earlier running with 7.0 and now I have transitioned to 7.1. If I disable the Face Swap model then the pipeline runs properly, however with Face swap the pipeline crashes as soon as I run it. The face swap model has two input layers one as image and other is a non image input layer. I have used gdb and collected backtrace as below.
App Crash Output
./deepstream-app/deepstream-app -c file_rtsp_config.txt --gst-plugin-path=deepstream/sources/gst-plugins/
(deepstream-app:17901): GLib-GObject-WARNING **: 15:28:24.806: g_object_set_is_valid_property: object class 'nvv4l2h264enc' has no property named 'gpu-id'
*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8550/ds-test ***
Opening in BLOCKING MODE
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
0:00:00.401046584 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_3> NvDsInferContext[UID 5]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 5]: deserialized trt engine from :solider_model.onnx_b1_gpu0_fp32.engine
Implicit layer support has been deprecated
INFO: [Implicit Engine Info]: layers num: 0
0:00:00.401154965 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_3> NvDsInferContext[UID 5]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 5]: Use deserialized engine model: solider_model.onnx_b1_gpu0_fp32.engine
0:00:00.407687128 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus:<secondary_gie_3> [UID 5]: Load new model:solider_config.txt sucessfully
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:00.719132678 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 4]: deserialized trt engine from :inswapper_128.onnx_b1_gpu0_fp32.engine
Implicit layer support has been deprecated
INFO: [Implicit Engine Info]: layers num: 0
0:00:00.719207524 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 4]: Use deserialized engine model: inswapper_128.onnx_b1_gpu0_fp32.engine
obj id from func: 1853066616
0:00:00.732390631 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus:<secondary_gie_2> [UID 4]: Load new model:swap_config.txt sucessfully
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:00.863601460 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 3]: deserialized trt engine from :w600k_r50.onnx_b1_gpu0_fp32.engine
Implicit layer support has been deprecated
INFO: [Implicit Engine Info]: layers num: 0
0:00:00.863684914 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 3]: Use deserialized engine model: w600k_r50.onnx_b1_gpu0_fp32.engine
0:00:00.865195637 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus:<secondary_gie_1> [UID 3]: Load new model:recog_config.txt sucessfully
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:00.933860017 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 2]: deserialized trt engine from :yolov8s.onnx_b1_gpu0_fp32.engine
Implicit layer support has been deprecated
INFO: [Implicit Engine Info]: layers num: 0
0:00:00.933949295 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 2]: Use deserialized engine model: yolov8s.onnx_b1_gpu0_fp32.engine
0:00:00.940072058 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus:<secondary_gie_0> [UID 2]: Load new model:yolo_config.txt sucessfully
Using offsets : 127.500000,127.500000,127.500000
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
[NvMultiObjectTracker] Initialized
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
0:00:01.064092176 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 1]: deserialized trt engine from :new_layer_det.onnx_b1_gpu0_fp32.engine
Implicit layer support has been deprecated
INFO: [Implicit Engine Info]: layers num: 0
0:00:01.064170255 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 1]: Use deserialized engine model: new_layer_det.onnx_b1_gpu0_fp32.engine
0:00:01.074782755 17901 0xaaaae97b2e10 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:scrfd_config.txt sucessfully
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
** INFO: <bus_callback:302>: Pipeline ready
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
** INFO: <bus_callback:288>: Pipeline running
NvMMLiteOpen : Block : BlockType = 4
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66 Level = 0
NVMEDIA: Need to set EMC bandwidth : 846000
NvVideo: bBlitMode is set to TRUE
double free or corruption (out)
Aborted (core dumped)
gdb backtrace
double free or corruption (out)
[New Thread 0xfffe8221f840 (LWP 18097)]
Thread 23 "secondary_gie_b" received signal SIGABRT, Aborted.
[Switching to Thread 0xffff8a7c7840 (LWP 18042)]
__pthread_kill_implementation (threadid=281473005156416, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (threadid=281473005156416, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x0000fffff640f254 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x0000fffff63ca67c in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x0000fffff63b7130 in __GI_abort () at ./stdlib/abort.c:79
#4 0x0000fffff6403308 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0xfffff64e43b8 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#5 0x0000fffff641957c in malloc_printerr (str=str@entry=0xfffff64df7b0 "double free or corruption (out)") at ./malloc/malloc.c:5664
#6 0x0000fffff641b694 in _int_free (av=0xfffff652bb10 <main_arena>, p=0xfffec406af30, have_lock=<optimized out>) at ./malloc/malloc.c:4588
#7 0x0000fffff641dc84 in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3391
#8 0x0000fffff7e93a18 in () at /opt/nvidia/deepstream/deepstream-7.1/lib/libnvds_meta.so
#9 0x0000fffff7e93094 [PAC] in nvds_destroy_batch_meta () at /opt/nvidia/deepstream/deepstream-7.1/lib/libnvds_meta.so
#10 0x0000fffff723ddec [PAC] in gst_buffer_foreach_meta () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#11 0x0000fffff7243918 in gst_buffer_pool_release_buffer () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#12 0x0000fffff7243a40 in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#13 0x0000fffff727b7f8 in gst_mini_object_unref () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#14 0x0000ffffc5646470 in () at /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so
#15 0x0000fffff7284a78 [PAC] in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#16 0x0000fffff7287cb8 in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#17 0x0000fffff72880e8 in gst_pad_push () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#18 0x0000ffffc09e6f30 in () at /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
#19 0x0000ffffc09e7048 in () at /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
#20 0x0000fffff7284a78 in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#21 0x0000fffff7287cb8 in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#22 0x0000fffff72880e8 in gst_pad_push () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#23 0x0000fffff726e63c in gst_proxy_pad_chain_default () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#24 0x0000fffff7284a78 in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#25 0x0000fffff7287cb8 in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#26 0x0000fffff72880e8 in gst_pad_push () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#27 0x0000ffffc09e36fc in () at /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
#28 0x0000fffff72b180c in () at /lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#29 0x0000fffff6f17668 in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0
#30 0x0000fffff6f14990 in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0
#31 0x0000fffff640d5c8 in start_thread (arg=0x0) at ./nptl/pthread_create.c:442
#32 0x0000fffff6475edc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79
Please resolve.
Thanks