Please help in detecting memleak in playbin2
Tim-Philipp Müller
t.i.m at zen.co.uk
Thu Jul 14 02:17:13 PDT 2011
On Thu, 2011-07-14 at 08:58 +0200, marcin at saepia.net wrote:
Hi,
> could someone help me in detecting what causes memleak in such simple
> code as attached?
>
> It basically tries to open non-existent URL (it is intended), so it
> enters the loop.
>
> Process' memory usage grows constantly. It's not too fast, but constant.
>
> I've checked that by using htop (RES column) and by typing
>
> cat /proc/PID/smaps | grep Private_Dirty | awk '{sum += $2} END {print sum}'
>
> What could be the reason for growing memory usage if this piece of
> code does all the time the same action?
>
>
> I've tried to change from jackaudiosink to fakesink - no effect, so it
> is propably playbin2 itself?
>
> I use gstreamer0.10-plugins-base 0.10.32-1ubuntu5 and vala 0.12
I would recommend you
a) try the latest version (ie. core/base 0.10.35) (there is a GStreamer
PPA for ubuntu)
and
b) rewrite the test case in C and then run it in valgrind, with
G_SLICE=always-malloc valgrind --leak-check=yes ./testapp
Cheers
-Tim
More information about the gstreamer-devel
mailing list