Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson) Jetson AGX Thor
• DeepStream Version 8.0
• JetPack Version (valid for Jetson only) JetPack 7.0 L4T R38.2.2
• TensorRT Version 10.13.2
• NVIDIA GPU Driver Version (valid for GPU only) Driver Version: 580.00 CUDA Version: 13.0
• Issue Type( questions, new requirements, bugs) 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)
Background:
- I run the deepstream-image-meta-test example within the nvcr.io/nvidia/deepstream:8.0-triton-multiarch image, but encountered two problems.
Problem 1: When I set frameData.saveImg = TRUE and save the image, sometimes there will be black lines in the picture.
NvDsObjEncUsrArgs frameData = {0};
/* Preset */
frameData.isFrame = 1;
/* To be set by user */
frameData.saveImg = TRUE;
frameData.attachUsrMeta = TRUE;
/* Set if Image scaling Required */
frameData.scaleImg = FALSE;
frameData.scaledWidth = 0;
frameData.scaledHeight = 0;
/* Quality */
frameData.quality = 80;
/* Set to calculate time taken to encode JPG image. */
if (calc_enc)
{
frameData.calcEncodeTime = 1;
}
/* Main Function Call */
nvds_obj_enc_process(ctx, &frameData, ip_surf, NULL, frame_meta);
Problem 2: When I set frameData.scaleImg= TRUE, a segmentation fault will definitely occur.
NvDsObjEncUsrArgs frameData = {0};
/* Preset */
frameData.isFrame = 1;
/* To be set by user */
frameData.saveImg = TRUE;
frameData.attachUsrMeta = TRUE;
/* Set if Image scaling Required */
frameData.scaleImg = TRUE;
frameData.scaledWidth = 720;
frameData.scaledHeight = 406;
/* Quality */
frameData.quality = 80;
/* Set to calculate time taken to encode JPG image. */
if (calc_enc)
{
frameData.calcEncodeTime = 1;
}
/* Main Function Call */
nvds_obj_enc_process(ctx, &frameData, ip_surf, NULL, frame_meta);
Segmentation fault info:
Thread 7 "deepstream-imag" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xfffd83a298c0 (LWP 327235)]
0x0000fffff7aac954 in nvds_obj_enc_process () from /opt/nvidia/deepstream/deepstream-8.0/lib/libnvds_batch_jpegenc.so
(gdb) bt full
#0 0x0000fffff7aac954 in nvds_obj_enc_process () at /opt/nvidia/deepstream/deepstream-8.0/lib/libnvds_batch_jpegenc.so
#1 0x0000aaaaaaaa27bc [PAC] in pgie_src_pad_buffer_probe (pad=0xaaaaab648190 [GstPad|src], info=0xfffd83a28c00, ctx=0xaaaaab784010)
at deepstream_image_meta_test.c:270
frameData = {saveImg = false, attachUsrMeta = true, scaleImg = true, scaledWidth = 720, scaledHeight = 406, fileNameImg = '\000' <repeats 1023 times>, objNum = 0, quality = 80, isFrame = true, calcEncodeTime = false}
frame_meta = 0xfffd20001090
num_rects = 0
buf = 0xfffd2d68e940
inmap = {memory = 0xfffd2c00aa50, flags = GST_MAP_READ, data = 0xfffd2c00aac0 "", size = 72, maxsize = 72, user_data = {0x0, 0x0, 0x0, 0x0}, _gst_reserved = {0x0, 0x0, 0x0, 0x0}}
__func__ = "pgie_src_pad_buffer_probe"
ip_surf = 0xfffd2c00aac0
obj_meta = 0x0
vehicle_count = 0
person_count = 0
l_frame = 0xfffd240773b0
l_obj = 0x0
batch_meta = 0xfffd20000f40
calc_enc_str = 0x0
calc_enc = 0
#2 0x0000fffff7eaa1a0 in ??? () at /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#3 0x0000fffff7c4dca0 [PAC] in g_hook_list_marshal () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#4 0x0000fffff7eaa764 [PAC] in ??? () at /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#5 0x0000fffff7eafc14 [PAC] in ??? () at /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#6 0x0000fffff7eb02b0 [PAC] in gst_pad_push () at /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0
#7 0x0000fffde38e627c [PAC] in ??? () at /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so
#8 0x0000fffff7c91388 in ??? () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#9 0x0000fffff77f595c [PAC] in ??? () at /usr/lib/aarch64-linux-gnu/libc.so.6
#10 0x0000fffff785ba4c in ??? () at /usr/lib/aarch64-linux-gnu/libc.so.6
By the way, I can run it normally on my RTX 3090. Could you please take a look and see if it’s a bug?


