Please provide complete information as applicable to your setup.
**• Hardware Platform (Jetson nx)
**• DeepStream Version 6.0
**• JetPack Version (valid for Jetson only)4.6
**• TensorRT Version 8.0.1.6
**• 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)
we are now facing some memory leak issue.
To make sure that the leaks are not caused by us and that it is possible to easily reproduce them we created a simple pipeline.
pipeline = gst_parse_launch(“nvv4l2camerasrc device=/dev/video0 bufapi-version=1
! video/x-raw(memory:NVMM),format=(string)UYVY,width=1920,height=1080,framerate=30/1
! nvvideoconvert
! video/x-raw(memory:NVMM),format=(string)RGBA
! m.sink_0 nvstreammux name=m batch-size=1 width=1920 height=1080 batched-push-timeout=40000
! nvinfer config-file-path=dstest2_pgie_config.txt
! nvtracker tracker-width=640 tracker-height=384 gpu-id=0 enable-batch-process=1 ll-lib-file=libnvds_nvmultiobjecttracker.so
! nvvideoconvert
! xvimagesink”, NULL);
The detector is in sample_apps/test2.
The program is executed 20 times according to steps 1 to 6 below:
1.gst_parse_launch pipeline;
2.set pipeline GST_STATE_PLAYING
3.sleep 10 second
4.sent event :gst_event_new_eos();
5.set pipeline GST_STATE_NULL
6.gst_object_unref(pipeline)
After 20 times of execution, the memory increases by 170MB.
After removing nvtracker from the above pipeline, the memory leakage is 100MB, and nvtracker accounts for about 70m.
If you replace it with other detectors without memory leakage, you can also test that nvtracker will leak about 70m
Can you provide us with some solutions to this memory leak problem?Thank you.