(test): ui_qt_test randomly fails
Summary
Despite our latest fixes on xvfb-run
ui_qt_test still fails to run from time to time (see log below).
Steps to reproduce
Run many times before it crashes...
Dev environment
- OS: Linux
- Compiler: gcc
- Build type: debug
- Commit: dev
Relevant logs and/or screenshots
17/40 Test #20: ui_qt_test .......................***Failed 2.41 sec
.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sight'
.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sight'
.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sight'
.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sight'
.qt.qpa.xcb: could not connect to display :102
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
/usr/bin/xvfb-run: line 169: 7028 Aborted (core dumped) DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1
See the whole log here
Possible fixes
- I don't get why xcb plugin is mentioned in the error. The offscreen plugin should be in use. Or maybe xcb is used anyway for input events ?
- Do we really need to use xvfb-run for qt tests? Is it not redundant with the purpose of the offscreen plugin?