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 791867 - Crash when accessing the "string" attribute of GdkEventKey on 64bit Windows
Crash when accessing the "string" attribute of GdkEventKey on 64bit Windows
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2017-12-22 07:57 UTC by Christoph Reiter (lazka)
Modified: 2018-01-10 21:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph Reiter (lazka) 2017-12-22 07:57:52 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()
Comment 1 Antoine Martin 2017-12-23 05:37:35 UTC
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.
Comment 2 GNOME Infrastructure Team 2018-01-10 21:01:35 UTC
-- 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.