alternative patch; this doesn't quite work, it lets the quickinspectortest tests pass but when running the full test suite, strangely, it fails as follows:
21/21 Test #21: quickinspectortest ...............***Exception: Other 0.46 sec libEGL warning: DRI2: failed to open swrast (search paths ../mesa-11.2.1/debian/libgl1-mesa-dri/usr/lib/aarch64-linux-gnu/dri/) libEGL warning: DRI2: failed to open swrast (search paths ../mesa-11.2.1/debian/libgl1-mesa-dri/usr/lib/aarch64-linux-gnu/dri/) ********* Start testing of QuickInspectorTest ********* Config: Using QtTest library 5.5.1, Qt 5.5.1 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160519) [...] QFatal in quickinspectortest (/home/vorlon/gammaray-2.4.0/obj-qt5/bin/quickinspectortest) START BACKTRACE: 1 /home/vorlon/gammaray-2.4.0/obj-qt5/lib/libgammaray_core-qt5.5-aarch64.so.2.4.0(+0xc2128) [0x7fae5f9128] 2 /home/vorlon/gammaray-2.4.0/obj-qt5/lib/libgammaray_core-qt5.5-aarch64.so.2.4.0(+0xa6368) [0x7fae5dd368] 3 /usr/lib/aarch64-linux-gnu/libQt5Core.so.5(+0x91620) [0x7fad8e1620] 4 /usr/lib/aarch64-linux-gnu/libQt5Core.so.5(QMessageLogger::fatal(char const*, ...) const+0x9c) [0x7fad8e30fc] 5 /usr/lib/aarch64-linux-gnu/libQt5Quick.so.5(QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool)+0x194) [0x7fae2dbfac] END BACKTRACE QFATAL : QuickInspectorTest::testModelsReparent() Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0) FAIL! : QuickInspectorTest::testModelsReparent() Received a fatal error. Loc: [Unknown file(0)] Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted ********* Finished testing of QuickInspectorTest ********* it's unclear to me why this shows up as a failure to load the driver when this loaded perfectly well when calling the test case directly. Anyway, patch attached for consideration. ** Patch added: "mesa-1585942-fix-sorta.patch" https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1585942/+attachment/4680685/+files/mesa-1585942-fix-sorta.patch -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1585942 Title: Mesa causes a segmentation fault on arm64 (wrong count of uniform locations) Status in mesa package in Ubuntu: Confirmed Status in ubuntu-system-settings-online-accounts package in Ubuntu: In Progress Bug description: This error appeared when running unit tests for a QML app in our Jenkins/silo infrastructure, on arm64 only: https://launchpadlibrarian.net/261581280/buildlog_ubuntu-yakkety-arm64 .ubuntu-system-settings-online- accounts_0.7+16.10.20160525.1-0ubuntu1_BUILDING.txt.gz Pasting the relevant lines here in case the link above goes away: ======================= QT_PLUGIN_PATH=/usr/lib/aarch64-linux-gnu/qt5/plugins LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} xvfb-run -s '-screen 0 640x480x24' -a dbus-test-runner -t ./tst_online_accounts_qml DBus daemon: unix:abstract=/tmp/dbus-2tbhBHxLZq,guid=03f9df417d619b79067a68045745ad95 task-0: Started with PID: 16930 task-0: ********* Start testing of online_accounts_qml ********* task-0: Config: Using QtTest library 5.5.1, Qt 5.5.1 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160519) task-0: PASS : online_accounts_qml::AccountCreationPage::initTestCase() task-0: QWARN : online_accounts_qml::AccountCreationPage::test_fallback() file:///dummy/path/testPlugin/Main.qml: File not found task-0: PASS : online_accounts_qml::AccountCreationPage::test_fallback() task-0: QWARN : online_accounts_qml::AccountCreationPage::test_flickable() file:///dummy/path/testPlugin/Main.qml: File not found task-0: PASS : online_accounts_qml::AccountCreationPage::test_flickable() task-0: PASS : online_accounts_qml::AccountCreationPage::cleanupTestCase() task-0: QWARN : online_accounts_qml::UnknownTestFunc() QEGLPlatformContext: Failed to make temporary surface current, format not updated task-0: PASS : online_accounts_qml::AuthorizationPage::initTestCase() task-0: QWARN : online_accounts_qml::AuthorizationPage::test_1_one_account() file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:54: TypeError: Cannot call method 'indexOf' of undefined task-0: PASS : online_accounts_qml::AuthorizationPage::test_1_one_account() task-0: QWARN : online_accounts_qml::AuthorizationPage::test_2_add_another(with button) file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:54: TypeError: Cannot call method 'indexOf' of undefined task-0: QWARN : online_accounts_qml::AuthorizationPage::test_2_add_another(with button) file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:79:23: Unable to assign [undefined] to QString task-0: PASS : online_accounts_qml::AuthorizationPage::test_2_add_another(with button) task-0: QWARN : online_accounts_qml::AuthorizationPage::test_2_add_another(with button) [PERFORMANCE]: Last frame took 254 ms to render. task-0: QWARN : online_accounts_qml::AuthorizationPage::test_2_add_another(without button) file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:54: TypeError: Cannot call method 'indexOf' of undefined task-0: QWARN : online_accounts_qml::AuthorizationPage::test_2_add_another(without button) file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:79:23: Unable to assign [undefined] to QString task-0: PASS : online_accounts_qml::AuthorizationPage::test_2_add_another(without button) task-0: QWARN : online_accounts_qml::AuthorizationPage::test_2_add_another(without button) [PERFORMANCE]: Last frame took 210 ms to render. task-0: QWARN : online_accounts_qml::AuthorizationPage::test_3_many_accounts(first account) [PERFORMANCE]: Last frame took 146 ms to render. task-0: QWARN : online_accounts_qml::AuthorizationPage::test_3_many_accounts(first account) file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:54: TypeError: Cannot call method 'indexOf' of undefined task-0: QWARN : online_accounts_qml::AuthorizationPage::test_3_many_accounts(first account) file:///«BUILDDIR»/ubuntu-system-settings-online-accounts-0.7+16.10.20160525.1/online-accounts-ui/qml/AuthorizationPage.qml:79:23: Unable to assign [undefined] to QString task-0: PASS : online_accounts_qml::AuthorizationPage::test_3_many_accounts(first account) Mesa 11.2.1 implementation error: Failed to link fixed function fragment shader: error: count of uniform locations > MAX_UNIFORM_LOCATIONS(4294967295 > 98304) Please report at https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa task-0: Exited with status 139 task-0: Shutting down DBus daemon: Shutdown ======================= This happened 2 out of 2 times, after which I disabled running the unit tests for arm64. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1585942/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

