I want to run deepstream-test5 application, but have some questions

Please provide complete information as applicable to your setup.

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson AGX
• DeepStream Version 7.0
**• JetPack Version (valid for Jetson only) 6.0 GA
**• TensorRT Version 8.6
**• NVIDIA GPU Driver Version (valid for GPU only) 540.3.0
**• Issue Type( questions, new requirements, bugs) questions
• 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 use deepstream-test5 application, the config is test5_config_file_src_infer.txt with 4 , but I find the result is abnormal.
The deepstream-test5-app occupy the mempy of GPU and does not quit normallly


The picture show there are four stream , but only three stream recevice EOF .

Because the deepstream-test5-app use the header file in the deepstream-app .
Now I pack the deepstream directory to there .
you can use the same code.
I want to find the reason of this problem
deepstream-app.zip (301.9 KB)
deepstream-test5.zip (246.3 KB)

The log is below

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:04.948884267 38967 0xaaaaebd3bf30 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2095> [UID = 1]: deserialized trt engine from :/home/debug/deepstream/deepstream/samples/models/Primary_Detector/resnet18_trafficcamnet.etlt_b4_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 3
0 INPUT kFLOAT input_1 3x544x960
1 OUTPUT kFLOAT output_bbox/BiasAdd 16x34x60
2 OUTPUT kFLOAT output_cov/Sigmoid 4x34x60

0:00:05.268998171 38967 0xaaaaebd3bf30 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2198> [UID = 1]: Use deserialized engine model: /home/debug/deepstream/deepstream/samples/models/Primary_Detector/resnet18_trafficcamnet.etlt_b4_gpu0_int8.engine
0:00:05.281261891 38967 0xaaaaebd3bf30 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/home/debug/deepstream/deepstream/samples/configs/deepstream-app/config_infer_primary.txt sucessfully
0:00:05.282486711 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.283113681 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.284390114 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.284838982 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.286087736 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.286548028 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.287482818 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet
0:00:05.287899112 38967 0xaaaaebd3bf30 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete: pad not activated yet

Runtime commands:
h: Print this help
q: Quit

p: Pause
r: Resume

** INFO: <bus_callback:291>: Pipeline ready

0:00:05.298382911 38967 0xfffe9c07ade0 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:05.298471642 38967 0xfffe9c07a920 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:05.298577875 38967 0xfffe9c07ade0 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:05.299291623 38967 0xfffe9c07a920 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:05.299404224 38967 0xfffeb0015cc0 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:05.299417343 38967 0xfffeb4016b60 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:05.299542423 38967 0xfffeb0015cc0 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:05.299545463 38967 0xfffeb4016b60 WARN qtdemux qtdemux.c:3121:qtdemux_parse_trex: failed to find fragment defaults for stream 2
Active sources : 0

**PERF: FPS 0 (Avg) FPS 1 (Avg) FPS 2 (Avg) FPS 3 (Avg)
Tue Sep 3 11:12:57 2024
**PERF: 0.00 (0.00) 0.00 (0.00) 0.00 (0.00) 0.00 (0.00)
Opening in BLOCKING MODE
0:00:05.437056371 38967 0xfffe90006c00 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder2:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
NvMMLiteOpen : Block : BlockType = 261
Opening in BLOCKING MODE
0:00:05.439243852 38967 0xfffe900076a0 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder3:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
0:00:05.445901296 38967 0xfffed0042a40 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder0:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
NvMMLiteOpen : Block : BlockType = 261
Opening in BLOCKING MODE
0:00:05.447553769 38967 0xfffe94008920 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder1:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
0:00:05.550872747 38967 0xfffe900076a0 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder3:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:05.550872683 38967 0xfffe90006c00 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder2:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:05.551869037 38967 0xfffe94008920 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder1:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:05.552246134 38967 0xfffed0042a40 WARN v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:nvv4l2decoder0:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
mimetype is video/x-raw
** INFO: <bus_callback:277>: Pipeline running

