Bug 21320 - Lost keyboard events after starting DBUS
Summary: Lost keyboard events after starting DBUS
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL: http://thread.gmane.org/gmane.comp.fr...
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 05:17 UTC by Peter Åstrand
Modified: 2012-06-27 15:28 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Åstrand 2009-04-21 05:17:30 UTC
As reported on http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/609, keyboard events are sometimes lost. I've been able to reproduce it on a wide range of Xservers and platforms:

TigerVNC, X.Org 1.5.3: fails
xorg-x11-server-Xvfb-1.6.1-6.fc11.x86_64: fails
xorg-x11-server-Xvfb-1.5.3-15.fc10.i386: fails
xorg-x11-server-Xvfb-1.5.2-6.fc9.x86_64: fails (many events lost)
xorg-x11-server-Xorg-1.6.0-16.fc11.x86_64: fails
xorg-x11-server-Xorg-1.5.2-6.fc9.x86_64: fails
xorg-x11-server-Xorg-1.3.0.0-47.fc8: fails

In the Xvfb case, I was simulating keypresses using XSendEvent. To reproduce:

1. Login on the console, or unset XAUTHORITY.

2. xinit -- :47

3. eval `dbus-launch --sh-syntax --exit-with-session`

4. Start typing,

It seems like the rate of lost keys is basically one per second: By typing one character per second, the problem is most easily triggered.

Using Wireshark, I've seen that all KeyPress events are actually delivered to the application. It happens with both xterm and gnome-terminal, both with bash and csh. I guess what's left is either:

1) A bug that's present in both xterm and gnome-terminal (seems unlikely)

or

2) Some kind of bug in libX11
Comment 1 Jeremy Huddleston Sequoia 2011-10-07 15:35:19 UTC
Is this still an issue with recent bits?
Comment 2 Peter Åstrand 2012-06-27 01:56:19 UTC
(In reply to comment #1)
> Is this still an issue with recent bits?

Probably not, haven't seen it for a while. Feel free to close.
Comment 3 Peter Hutterer 2012-06-27 15:28:34 UTC
thanks, closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.