From 821118356707444b1fe129d89b9bcfa7f2c307ac Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 17 Sep 2018 11:32:13 +0200 Subject: [PATCH] Work around Travis CI crash test_caret.py crashes on Travis with this stack: ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so QSGBatchRenderer::Renderer::renderBatches() () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 QSGBatchRenderer::Renderer::render() () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 QSGRenderer::renderScene(QSGBindable const&) () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 QSGRenderer::renderScene(unsigned int) () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 QQuickWindowPrivate::renderSceneGraph(QSize const&) () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 QQuickRenderControl::render() () from .../site-packages/PyQt5/Qt/lib/libQt5Quick.so.5 ?? () from .../site-packages/PyQt5/Qt/lib/libQt5QuickWidgets.so.5 ?? () from .../site-packages/PyQt5/Qt/lib/libQt5QuickWidgets.so.5 QObject::event(QEvent*) () from .../site-packages/PyQt5/Qt/lib/libQt5Core.so.5 QWidget::event(QEvent*) () from .../site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5 QQuickWidget::event(QEvent*) () from .../site-packages/PyQt5/Qt/lib/libQt5QuickWidgets.so.5 ?? () from .../site-packages/PyQt5/Qt/lib/libQt5WebEngineWidgets.so.5 QApplicationPrivate::notify_helper(QObject*, QEvent*) () from .../site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5 QApplication::notify(QObject*, QEvent*) () from .../site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5 sipQApplication::notify(QObject*, QEvent*) () from .../site-packages/PyQt5/QtWidgets.so QCoreApplication::notifyInternal2(QObject*, QEvent*) () from .../site-packages/PyQt5/Qt/lib/libQt5Core.so.5 QTimerInfoList::activateTimers() () from .../site-packages/PyQt5/Qt/lib/libQt5Core.so.5 ?? () from .../site-packages/PyQt5/Qt/lib/libQt5Core.so.5 g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 QEventDispatcherGlib::processEvents(QFlags) () from .../site-packages/PyQt5/Qt/lib/libQt5Core.so.5 QEventLoop::exec(QFlags) () from .../site-packages/PyQt5/Qt/lib/libQt5Core.so.5 --- scripts/dev/ci/travis_run.sh | 4 ++++ tox.ini | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/dev/ci/travis_run.sh b/scripts/dev/ci/travis_run.sh index 55ca7c11e..a287e844e 100644 --- a/scripts/dev/ci/travis_run.sh +++ b/scripts/dev/ci/travis_run.sh @@ -28,5 +28,9 @@ else args=() [[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb' 'tests/unit') + # WORKAROUND for unknown crash inside swrast_dri.so + # See https://github.com/qutebrowser/qutebrowser/pull/4218#issuecomment-421931770 + [[ $TESTENV == py36-pyqt59 ]] && export QT_QUICK_BACKEND=software + tox -e "$TESTENV" -- "${args[@]}" fi diff --git a/tox.ini b/tox.ini index 02f3ae729..37451918c 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ setenv = pyqt{,56,571,59,510,511}: LINK_PYQT_SKIP=true pyqt{,56,571,59,510,511}: QUTE_BDD_WEBENGINE=true cov: PYTEST_ADDOPTS=--cov --cov-report xml --cov-report=html --cov-report= -passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER CI TRAVIS XDG_* QUTE_* DOCKER +passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER CI TRAVIS XDG_* QUTE_* DOCKER QT_QUICK_BACKEND basepython = py35: {env:PYTHON:python3.5} py36: {env:PYTHON:python3.6}