0:00:05.561771880 38967 0xfffe94008920 WARN v4l2videodec gstv4l2videodec.c:2311:gst_v4l2_video_dec_decide_allocation: Duration invalid, not setting latency
0:00:05.561774152 38967 0xfffed0042a40 WARN v4l2videodec gstv4l2videodec.c:2311:gst_v4l2_video_dec_decide_allocation: Duration invalid, not setting latency
0:00:05.561772072 38967 0xfffe900076a0 WARN v4l2videodec gstv4l2videodec.c:2311:gst_v4l2_video_dec_decide_allocation: Duration invalid, not setting latency
0:00:05.561909663 38967 0xfffe90006c00 WARN v4l2videodec gstv4l2videodec.c:2311:gst_v4l2_video_dec_decide_allocation: Duration invalid, not setting latency
0:00:05.563681394 38967 0xfffed0042a40 WARN v4l2bufferpool gstv4l2bufferpool.c:1116:gst_v4l2_buffer_pool_start:nvv4l2decoder0:pool:src Uncertain or not enough buffers, enabling copy threshold
0:00:05.563701424 38967 0xfffe94008920 WARN v4l2bufferpool gstv4l2bufferpool.c:1116:gst_v4l2_buffer_pool_start:nvv4l2decoder1:pool:src Uncertain or not enough buffers, enabling copy threshold
0:00:05.563736174 38967 0xfffe90006c00 WARN v4l2bufferpool gstv4l2bufferpool.c:1116:gst_v4l2_buffer_pool_start:nvv4l2decoder2:pool:src Uncertain or not enough buffers, enabling copy threshold
0:00:05.563773836 38967 0xfffe900076a0 WARN v4l2bufferpool gstv4l2bufferpool.c:1116:gst_v4l2_buffer_pool_start:nvv4l2decoder3:pool:src Uncertain or not enough buffers, enabling copy threshold
0:00:05.600130624 38967 0xfffe7c02c920 WARN v4l2bufferpool gstv4l2bufferpool.c:1567:gst_v4l2_buffer_pool_dqbuf:nvv4l2decoder0:pool:src Driver should never set v4l2_buffer.field to ANY
0:00:05.602466896 38967 0xfffe8402e240 WARN v4l2bufferpool gstv4l2bufferpool.c:1567:gst_v4l2_buffer_pool_dqbuf:nvv4l2decoder2:pool:src Driver should never set v4l2_buffer.field to ANY
0:00:05.604480051 38967 0xfffe74027b60 WARN v4l2bufferpool gstv4l2bufferpool.c:1567:gst_v4l2_buffer_pool_dqbuf:nvv4l2decoder1:pool:src Driver should never set v4l2_buffer.field to ANY
0:00:05.606473176 38967 0xfffe980089e0 WARN v4l2bufferpool gstv4l2bufferpool.c:1567:gst_v4l2_buffer_pool_dqbuf:nvv4l2decoder3:pool:src Driver should never set v4l2_buffer.field to ANY
WARNING; playback mode used with URI not conforming to timestamp format; check README; using system-time
WARNING; playback mode used with URI not conforming to timestamp format; check README; using system-time
WARNING; playback mode used with URI not conforming to timestamp format; check README; using system-time
WARNING; playback mode used with URI not conforming to timestamp format; check README; using system-time
Active sources : 4
Tue Sep 3 11:13:02 2024
**PERF: 36.81 (36.62) 43.82 (43.59) 43.82 (43.59) 43.82 (43.59)
Active sources : 4
Tue Sep 3 11:13:07 2024
**PERF: 29.73 (32.72) 40.58 (41.82) 40.58 (41.82) 40.58 (41.82)
Active sources : 4
Tue Sep 3 11:13:12 2024
**PERF: 30.20 (31.82) 39.70 (41.10) 39.70 (41.10) 39.70 (41.10)
Active sources : 4
Tue Sep 3 11:13:17 2024
**PERF: 30.04 (31.34) 39.97 (40.81) 39.97 (40.81) 39.97 (40.81)
Active sources : 4
Tue Sep 3 11:13:22 2024
**PERF: 29.55 (31.02) 36.85 (40.01) 36.85 (40.01) 36.85 (40.01)
Active sources : 4
Tue Sep 3 11:13:27 2024
**PERF: 30.41 (30.88) 39.87 (39.94) 39.87 (39.94) 39.87 (39.94)
Active sources : 4
Tue Sep 3 11:13:32 2024
**PERF: 29.93 (30.75) 39.44 (39.89) 39.44 (39.89) 39.44 (39.89)
nvstreammux: Successfully handled EOS for source_id=1
nvstreammux: Successfully handled EOS for source_id=3
nvstreammux: Successfully handled EOS for source_id=2
Active sources : 4
Tue Sep 3 11:13:37 2024
**PERF: 26.68 (29.83) 39.92 (36.96) 39.92 (36.96) 39.92 (36.96)
Active sources : 0
Tue Sep 3 11:13:42 2024
**PERF: 0.00 (26.44) 0.00 (32.76) 0.00 (32.76) 0.00 (32.76)
Active sources : 0
Tue Sep 3 11:13:47 2024
**PERF: 0.00 (23.75) 0.00 (29.42) 0.00 (29.42) 0.00 (29.42)
Active sources : 0
Tue Sep 3 11:13:52 2024
**PERF: 0.00 (21.55) 0.00 (26.69) 0.00 (26.69) 0.00 (26.69)
Active sources : 0
Tue Sep 3 11:13:57 2024
**PERF: 0.00 (19.72) 0.00 (24.43) 0.00 (24.43) 0.00 (24.43)
Active sources : 0
Tue Sep 3 11:14:02 2024
**PERF: 0.00 (18.18) 0.00 (22.52) 0.00 (22.52) 0.00 (22.52)
Active sources : 0
Tue Sep 3 11:14:07 2024
**PERF: 0.00 (16.86) 0.00 (20.89) 0.00 (20.89) 0.00 (20.89)
Active sources : 0
Tue Sep 3 11:14:12 2024
**PERF: 0.00 (15.73) 0.00 (19.48) 0.00 (19.48) 0.00 (19.48)
Active sources : 0
Tue Sep 3 11:14:17 2024
PERF: 0.00 (14.73) 0.00 (18.25) 0.00 (18.25) 0.00 (18.25)
^C
ERROR: <_intr_handler:703>: User Interrupted…

I run this problem many times, later I found this problem

Let’s narrow it down first. You can try the following solutions to see if there are still problems.

  1. change the sink group to fakesink
  2. just use 1 source group and set the num-sources to 4

Did you help me modify which value?

I modify the sync from 1 to 0 in the sink(Because the source_id is 0) . It works. Did you tell me the reason?

You can refer to the sync parameter of gstbasesink. If you set it to true, the pipeline need to synchronize with the clock when displaying.