GNU bug report logs -
#21796
[GTK] exiting ediff (with ediff-window-setup-function=ediff-setup-windows-default) can leave Emacs unresponsive to keyboard input
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
I am most likely affected by the same issue: when emacs is launched to
compose a git commit message, it sometimes ignores all keyboard input, but
mouse input works normally. I am using Emacs 24.5.1, Ubuntu 14.04, and I3
WM.
Even more surprisingly, emacs responds to X KeyPress events sent to it
through "xdotool", but not through the real keyboard. Also, "xev"
indicates that emacs is receiving all KeyPress events and just dropping
them internally.
After spending some time attaching GDB and stepping through code, I have
found that x_filter_event() is the point in which the KeyPress event gets
dropped. In a good emacs instance, event_handler_gtk receives the event
and passes it on to handle_one_xevent. In a bad instance,
event_handler_gdk still receives the event but never passes any KeyPress
event to handle_one_xevent. In bad instances, x_filter_event always
returns true for real key presses, but returns false for fake key presses
from xdotool.
My best guess at this point is that the issue is something along the lines
of [1]. Slowing down the system increases the likelihood of this race
condition(?) happening.
To take it even further, I used xscope to intercept the emacs messages
to/from X, and put a breakpoint on SYNC-Request messages. Stepping through
the subsequent X messages one by one triggered the bug (1 out of 1 times)
further suggesting that this is a timing issue.
I'm skipping a lot of detail here in order to keep this short. Feel free
to ask me for more specifics.
[1] XIM SYNC_REPLY not sent when switching input contexts <
https://bugs.freedesktop.org/show_bug.cgi?id=7869>
[2] http://ftp.x.org/pub/individual/app/xscope-1.4.1.tar.gz
[Message part 2 (text/html, inline)]
This bug report was last modified 3 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.