[Bug 702062] New: crash after Gst.Pad.new_from_template

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 12 00:19:17 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=702062
  GStreamer | gst-python | 1.0.6

           Summary: crash after Gst.Pad.new_from_template
    Classification: Platform
           Product: GStreamer
           Version: 1.0.6
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: drewp at bigasterisk.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


I am making my own GstElement with a chain function from python, and I'm
porting from 0.10 (working) to 1.0. The included file is enough to cause a seg
fault. 

ubuntu package versions (ubuntu 12.10 with gstreamer-developers PPA):
gir1.2-gstreamer-1.0                      1.0.6-1~ubuntu12.10.1~ppa4
libgstreamer1.0-0:amd64                   1.0.6-1~ubuntu12.10.1~ppa4

If I don't print sinkpad and I don't set_chain_function_full, I can actually
run the pipeline. But printing sinkpad is enough to trigger a crash, and that
set_chain_function_full invocation is probably wrong, too. It fails with a
similar crash.



import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst
GObject.threads_init()
Gst.init(None)

pt = Gst.PadTemplate.new("sinkpadtemplate",
                         Gst.PadDirection.SINK,
                         Gst.PadPresence.ALWAYS,
                         Gst.caps_from_string('ANY'))
print pt

sinkpad = Gst.Pad.new_from_template(pt, "sink")

print "sinkpad"
print sinkpad # this is enough to segfault

print "set chain"
def chainfunc(pad, buffer):
    return Gst.FLOW_OK
sinkpad.set_chain_function_full(chainfunc, None)

-- 
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