Autopilot3 on vivid desktop fails: "RuntimeError: Unable to instantiate any backends"
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Autopilot |
Undecided
|
Leo Arias | ||
| | autopilot (Ubuntu) |
Undecided
|
Unassigned | ||
| | Vivid |
Undecided
|
Unassigned | ||
Bug Description
Running a compiled qt binary or qml application on the desktop fails when run with autopilot3. The same test run with autopilot2 works. Note however python-autopilot is 1.4.1+14.
File "/usr/lib/
return launcher.
File "/usr/lib/
pid=process.pid
File "/usr/lib/
emulator_base
File "/usr/lib/
return proxy_class(
File "/usr/lib/
self.
File "/usr/lib/
return input.Pointer(
File "/usr/lib/
return _pick_backend(
File "/usr/lib/
"Unable to instantiate any backends\n%s" % '\n'.join(
RuntimeError: Unable to instantiate any backends
X11: DisplayConnecti
=======
Full log and further details
=======
What's installed:
dpkg -l | grep autopilot
ii autopilot-desktop 1.5.0+15.
ii autopilot-
ii autopilot-qt4 1.4+14.
ii autopilot-qt5 1.4+14.
ii autopilot-touch 1.5.0+15.
ii libautopilot-
ii libautopilot-qt 1.4+14.
ii python-autopilot 1.4.1+14.
ii python-
ii python-
ii python3-autopilot 1.5.0+15.
ii python3-
ii python3-
ii qttestability-
ii ubuntu-
Grab any qt code with autopilot tests and run them from source. Both compiled binaries and pure qml are affected.
Running with autopilot2 works properly (though calendar does require python3 to run, try the clock app to see that)
bzr branch lp:ubuntu-calendar-app
cd ubuntu-
autopilot3 run -v calendar_
10:52:26.230 INFO run:235 - Autopilot Source Version: 1.5.0
Autopilot Package Version: 1.5.0+15.
Loading tests from: /home/nskaggs/
Tests running...
10:52:26.263 INFO _logging:40 - *******
10:52:26.263 INFO _logging:41 - Starting test calendar_
10:52:26.443 DEBUG __init__:97 - Copying .Xauthority to /tmp/tmp1l39_rur
10:52:26.443 DEBUG __init__:124 - Patched home to fake home directory /tmp/tmp1l39_rur
10:52:26.446 DEBUG __init__:150 - Restarted evolution daemons
10:52:26.446 INFO logging:45 - TestDayView: launch_test_local. Arguments (). Keyword arguments: {}.
10:52:26.447 WARNING base:52 - This function is deprecated. Use get_toolkit_
10:52:26.477 INFO _launcher:373 - Attempting to launch application '/usr/lib/
10:52:26.481 INFO _launcher:431 - Launching process: ['/usr/
10:52:28.139 INFO _launcher:544 - waiting for process to exit.
10:52:28.139 INFO _launcher:567 - Killing process 27413
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
(evolution-
10:52:29.206 ERROR testresult:44 - ERROR: calendar_
10:52:29.206 ERROR testresult:44 - Binary attachment: "FailedTestScre
10:52:29.206 ERROR testresult:44 - traceback: {{{
Traceback (most recent call last):
File "/home/
super(
File "/home/
self.app = calendar_
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
emulator_
File "/usr/lib/
return launcher.
File "/usr/lib/
pid=process.pid
File "/usr/lib/
emulator_base
File "/usr/lib/
return proxy_class(
File "/usr/lib/
self.
File "/usr/lib/
return input.Pointer(
File "/usr/lib/
return _pick_backend(
File "/usr/lib/
"Unable to instantiate any backends\n%s" % '\n'.join(
RuntimeError: Unable to instantiate any backends
X11: DisplayConnecti
}}}
10:52:29.206 ERROR testresult:44 - traceback-1: {{{
Traceback (most recent call last):
File "/usr/lib/
obj.
File "/usr/lib/
move_
File "/usr/lib/
Mouse.
File "/usr/lib/
return _pick_backend(
File "/usr/lib/
"Unable to instantiate any backends\n%s" % '\n'.join(
RuntimeError: Unable to instantiate any backends
X11: DisplayConnecti
}}}
10:52:29.206 ERROR testresult:44 - process-return-code (/usr/lib/
-15}}}
10:52:29.206 ERROR testresult:44 - process-stderr (/usr/lib/
Qt: Session management error: None of the authentication protocols specified are supported
Testability driver loaded. Wire protocol version is "1.4".
<Unknown File>: Invalid empty URL
Fail to connect with sync monitor: QDBusError(
}}}
10:52:29.207 ERROR testresult:44 - /var/log/syslog: {{{
Mar 16 10:52:26 balloons kernel: [30193.302596] input: autopilot-finger as /devices/
}}}
10:52:29.207 ERROR testresult:44 - process-stdout (/usr/lib/
}}}
=======
ERROR: calendar_
-------
Binary content:
FailedTestScr
Empty attachments:
process-stdout (/usr/lib/
/var/log/syslog: {{{Mar 16 10:52:26 balloons kernel: [30193.302596] input: autopilot-finger as /devices/
process-return-code (/usr/lib/
process-stderr (/usr/lib/
Qt: Session management error: None of the authentication protocols specified are supported
Testability driver loaded. Wire protocol version is "1.4".
<Unknown File>: Invalid empty URL
Fail to connect with sync monitor: QDBusError(
}}}
test-log: {{{
10:52:26.443 DEBUG __init__:97 - Copying .Xauthority to /tmp/tmp1l39_rur
10:52:26.443 DEBUG __init__:124 - Patched home to fake home directory /tmp/tmp1l39_rur
10:52:26.446 DEBUG __init__:150 - Restarted evolution daemons
10:52:26.446 INFO logging:45 - TestDayView: launch_test_local. Arguments (). Keyword arguments: {}.
10:52:26.447 WARNING base:52 - This function is deprecated. Use get_toolkit_
10:52:26.477 INFO _launcher:373 - Attempting to launch application '/usr/lib/
10:52:26.481 INFO _launcher:431 - Launching process: ['/usr/
10:52:28.139 INFO _launcher:544 - waiting for process to exit.
10:52:28.139 INFO _launcher:567 - Killing process 27413
}}}
traceback-1: {{{
Traceback (most recent call last):
File "/usr/lib/
obj.
File "/usr/lib/
move_
File "/usr/lib/
Mouse.
File "/usr/lib/
return _pick_backend(
File "/usr/lib/
"Unable to instantiate any backends\n%s" % '\n'.join(
RuntimeError: Unable to instantiate any backends
X11: DisplayConnecti
}}}
Traceback (most recent call last):
File "/home/
super(
File "/home/
self.app = calendar_
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
emulator_
File "/usr/lib/
return launcher.
File "/usr/lib/
pid=process.pid
File "/usr/lib/
emulator_base
File "/usr/lib/
return proxy_class(
File "/usr/lib/
self.
File "/usr/lib/
return input.Pointer(
File "/usr/lib/
return _pick_backend(
File "/usr/lib/
"Unable to instantiate any backends\n%s" % '\n'.join(
RuntimeError: Unable to instantiate any backends
X11: DisplayConnecti
Ran 1 test in 2.944s
FAILED (failures=1)
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-03-18
- Barry Warsaw (community): Approve on 2015-03-18
- Christopher Lee (community): Approve on 2015-03-18
-
Diff: 30 lines (+3/-3)1 file modifieddebian/control (+3/-3)
| Christopher Lee (veebers) wrote : | #1 |
| Christian Dywan (kalikiana) wrote : | #2 |
I was hit by this and apparently to get the upgrade of python3-xlib which resolved the error for me.
| Changed in autopilot: | |
| status: | New → Invalid |
| Leo Arias (elopio) wrote : | #3 |
I think we need to bump the version of xlib in the control file.
| Changed in autopilot: | |
| status: | Invalid → In Progress |
| assignee: | nobody → Leo Arias (elopio) |
| PS Jenkins bot (ps-jenkins) wrote : | #4 |
Fix committed into lp:autopilot at revision 547, scheduled for release in autopilot, milestone 1.4
| Changed in autopilot: | |
| status: | In Progress → Fix Committed |
| Changed in autopilot: | |
| status: | Fix Committed → Fix Released |

The culprit is this code (not taken verbatim):
from Xlib import display; display.Display()
I've since filed a bug against python3-xlib which can be found here: /bugs.launchpad .net/ubuntu/ +source/ python- xlib/+bug/ 1432889
https:/
Once the issue is sovled we should see this error disappear