[gstreamer-bugs] [Bug 599991] fails to load libpython

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 26 01:55:05 PDT 2010


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

--- Comment #10 from Alessandro Decina <alessandro.d at gmail.com> 2010-08-26 08:55:01 UTC ---
Say we link libgstpythonplugin to -lpython2.6. If you load it from a regular C
app, that's fine, it will load libpython and work correctly.

But say you are working with a gst-python app and you load libgstpythonplugin.
That will load libpython, resulting in two different instances of the python
runtime loaded in memory - one loaded from the interpreter that is running your
app, one loaded from libgstpythonplugin. That would break in unexpected ways,
since the python runtime has significant global state (like the GIL).

The solution is to not link libgstpythonplugin to -lpython2.6. Then, when the
plugin is loaded, in its plugin_init check if the python runtime is already
loaded (running from a gst-python app), else load it with g_module_open.

I'm working on this, hopefully i'll have something working in the next few
days.

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