Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson Xavier NX
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.6[L4T 32.6.1]
• TensorRT Version 7.1.3
• NVIDIA GPU Driver Version (valid for GPU only)
• 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)
• 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 Memory leak use Gstreamer decode H264 and I find the solution with rebuild/replace the nvv4l2decoder plugin.But when I download the source code from https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/sources/t186/public_sources.tbz2 and modified base Syncpts and threads leak using gstreamer plugin nvv4l2decoder and rebuild, memory leak is still exist.
My c++ code is below:
int main()
{
int n=10;
VideoCapture cap(“rtspsrc location=rtsp://admin:Aa111111@10.200.44.38:554/h264/ch1/main/av_stream latency = 5 ! rtph264depay ! h264parse ! nvv4l2decoder! nvvidconv ! video/x-raw,format=(string)BGRx ! videoconvert ! appsink sync = false”);
Mat frame;
while(n>0)
{
n--;
cap>>frame;
}
cap.release();
return 0;
}
And my debug command is:
valgrind --log-file=valgrind1_1.log --tool7=memcheck --leak-check=full --show-reachable=no ./main
The valgrind1_1.log is:
==20463== LEAK SUMMARY:
==20463== definitely lost: 16,520 bytes in 3 blocks
==20463== indirectly lost: 59 bytes in 1 blocks
==20463== possibly lost: 6,764 bytes in 65 blocks
==20463== still reachable: 2,353,999 bytes in 30,181 blocks
==20463== of which reachable via heuristic:
==20463== length64 : 3,152 bytes in 68 blocks
==20463== newarray : 1,936 bytes in 41 blocks
==20463== suppressed: 0 bytes in 0 blocks
==20463== Reachable blocks (those to which a pointer was found) are not shown.
==20463== To see them, rerun with: --leak-check=full --show-leak-kinds=all