Comment 8 for bug 1198277

Revision history for this message
Martin Pitt (pitti) wrote : Re: Failed to create proxy object for gallery app

Ah, nevermind; I tried to checkout lp:~javier.collado/ubuntu-test-cases/memory-usage-measurement as well (without the extra /utah), and that failed some minutes ago, but that was just due to LP being down.

So I checked out lp:~javier.collado/ubuntu-test-cases/memory-usage-measurement, installed {webbrowser,camera,mediaplayer}-app-autopilot, autopilot-touch, and smem and ran "autopilot run ubuntu_test_cases" in the "autopilot" subdir.

With that I get some failures:

---------------------- 8< ---------------------------
Loading tests from: /home/phablet/memory-usage-measurement/autopilot

Tests running...
__pthread_gettid -2
======================================================================
ERROR: ubuntu_test_cases.memory_usage_measurement.tests.test_memory_usage.MemoryUsageTests.test_scenario
----------------------------------------------------------------------
_StringException: Empty attachments:
  process-stdout

process-stderr: {{{
unknown option -- t
unknown option -- e
unknown option -- s
unknown option -- t
unknown option -- a
unknown option -- b
unknown option -- i
unknown option -- l
unknown option -- i
unknown option -- t
unknown option -- y
loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

Loading testability driver.

WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release.
WARNING: The experimental API will change from version to version, or even be removed. You have been warned!

file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/TabsList.qml:34: ReferenceError: UbuntuColors is not defined
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/Chrome.qml:131: ReferenceError: UbuntuColors is not defined
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/Suggestions.qml:35: ReferenceError: UbuntuColors is not defined
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/TabsList.qml:83: ReferenceError: UbuntuColors is not defined
callbacks 0x428f5495 0x428f5499
creating surface at (0, 44) with size (800, 1236)loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/Suggestions.qml:110: ReferenceError: UbuntuColors is not defined
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/Suggestions.qml:110: ReferenceError: UbuntuColors is not defined
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/Suggestions.qml:110: ReferenceError: UbuntuColors is not defined
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Extras/Browser/Suggestions.qml:110: ReferenceError: UbuntuColors is not defined
}}}

traceback-1: {{{
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autopilot/utilities.py", line 253, in action_on_test_end
    obj.on_test_end(test_instance)
  File "/usr/lib/python2.7/dist-packages/autopilot/input/_X11.py", line 464, in on_test_end
    move_mouse_to_screen(0)
  File "/usr/lib/python2.7/dist-packages/autopilot/display/__init__.py", line 57, in move_mouse_to_screen
    Mouse.create().move(x, y, False)
  File "/usr/lib/python2.7/dist-packages/autopilot/input/__init__.py", line 211, in create
    return _pick_backend(backends, preferred_backend)
  File "/usr/lib/python2.7/dist-packages/autopilot/utilities.py", line 53, in _pick_backend
    raise RuntimeError("Unable to instantiate any backends\n%s" % '\n'.join(failure_reasons))
RuntimeError: Unable to instantiate any backends
X11: DisplayNameError()
}}}

Traceback (most recent call last):
  File "/home/phablet/memory-usage-measurement/autopilot/ubuntu_test_cases/memory_usage_measurement/tests/test_memory_usage.py", line 37, in test_scenario
    self.smem.pids.append(browser.app.process)
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/home/phablet/memory-usage-measurement/autopilot/ubuntu_test_cases/memory_usage_measurement/probes.py", line 29, in probe
    self.stop(event)
  File "/home/phablet/memory-usage-measurement/autopilot/ubuntu_test_cases/memory_usage_measurement/probes.py", line 60, in stop
    output = subprocess.check_output(self.BINARY)
  File "/usr/lib/python2.7/subprocess.py", line 568, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Ran 1 test in 6.765s
FAILED (failures=1)
---------------------- 8< ---------------------------

I'm not sure whether the "RuntimeError: Unable to instantiate any backends" is relevant, but python-evdev is installed via autopilot-touch. Javier, do you get this as well?

The last "No such file or directory" is from probes.py and tries to call "smem-tabs", which is a program that doesn't exist (the smem package is installed, but it doesn't ship it). Javier, where does that come from?