Qt ignores input devices created after qmlscene has been launched

Bug #1297592 reported by Christopher Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
Critical
Christopher Lee
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned
qtbase-opensource-src (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

(text extract from an email)
We're having an interesting issue with the pinch touch gesture in autopilot that seems to be related to the recent upgrade of Qt.

I've found that if I create a UInput device before launching qmlscene the pinch gesture works as expected, but if we create the UInput devices after it is launched no input is received in the sample qml app.
So it appears that qmlscene is ignoring touch inputs from a device created after it is launched.
This code was working with the previous version of Qt as well as works on Saucy.

I have put together an example script[1] that has a pass and a fail test. The only difference in the passing test is that it creates a UInput device before launching qmlscene (commented in the code).

To reproduce using this script (assuming autopilot is installed):
 - bzr branch lp:~veebers/+junk/pinch-gesture-failures && cd pinch-gesture-failures
 - autopilot run test_pinch_event.TestTouchEvent.test_will_fail
or
 - autopilot run test_pinch_event.TestTouchEvent.test_will_pass

[1] lp:~veebers/+junk/pinch-gesture-failures

Changed in autopilot:
status: New → In Progress
assignee: nobody → Christopher Lee (veebers)
importance: Undecided → Critical
Changed in autopilot (Ubuntu):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.4+14.04.20140401-0ubuntu1

---------------
autopilot (1.4+14.04.20140401-0ubuntu1) trusty; urgency=low

  [ Thomi Richards ]
  * Make the --enable-profile option for all autopilot commands.
  * Refactor introspection code to make the vis tool call only
    asynchronous dbus calls.
  * Optimisations for print_tree method.

  [ Leo Arias ]
  * Added a window resize for the BAMF process helper.

  [ Christopher Lee ]
  * Move functionality out of __init__.py
  * Add workaround for bug lp:1297592 by creating Touch device in
    AutopilotTestCase setUp. (LP: #1297592)
  * Fixes some functional tests that were failing on the devices. (skip
    Gtk, use desktop file hint for the qt one).

  [ Max Brustkern ]
  * Move functionality out of __init__.py
  * Additional pep257 changes.
 -- Ubuntu daily release <email address hidden> Tue, 01 Apr 2014 01:30:45 +0000

Changed in autopilot (Ubuntu):
status: In Progress → Fix Released
Changed in autopilot:
status: In Progress → Fix Released
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Could it be checked if this got better with Qt 5.3 in utopic? There were a lot of XInput2 / etc changes at least.

Changed in qtbase-opensource-src (Ubuntu):
status: New → Incomplete
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.