PyQt 5.15 release sigabort on test

Florian Bruhin me at the-compiler.org
Mon Jun 1 17:38:18 BST 2020


On Mon, Jun 01, 2020 at 11:11:18AM +0200, Grzegorz Bokota wrote:
> Phil,
> what can change in Qt 5.15 that the test runned under xvfb ends with
> sigabort?
> 
> I have had test running o CI (Github Actions and Azure pipelines). On linux
> it is run under xvfb and pass. Few days ago after pyside2 5.15 release It
> fail for pyside, but meet this earlier and think that it is some bug on
> their side (happens elaier).  But today It happens also for PyQt5. So it
> looks like change in Qt.
> 
> ERROR: InvocationError for command
> /home/runner/work/PartSeg/PartSeg/.tox/py37-PyQt5/bin/pytest package/tests
> (exited with code -6 (SIGABRT)) (exited with code -6)
> 
> Full log is here:
> https://github.com/4DNucleome/PartSeg/pull/61/checks?check_run_id=726680563

That just shows "Documentation_check Notebook_check succeeded" though? I assume
you mean this?

https://dev.azure.com/PartSeg/PartSeg/_build/results?buildId=1241&view=logs&j=e0592c93-02a4-58cd-c7d1-a81b63425aad&t=141b7d03-3a2a-5fbc-1da3-bbe42cc7662e

There you can see "This application failed to start because no Qt platform
plugin could be initialized. Reinstalling the application may fix this
problem.".

You can usually debug those kind of issues by setting QT_DEBUG_PLUGINS=1 in
your environment. As a sidenote: With pytest you'll also need to use -s to turn
off output capturing (as Qt otherwise aborts before pytest can show its
captured output), and with the pytest-qt plugin, --no-qt-log is also needed
until the next release: https://github.com/pytest-dev/pytest-qt/pull/300

In this case, it's most likely the unbundling of libxcb in Qt 5.15:
https://codereview.qt-project.org/c/qt/qtbase/+/253905

On Travis CI, here's the additional list of Ubuntu packages I needed to make things work:

- libxkbcommon-x11-0 (already needed since Qt 5.12)
- libxcb-icccm4
- libxcb-image0
- libxcb-keysyms1
- libxcb-randr0
- libxcb-render-util0
- libxcb-xinerama0

Florian

-- 
me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200601/a4c7d9f6/attachment.sig>


More information about the PyQt mailing list