After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665362 - Mixing static and GI bindings in examples causes crashes
Mixing static and GI bindings in examples causes crashes
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
1.1
Other Linux
: Normal normal
: ---
Assigned To: Martin Pitt
Adam Plumb
Depends on:
Blocks:
 
 
Reported: 2011-12-02 06:16 UTC by Martin Pitt
Modified: 2011-12-02 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Port remaining examples to GI bindings/GSettings (2.27 KB, patch)
2011-12-02 06:31 UTC, Martin Pitt
none Details | Review

Description Martin Pitt 2011-12-02 06:16:03 UTC
With current pygobject versions it is not possible any more to mix static and GI bindings if they load the same libraries. For example, background-image.py causes

$ nautilus
/usr/lib/python2.7/dist-packages/gobject/constants.py:26: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
** (nautilus:23823): DEBUG: SyncDaemon already running, initializing SyncdaemonDaemon object
Initializing nautilus-gdu extension
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Speicherzugriffsfehler (Speicherabzug geschrieben)

as soon as you change a folder.

I'll work on a patch now.
Comment 1 Martin Pitt 2011-12-02 06:31:22 UTC
Created attachment 202570 [details] [review]
Port remaining examples to GI bindings/GSettings

OK for me to commit? Thanks!
Comment 2 Adam Plumb 2011-12-02 13:41:53 UTC
Sure that looks fine.  Thanks.
Comment 3 Martin Pitt 2011-12-02 14:22:52 UTC
Thanks, pushed.