[Bug 730138] New: gst_bin_add introspection annatation error leads to python resource leak

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed May 14 09:21:12 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=730138
  GStreamer | gstreamer (core) | 1.2.3

           Summary: gst_bin_add introspection annatation error leads to
                    python resource leak
    Classification: Platform
           Product: GStreamer
           Version: 1.2.3
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: barry.scott at onelan.co.uk
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=276542)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=276542)
test script

Using python bindings any element added to a GstBin will be leaked when the bin
is disposed of.

It appears that the element is not (transfer full) but should be (transfer
none).
This error leads to the pygobject code adding an extra ref to the element that
stops it being disposed of.

The attached gst_test.py demonstrates the problem. It pauses to allow you to
look at the /proc/xxx/fd to see how many fd's have been opened.

$ python gst_test.py
init done

[At this point only 3 fds]

e1 <__main__.GstAlsaSink object at 0x133f320 (GstAlsaSink at 0x14cc850)>

[At this point only 5 fds, a socketpair accounts for extra 2]

e1 added to b <__main__.GstAlsaSink object at 0x133f320 (GstAlsaSink at
0x14cc850)> <Bin object at 0x133f2d0 (GstBin at 0x1548030)>

b None

e1 None

[At this point only 5 fds, but it should be 3
the socketpair has not been close as the alsasink has not been disposed of]

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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