Errors resetting OSK keyboard

Bug #1511895 reported by Sergio Cazzolato
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-keyboard
New
Undecided
Unassigned
ubuntu-keyboard (Ubuntu)
New
Undecided
Unassigned

Bug Description

As part of different tests on real devices (I tested this in krillin), sporadically we face the following exception trying to reset the ubuntu keyboars.

input.Keyboard.create('OSK')._keyboard.reset()

Traceback (most recent call last):
  File "/tmp/adt-run.glq52M/build.9cm/real-tree/ubuntu_system_tests/tests/scopes/__init__.py", line 38, in setUp
    self.unity_proxy = self.restart_unity()
  File "/tmp/adt-run.glq52M/build.9cm/real-tree/ubuntu_system_tests/tests/base.py", line 167, in restart_unity
    unity_proxy = self.launch_unity(fake_sensors=fake_sensors)
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.glq52M/build.9cm/real-tree/ubuntu_system_tests/tests/base.py", line 106, in launch_unity
    self._reset_keyboard()
  File "/tmp/adt-run.glq52M/build.9cm/real-tree/ubuntu_system_tests/tests/base.py", line 135, in _reset_keyboard
    input.Keyboard.create('OSK')._keyboard.reset()
  File "/usr/lib/python3/dist-packages/autopilot/input/__init__.py", line 129, in create
    return _pick_backend(backends, preferred_backend)
  File "/usr/lib/python3/dist-packages/autopilot/utilities.py", line 60, in _pick_backend
    raise BackendException(e)
autopilot.exceptions.BackendException: Error while initialising backend. Original exception was: ("Search criteria (connection name = 'org.maliit.server', object path = '/com/canonical/Autopilot/Introspection') returned no results", 'Unable to find maliit-server dbus object. Has it been started with introspection enabled?')

In other similar situations we also got ProcessSearchError

Traceback (most recent call last):
  File "/tmp/adt-run.O0cgIp/build.2vP/real-tree/ubuntu_system_tests/tests/test_maiil.py", line 82, in test_maiil_18
    self.unity_proxy = self.restart_unity()
  File "/tmp/adt-run.O0cgIp/build.2vP/real-tree/ubuntu_system_tests/tests/base.py", line 167, in restart_unity
    unity_proxy = self.launch_unity(fake_sensors=fake_sensors)
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.O0cgIp/build.2vP/real-tree/ubuntu_system_tests/tests/base.py", line 106, in launch_unity
    self._reset_keyboard()
  File "/tmp/adt-run.O0cgIp/build.2vP/real-tree/ubuntu_system_tests/tests/base.py", line 135, in _reset_keyboard
    input.Keyboard.create('OSK')._keyboard.reset()
  File "/tmp/adt-run.O0cgIp/deps/usr/lib/python3/dist-packages/ubuntu_keyboard/emulators/keyboard.py", line 223, in reset
    self.maliit
  File "/tmp/adt-run.O0cgIp/deps/usr/lib/python3/dist-packages/ubuntu_keyboard/emulators/keyboard.py", line 106, in maliit
    emulator_base=toolkit.UbuntuUIToolkitCustomProxyObjectBase
  File "/usr/lib/python3/dist-packages/autopilot/introspection/_search.py", line 176, in get_proxy_object_for_existing_process
    _get_search_criteria_string_representation(**kwargs)
  File "/usr/lib/python3/dist-packages/autopilot/introspection/_search.py", line 358, in _raise_if_not_single_result
    (criteria_string)
autopilot.exceptions.ProcessSearchError: ("Search criteria (object path = '/com/canonical/Autopilot/Introspection', connection name = 'org.maliit.server') returned no results", 'Unable to find maliit-server dbus object. Has it been started with introspection enabled?')

summary: - Errors reseating keyboard
+ Errors resetting OSK keyboard
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.