[Bug 797251] New: webrtcbin: might leak resources when changing to NULL
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Oct 5 04:38:22 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=797251
Bug ID: 797251
Summary: webrtcbin: might leak resources when changing to NULL
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Mac OS
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: aconchillo at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
If a pipeline that contains a webrtcbin element is set to PLAYING, the
"on-negotiation-needed" is emitted and in the callback we call "create-offer"
which enqueues an internal task (an idle source). Then, while the task is
executing we set the pipeline to NULL. This might not allow the idle source to
complete an all the resources associated to it are lost. The same might be true
for any other webrtcbin tasks (e.g. set-remote-description).
I have an app that creates and destroys webrtcbin and I'm running an stress
test to it. After a while, a bunch of resources (eventfd and network sockets as
well) are leaked.
I don't really have a backtrace or anything I can share right now, but I have
added a bunch of print statements to debug this and understand what's
happening.\.
It might also be that there is something wrong in my application, something I'm
still checking but reading at the code I think something weird is going on.
A bit more about my app. It's an app that might create multiple pipelines (in
my test currently 2) and each of those have a webrtcbin. Then, we might set the
pipelines to NULL at any point, unref them and create new ones, and the same
over and over.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list