GNOME Bugzilla – Bug 635060
Parameter counting is broken
Last modified: 2011-01-28 10:24:26 UTC
With pygobject 2.26.0 and 2.27.0, I get a crash when trying to call Gtk.init() or Gtk.init_check(): $ python -c 'from gi.repository import Gtk; Gtk.require_version("3.0"); Gtk.init()' ERROR:/home/martin/ubuntu/build-area/pygobject-2.27.0/gi/pygi-invoke.c:883:_free_invocation_state: assertion failed: (backup_args_pos == state->n_backup_args)
You shouldn't need to call Gtk.init(). It is called by the override. You are missing parameters (argv). I need to fix the parameter counting though I think I will do this with a rewrite of the invoke code.
Seems to have been fixed already? [tomeu@localhost (master) pygobject]$ python -c 'from gi.repository import Gtk; Gtk.require_version("3.0"); Gtk.init()' Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory Traceback (most recent call last):
+ Trace 225736
return info.invoke(*args)