Please help in detecting memleak in playbin2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Please help in detecting memleak in playbin2

saepia
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

Thank you in advance,

m.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

gsttest.vala (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Please help in detecting memleak in playbin2

Tim-Philipp Müller-2
On Thu, 2011-07-14 at 08:58 +0200, [hidden email] 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



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please help in detecting memleak in playbin2

saepia
Do you mean this:

https://launchpad.net/~gstreamer-developers/+archive/ppa

There's no 0.10.35 there.

m.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please help in detecting memleak in playbin2

Tim-Philipp Müller-2
On Thu, 2011-07-14 at 18:01 +0200, [hidden email] wrote:
> Do you mean this:
>
> https://launchpad.net/~gstreamer-developers/+archive/ppa
>
> There's no 0.10.35 there.

0.10.34 will also do (0.10.35 = 0.10.34 + one or two build patches).

It's newer than 0.10.32 in any case ;)

-Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please help in detecting memleak in playbin2

saepia
Ok, I found that at least one of that leaks was caused by bug in Vala
GStreamer bindings.

https://bugzilla.gnome.org/show_bug.cgi?id=654631

I keep digging :)

m.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel