[gst-devel] Memory leak using clutter-gst

Damien Lespiau damien.lespiau at gmail.com
Thu Jun 17 11:58:58 CEST 2010


On Mon, Jun 14, 2010 at 9:23 AM, JayReddy <avula.jayakrishna at gmail.com> wrote:
>
> Hi all

Hey,

> Using clutter-gst I have created an actor which can play videos. But then I
> have been facing a problem of memory leak as the usage of memory goes on
> increasing along with the progress of the video.

Clutter-gst does not seem to leak here. I've seen some GL drivers leak
before, the Intel mesa drivers from sometime last year (the one you
can find on Ubuntu 9.04 leaks, maybe the 9.10 one too). This does not
happen in the version of the drivers I have from Debian sid or Fedora
13).

clutter-gst is a very thin wrapper around playbin2 and uses a custom
sink to upload frames, The only ways it can leak massively is either:
    * leaking GstBuffers
    * the GL driver has a weird behaviour when creating/destroying a
lot of textures.

> Moreover it is taking much memory than other video players.

I can't see that here either and there's no reason why it would
consume much more memory than any other GStreamer-based player. The
memory usage you see is unlikely to be representative anyway as you
say you are leaking massively .

> Can I have a solution how to reduce the usage of memory and the memory leak.

Which platform/GPU/drivers are you using?

HTH,

-- 
Damien




More information about the gstreamer-devel mailing list