GNOME Bugzilla – Bug 791867
Crash when accessing the "string" attribute of GdkEventKey on 64bit Windows
Last modified: 2018-01-10 21:01:35 UTC
Reported here: https://github.com/Alexpux/MINGW-packages/issues/3228 from gi.repository import Gtk #do_key_press_event(<Gdk.EventKey object at 0x0000000002f8f0e8 (void at 0x00000000029665a0)>) string= #do_key_press_event(<Gdk.EventKey object at 0x0000000002f8f0e8 (void at 0x00000000029668c0)>) string= #** #ERROR:../../pygobject-3.26.1/gi/pygi-argument.c:1004:_pygi_argument_to_object: code should not be reached class KeyEventWindow(Gtk.Window): def do_key_press_event(self, event): print("do_key_press_event(%s) string=%s" % (event, event.string)) def do_key_release_event(self, event): print("do_key_release_event(%s) string=%s" % (event, event.string)) if __name__ == "__main__": w = KeyEventWindow() w.show() Gtk.main()
Important: this only occurs with a specific layout ("German") and a specific key (the key to the right of the left-shift key), though it is likely that there are other combinations that can trigger it. "us" and many other layouts work just fine.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/147.