App using gstwaylandsink leaks fds

Nicolas Dufresne nicolas at ndufresne.ca
Thu Mar 26 14:20:05 UTC 2020


Le jeudi 26 mars 2020 à 13:38 +0100, Guillermo Rodriguez Garcia a
écrit :
> However this results in fd leaks as described.
> If I explicitly remove the bus watch when the pipeline is destroyed:
> 
> g_source_remove (bus_watch_id);
> 
> then the leaks are gone.
> 
> Does this make sense?

The waylandsink is likely attached as a src of a GstMessage that is
stored in the bus. And then the bus or the pipeline is leaked, causing
waylandsink internal pool to be leaked, hence the "leaked" fds. Use
GST_DEBUG="GST_TRACER:7" GST_TRACERS=leak ... to get a list of leaked
objects.

Nicolas



More information about the gstreamer-devel mailing list