GNOME Bugzilla – Bug 411652
crash of "Software sources" in IA__gdk_keymap_get_direction()
Last modified: 2008-02-01 19:09:48 UTC
That bug has been described on https://launchpad.net/bugs/86698 "... crash of "Software surces" while switching tabs ... " Debug backtrace for the crash with GTK 2.10.9:
+ Trace 113574
Thread 1 (process 5911)
that looks like a bug in gtk_text_view_check_keymap_direction (), gdk_keymap_get_for_display () is called to get the keymap and can return null and then gdk_keymap_get_direction() is call and crash on null argument
keymap = GET_EFFECTIVE_KEYMAP (keymap) is used so it should handle keymap correctly, not sure what is going wrong there
Actually that bug is caused by the pygtk changes of bug #316877. import pygtk will not fail when the display could not be opened but only spit out a warning message causing all pygtk applications that are not prepared for that to proceed with their logic most likely hitting a gtk function that needs a valid display (like gtk_text_view_check_keymap_direction) resulting in a crash inside of gtk. Of course you shouldnt use gtk when gtk_init_check () returns FALSE. So this is not a gtk bug, but a pygtk application bug. I'll reassign to pygtk therefore since its likely that a few applications will hit this (update-manager and Gdebi in ubuntu already did) leaving it to the pygtk folks to decided what do to with it (probably NOTABUG or something). ;-)
The change of not raising an error is documented: http://live.gnome.org/PyGTK/WhatsNew210 Closing as NOTABUG.