Segmentation Fault in GStreamer Python Application (GLib Issue)

System Information

  • GStreamer Version: 1.24.5
  • Python Version: 3.12.3

Issue Description

I am experiencing a segmentation fault in my GStreamer-based Python application when running a pipeline that processes an RTP stream. The error appears related to GLib.MainLoop and GObject references.

/usr/lib/python3/dist-packages/gi/overrides/GLib.py:642: Warning: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
  def _io_add_watch_get_args(channel, priority_, condition, *cb_and_user_data, **kwargs):
/usr/lib/python3/dist-packages/gi/overrides/GLib.py:642: Warning: g_object_set_qdata_full: assertion 'G_IS_OBJECT (object)' failed
  def _io_add_watch_get_args(channel, priority_, condition, *cb_and_user_data, **kwargs):

Fatal Python error: Segmentation fault

Current thread 0x00007f27675fb740 (most recent call first):
  Garbage-collecting
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 642 in _io_add_watch_get_args
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 690 in io_add_watch
  File "/usr/lib/python3/dist-packages/gi/_ossighelper.py", line 110 in wakeup_on_signal
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 496 in run
 

Could you suggest possible causes for this issue? any insights on diagnosing and resolving this would be greatly appreciated!