Core dump when QT_QPA_PLATFORM=offscreen is needed
When running tests in docker on a CI machine we need export QT_QPA_PLATFORM=offscreen
. If you don't you get a core dump without more information.
src/ewoksfluo/tests/tasks/test_fit_tasks.py::test_fit_tasks_widget[2-2] Fatal Python error: Aborted
Current thread 0x00007f10538a8740 (most recent call first):
File "/usr/local/lib/python3.7/site-packages/ewoksorange/bindings/qtapp.py", line 34 in ensure_qtapp
File "/usr/local/lib/python3.7/site-packages/ewoksorange/bindings/qtapp.py", line 89 in qtapp_context
File "/usr/local/lib/python3.7/contextlib.py", line 112 in __enter__
File "/usr/local/lib/python3.7/site-packages/ewoksorange/tests/conftest.py", line 58 in qtapp
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 895 in call_fixture_func
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 1123 in pytest_fixture_setup
File "/usr/local/lib/python3.7/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.7/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.7/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 1069 in execute
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 693 in _compute_fixture_value
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 607 in _get_active_fixturedef
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 585 in getfixturevalue
File "/usr/local/lib/python3.7/site-packages/_pytest/fixtures.py", line 566 in _fillfixtures
File "/usr/local/lib/python3.7/site-packages/_pytest/python.py", line 1795 in setup
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 494 in setup
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 157 in pytest_runtest_setup
File "/usr/local/lib/python3.7/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.7/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.7/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 262 in <lambda>
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 341 in from_call
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 262 in call_runtest_hook
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 222 in call_and_report
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 127 in runtestprotocol
File "/usr/local/lib/python3.7/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
File "/usr/local/lib/python3.7/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.7/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.7/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.7/site-packages/_pytest/main.py", line 350 in pytest_runtestloop
File "/usr/local/lib/python3.7/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.7/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.7/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.7/site-packages/_pytest/main.py", line 325 in _main
File "/usr/local/lib/python3.7/site-packages/_pytest/main.py", line 271 in wrap_session
File "/usr/local/lib/python3.7/site-packages/_pytest/main.py", line 318 in pytest_cmdline_main
File "/usr/local/lib/python3.7/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.7/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.7/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.7/site-packages/_pytest/config/__init__.py", line 170 in main
File "/usr/local/lib/python3.7/site-packages/_pytest/config/__init__.py", line 192 in console_main
File "/usr/local/bin/pytest", line 8 in <module>
Aborted (core dumped)
Other tools like silx view show more information:
qt.qpa.xcb: could not connect to display
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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted (core dumped)