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
$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
Installed as /android/Android/sdk/platform-tools/adb
$ appium --version
$ 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.