keyboard input being lost during autopilot

Bug #1204280 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-keyboard (Ubuntu)
In Progress
High
Ricardo Mendoza

Bug Description

From Ricmm

What I have been observing is that under load, the app's thread where
the input looper runs is running quite slow and its missing many of the
events, perhaps they are expiring in the queue before they actually make
it out of the pipe.

Processing time in the QPA's input thread context is also heavily hit,
and a simple non-blocking operation like posting the event to the main
loop is taking a while to return, thus blocking the next polling run as
the callback hasn't finished (also causing some sort of event expiry).

I think this is an issue with the QUbuntuTheme from the QPA. When a
letter comes down the pipe I see the theme being reinstanced like 30
times after the key event is sent down for handling. This might be
causing some weird slowness as it all runs in the same thread context.
Here's the example:

eventCallback (context=0x1e001e8, event=0x4d0d5908)
QUbuntuBaseInput::postEvent (this=0x1b3e678, window=0x1b72588,
event=0x4d0d5908)
QUbuntuBaseInput::customEvent (this=0x1b3e678, event=0x1e16100)
QUbuntuBaseInput::dispatchKeyEvent (this=0x1b3e678, window=0x1b72588,
event=0x1e16110)
KEY device_id:3 source_id:257 action:0 flags:8 meta_state:0 key_code:26
scan_code:116 repeat_count:0 down_time:1129093998000
event_time:1129093998000 is_system_key:1
QUbuntuBaseInput::handleKeyEvent (this=0x1b3e678 window=0x1b72588,
timestamp=1129093, type=6, key=16777399, modifiers=0, text='?')
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)
QUbuntuTheme::themehint (this=0x1b44de0, hint=22)

Bill Filler (bfiller)
Changed in touch-preview-images:
importance: Undecided → Critical
assignee: nobody → Ricardo Mendoza (ricmm)
tags: added: autopilot
Revision history for this message
Bill Filler (bfiller) wrote :

happening in build saucy-54 on maguro
Causing failure of the following autopilot tests when run like the following:
phablet-test-run -p webbrowser-app-autopilot webbrowser_app
http://reports.qa.ubuntu.com/smokeng/saucy/image/3139/webbrowser-app-autopilot/

Bill Filler (bfiller)
Changed in touch-preview-images:
status: New → In Progress
affects: touch-preview-images → ubuntu-keyboard (Ubuntu)
tags: added: touch-preview-images
Bill Filler (bfiller)
Changed in ubuntu-keyboard (Ubuntu):
importance: Critical → High
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.