Comment 2 for bug 1239753

Revision history for this message
Martin Pitt (pitti) wrote :

How would I do that? I tried this loop a few times until "my" maliit-server was faster than the D-BUS (re-)spawned one:

$ pkill -e maliit-server; maliit-server -testability
maliit-server killed (pid 8584)
maliit-server: invalid option -- 't'
maliit-server: invalid option -- 'e'
maliit-server: invalid option -- 's'
maliit-server: invalid option -- 't'
maliit-server: invalid option -- 'a'
maliit-server: invalid option -- 'b'
maliit-server: invalid option -- 'i'
maliit-server: invalid option -- 'l'
maliit-server: invalid option -- 'i'
maliit-server: invalid option -- 't'
maliit-server: invalid option -- 'y'
__pthread_gettid -2
error: empty dic file
Hash Manager Error : 2
WARNING: file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/OrientationHelper.qml:100: ReferenceError: window is not defined

Then I ran my tests, which now fail because the OSK isn't shown at all any more. So the keyboard emulator fails with

Traceback (most recent call last):
  File "/home/phablet/messaging-app/tests/autopilot/messaging_app/tests/test_messaging.py", line 95, in test_write_new_message
    kb = Keyboard()
  File "/usr/lib/python2.7/dist-packages/ubuntu_keyboard/emulators/keyboard.py", line 55, in __init__
    self.orientation = self.maliit.select_single(
  File "/usr/lib/python2.7/dist-packages/ubuntu_keyboard/emulators/keyboard.py", line 105, in maliit
    emulator_base=UbuntuKeyboardEmulatorBase
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 271, in get_proxy_object_for_existing_process
    raise ProcessSearchError("Search criteria returned no results")
ProcessSearchError: ('Search criteria returned no results', 'Unable to find maliit-server dbus object. Has it been started with introspection enabled?')

Did you mean something else with "maliit-server started with testability"?