Memory leak in level element

Stefan Sauer ensonic at hora-obscura.de
Fri Dec 2 19:43:30 UTC 2016


On 12/01/2016 06:02 PM, Vinod Kesti wrote:
> Hi Stefan,
>
> Valgrind is reporting any memory leak for the mentioned pipeline.
>
> But when I run it for log time, memory leak is seen. Memory keeps
> increasing, swap memory is also increasing after 90% memory.
Please share the valgrind log (e.g. put it on a pastbin site and include
the link). Please look for 'definitely lost' entries and those where it
is > 1 block, since that could be a reoccuring leak which would cause a
growth in memory use.

I just retested:
vg_memcheck gst-launch-1.0 audiotestsrc num-buffers=1000 ! level
post-messages=true interval=30000 ! fakesink
...
==26201== LEAK SUMMARY:
==26201==    definitely lost: 16,384 bytes in 1 blocks
==26201==    indirectly lost: 0 bytes in 0 blocks
==26201==      possibly lost: 610 bytes in 4 blocks
==26201==    still reachable: 43,134 bytes in 685 blocks
==26201==         suppressed: 480,576 bytes in 1,363 blocks

no growith leak. But I can confirm that top/htop shows a growth in
memory usage if post-messages=true.
Maybe file a bug with these information. Next step would be to review
the code and check if we're actually leaking, or if e.g. we're just
queueing up messages.

Stefan
>
> I checked memory usage through /proc/meminfo, free and ps. In all command I
> see memory increase.
>
> ~ Vinod  
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Memory-leak-in-level-element-tp4680952p4680982.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list