Memory leaking after restarting pipelines

Hi @video_encoder we have exact the same problem.

We tested it on embeded boards, linux and windows, they all show the same issue.
We checked the GST_TRACERS=leaks and did not find leaks
We measured the memory usage over time. cycles of 30 - 180
Loading HD-Video and play it for 10 second .

And we tested it with 3 versions 1.18.6, 1.22.2 and 1.24.5.
The graphs show the memory consumption 30 times every time the
pipeline_func is called

The text on the graph

befparse is the memory just before gst_parse_launch(.,.)
afterready is the memory after the pipeline is set in READY state
afterplay is the memory after PLAYED is done
statnull is the memory after state NULL

We also checked what unref does do and gst_deinit. Even after those there is still a lot of memory.

We also noticed that after a long pause, after GST_STATE_NULL the memory usage is lower but we can\t wait for 8 seconds between 2 plays.

Hope anyone has a suggestion

1 Like