We have Appimum tests running on a virtual device. But the problem is that the emulator's device won't start.

I'm pretty sure it's something with Android or Qt or Ubuntu itself.

In Appimu's output I found next error:

[ADB] [AVD OUTPUT] INFO: QtLogger.cpp:66: Fatal: QXcbConnection: Could not connect to display ((null):0, (null))
[ADB] Emulator avd Nexus_5X_API_26 exited with code null, signal SIGABRT

The $DISPLAY is obviously set with value like :0.0 but even if I'm running tests from a terminal on this box via its monitor - I have this error.

Any suggestions? Trying to google the second day - still no ideas...

Unfortunately, I can't reproduce this issue on my work laptop - all works just fine.


$ adb --version Android Debug Bridge version 1.0.40 Version 4986621 Installed as /android/Android/sdk/platform-tools/adb


$ appium --version 1.9.1


$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS

All works fine if start emulator manually and run tests after.

  • Sorry, but development-related questions are off-topic because this site focuses on the end-user part. Since you can run the emulator manually, I'm afraid there's little that non-devs can help since they don't normally use Appium (automated testing framework). Stack Overflow is the more suitable site for the programming-related question, and you seem to have posted the question on there. – Andrew T. Dec 15 '18 at 14:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.