Memory Leak in basic Gstreamer pipeline code.
Arun Raghavan
arun at arunraghavan.net
Fri Oct 21 14:44:30 UTC 2016
On Fri, 21 Oct 2016, at 07:14 PM, Shrishty Deorari wrote:
> Hi
>
> I have a querry regarding the memory leak in the gstreamer pipeline.
> I am trying to run a Gstreamer pipeline code in a loop:
>
>
> The simpler version of my code: Reads the video file and displays on the
> screen using xvimagesink.
> Now for every Iteration or loop my memory increases by +.2 . This does'nt
> seem such a big issue here but when I run this for a log run like over
> night this memory leak issue becomes big.
>
> I am doing gst_object_unref at all the possible places i could. Please
> have
> a look at mini version of my whole program, here also problem is same.
> Please let me know if I am missing to clear out any memory.
>
> I have attached the File below.
Did you try running the code under valgrind? Using that, and looking at
the definitely/indirectly lost entries is usually helpful. There will be
a number of false positives, some of which can be suppressed with the
suppressions file in the common/ directory in the gstreamer sources.
With a quick run of your code over 2 iterations, I see no leaks.
-- Arun
More information about the gstreamer-devel
mailing list