GnoMenu breaks keyboard for all X apps

Bug #712544 reported by k
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GnoMenu
New
Undecided
Unassigned

Bug Description

A crash in the run function of globalkeybinding.py causes my keyboard to become completely unresponsive in all X applications. The only way to get it back is to switch to a text console, log in and kill the GnoMenu python process. Switching back to X and allowing the applet to be reloaded caused everything to go back to normal.

That function was crashing when it received a MappingNotify X event (maybe others, this is what I saw it break on).
This event does not have a 'details' member, so an AttributeError is produced when 'event.details' is referenced in that function. The next time the bind key is pressed, the keyboard will no longer work until GnoMenu is killed.

for testing purposes, you can force this event by issuing some keyboard mapping change e.g. xmodmap -e "keycode 110 = Home"

the easiest fix for this specific issue was just to catch, print and otherwise ignore exceptions in that loop (see patch).

Revision history for this message
k (stuff-0hz) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.