App using gstwaylandsink leaks fds

Guillermo Rodriguez Garcia guille.rodriguez at gmail.com
Thu Mar 26 14:25:33 UTC 2020


Hello,

El jue., 26 mar. 2020 a las 15:20, Nicolas Dufresne
(<nicolas at ndufresne.ca>) escribió:
>
> 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.

Will do.

However I'm still in doubt: Am I expected to explicitly remove the bus
watch when I destroy the pipeline? Or should this happen
automatically?

Thanks,

Guillermo Rodriguez Garcia
guille.rodriguez at gmail.com


More information about the gstreamer-devel mailing list