Unexpected Segmentation faults when writing a GStreamer element in Python with custom properties

MathieuP mathieu.pierfitte at nirovision.com
Thu May 16 00:54:22 UTC 2019


It looks like the "raw" parts of my message didn't make it, so I'll add them
here.

> [...]
> What I am experimenting is, I can't even gst-inspect-1.0 the element
> without a Segmentation fault showing up when listing the properties. I got
> this line showing up right before the flags of the property are listed: 
sys:1: Warning: g_object_get_property: assertion 'G_IS_OBJECT (object)'
failed
> and then a Segmentation fault. gst-launch-1.0 obviously won't work either.
> [...]
> - Lately, I've noticed declaring a fake sinkpad with a chain function in
> the __init__ method also gets rid of the Segmentation fault, even though
> I'm never actually using this sinkpad: 
self.s = Gst.Pad.new_from_template(sinkpadtemplate, "sink")
self.s.set_chain_function_full(self.chain)
>
> So far, I don't have any better solution than this last point. However, I
> obviously don't feel confident going to prod with a weird behaviour I
> can't explain in my elements. Any hint on how to solve this?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list