Customized Deepstream app crashes gst_memory_get_sizes: assertion 'mem != NULL' failed

You can use DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums to identify the memory leak