Without any apparent changes to autopilot itself, an issue has been introduced in launching applications since image #96. This manifests itself in the logs as:
12:58:11.249 INFO _launcher:255 - Launching process: ['/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene', '-testability', '-I/usr/lib/modules', '/tmp/tmpBppkbb.qml', '--desktop_file_hint=/home/phablet/.local/share/applications/tmpbs7ZaX.desktop']
12:58:40.820 ERROR proxies:410 - Introspect error on :1.810:/com/canonical/Autopilot/Introspection: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
12:58:40.840 DEBUG proxies:413 - Executing introspect queue due to error
This adds about 30 seconds to the length of every test, and causes some tests to fail as they depend on the application being in a certain state when the test is run (e.g. https://bugs.launchpad.net/mediaplayer-app/+bug/1334186).
After some debugging I can see the following code section:
Without any apparent changes to autopilot itself, an issue has been introduced in launching applications since image #96. This manifests itself in the logs as:
12:58:11.249 INFO _launcher:255 - Launching process: ['/usr/ lib/arm- linux-gnueabihf /qt5/bin/ qmlscene' , '-testability', '-I/usr/ lib/modules' , '/tmp/tmpBppkbb .qml', '--desktop_ file_hint= /home/phablet/ .local/ share/applicati ons/tmpbs7ZaX. desktop' ] /com/canonical/ Autopilot/ Introspection: dbus.exceptions .DBusException: org.freedesktop .DBus.Error. NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
12:58:40.820 ERROR proxies:410 - Introspect error on :1.810:
12:58:40.840 DEBUG proxies:413 - Executing introspect queue due to error
This adds about 30 seconds to the length of every test, and causes some tests to fail as they depend on the application being in a certain state when the test is run (e.g. https:/ /bugs.launchpad .net/mediaplaye r-app/+ bug/1334186).
After some debugging I can see the following code section:
def _launch_ test_applicatio n(self, launcher_instance, application, *args):
dbus_bus = launcher_ instance. dbus_bus
self. patch_environme nt("DBUS_ SESSION_ BUS_ADDRESS" , dbus_bus)
if dbus_bus != 'session':
pid = launcher_ instance. launch( application, *args) launcher_ instance, 'process', None)
application_ name = getattr(
launcher_ instance,
'dbus_ application_ name',
process = getattr(
None
)
When I reach here, dbus_applicatio n_name is not set.