Leaking 4 sockets per file played.

Tim Müller tim at centricular.com
Wed Oct 8 13:03:04 PDT 2014


On Wed, 2014-10-08 at 15:38 -0400, Stirling Westrup wrote:

Hi,

> I have a very strange issue with my video application. I'm using
> gstreamer 1.4.1, and everything works fine when I run my application
> by itself.
> 
> If, however, I have a python task launch my application, I find it
> leaks 4 sockets at the end of every file it plays, even though it is
> invoking my app with the exact same command line as when I start it by
> hand.
> 
> 
> I am baffled. I don't even know where to START to look for the
> problem. Does anyone have any ideas of what might be going wrong?

As a first step, it would be good to find out what kind of 
resource is leaking exactly. You say 'socket' - do you mean it's a
network socket, or is it a file descriptor in general? It would also be
helpful to know what elements are involved in your app.

valgrind has an option to track fd leaks I believe.

My first guess would've been that a bus object gets leaked/not freed
somewhere, but that wouldn't be 'sockets' then.

Cheers
 -Tim

--  
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list