Getting Error when tried to create my custom sort tracker

Hardware Platform (Jetson / GPU) GPU - RTX 2060
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only)
• TensorRT Version 7.0.0
• NVIDIA GPU Driver Version (valid for GPU only) 460
• Issue Type( questions, new requirements, bugs) Questions
I am trying to create my custom sort tracker library but when the code is getting bigger I am getting output error.
Is there any memory limit for lib so file?

ERROR from element nvvideo-renderer: Output window was closed
Error details: ext/eglgles/gsteglglessink.c(894): gst_eglglessink_event_thread (): /GstPipeline:dstest2-pipeline/GstEglGlesSink:nvvideo-renderer
Returned, stopping playback
Deleting pipelinegstnvdcustomtracker.cpp (16.0 KB)

No. There is no lib size limitation.

Why do you think the problem is caused by deepstream?