Re: PyQt 5.15 release sigabort on test

Grzegorz Bokota <[email protected]> Mon, 1 Jun 2020 23:18:51 +0200
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CADUBGeR891x9s9WPeZ-3W78PCMrFjU=X-LSNzCSY0Et81zk2ug@mail.gmail.com>
--00000000000013e90805a70c58ec
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks Florian.

my final list is (I'm not sure if all are needed)

sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
libxcb-xinerama0 libxcb-xfixes0

And I do not know why this link points to this value. It should point to
the job with pytest call, not pyinstaller.

Grzegorz Bokota


pon., 1 cze 2020 o 18:38 Florian Bruhin <[email protected]> napisa=C5=82(=
a):

> 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 i=
t
> > 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=3D72668=
0563
>
> That just shows "Documentation_check Notebook_check succeeded" though? I
> assume
> you mean this?
>
>
> https://dev.azure.com/PartSeg/PartSeg/_build/results?buildId=3D1241&view=
=3Dlogs&j=3De0592c93-02a4-58cd-c7d1-a81b63425aad&t=3D141b7d03-3a2a-5fbc-1da=
3-bbe42cc7662e
>
> There you can see "This application failed to start because no Qt platfor=
m
> plugin could be initialized. Reinstalling the application may fix this
> problem.".
>
> You can usually debug those kind of issues by setting QT_DEBUG_PLUGINS=3D=
1 in
> your environment. As a sidenote: With pytest you'll also need to use -s t=
o
> 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 need=
ed
> 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
>
> --
> [email protected] (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/
>

--00000000000013e90805a70c58ec
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thanks Florian. <br></div><div><br></div><div>my fina=
l list is (I&#39;m not sure if all are needed)<br></div><div><pre style=3D"=
background-color:rgb(39,40,34);color:rgb(248,248,242);font-family:&quot;Cas=
cadia Code PL&quot;"><span style=3D"color:rgb(230,219,116)">sudo apt-get in=
stall -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-=
keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0<=
br></span></pre></div><div><div><div dir=3D"ltr" class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature"><div>And I do not know why this link poi=
nts to this value. It should point to the job with pytest call, not pyinsta=
ller.</div><div> <br></div><div dir=3D"ltr">Grzegorz Bokota<br></div></div>=
</div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">pon., 1 cze 2020 o 18:38=C2=A0Florian Bruhin &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt; napisa=C5=82(a):<b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jun 01, 2=
020 at 11:11:18AM +0200, Grzegorz Bokota wrote:<br>
&gt; Phil,<br>
&gt; what can change in Qt 5.15 that the test runned under xvfb ends with<b=
r>
&gt; sigabort?<br>
&gt; <br>
&gt; I have had test running o CI (Github Actions and Azure pipelines). On =
linux<br>
&gt; it is run under xvfb and pass. Few days ago after pyside2 5.15 release=
 It<br>
&gt; fail for pyside, but meet this earlier and think that it is some bug o=
n<br>
&gt; their side (happens elaier).=C2=A0 But today It happens also for PyQt5=
. So it<br>
&gt; looks like change in Qt.<br>
&gt; <br>
&gt; ERROR: InvocationError for command<br>
&gt; /home/runner/work/PartSeg/PartSeg/.tox/py37-PyQt5/bin/pytest package/t=
ests<br>
&gt; (exited with code -6 (SIGABRT)) (exited with code -6)<br>
&gt; <br>
&gt; Full log is here:<br>
&gt; <a href=3D"https://github.com/4DNucleome/PartSeg/pull/61/checks?check_=
run_id=3D726680563" rel=3D"noreferrer" target=3D"_blank">https://github.com=
/4DNucleome/PartSeg/pull/61/checks?check_run_id=3D726680563</a><br>
<br>
That just shows &quot;Documentation_check Notebook_check succeeded&quot; th=
ough? I assume<br>
you mean this?<br>
<br>
<a href=3D"https://dev.azure.com/PartSeg/PartSeg/_build/results?buildId=3D1=
241&amp;view=3Dlogs&amp;j=3De0592c93-02a4-58cd-c7d1-a81b63425aad&amp;t=3D14=
1b7d03-3a2a-5fbc-1da3-bbe42cc7662e" rel=3D"noreferrer" target=3D"_blank">ht=
tps://dev.azure.com/PartSeg/PartSeg/_build/results?buildId=3D1241&amp;view=
=3Dlogs&amp;j=3De0592c93-02a4-58cd-c7d1-a81b63425aad&amp;t=3D141b7d03-3a2a-=
5fbc-1da3-bbe42cc7662e</a><br>
<br>
There you can see &quot;This application failed to start because no Qt plat=
form<br>
plugin could be initialized. Reinstalling the application may fix this<br>
problem.&quot;.<br>
<br>
You can usually debug those kind of issues by setting QT_DEBUG_PLUGINS=3D1 =
in<br>
your environment. As a sidenote: With pytest you&#39;ll also need to use -s=
 to turn<br>
off output capturing (as Qt otherwise aborts before pytest can show its<br>
captured output), and with the pytest-qt plugin, --no-qt-log is also needed=
<br>
until the next release: <a href=3D"https://github.com/pytest-dev/pytest-qt/=
pull/300" rel=3D"noreferrer" target=3D"_blank">https://github.com/pytest-de=
v/pytest-qt/pull/300</a><br>
<br>
In this case, it&#39;s most likely the unbundling of libxcb in Qt 5.15:<br>
<a href=3D"https://codereview.qt-project.org/c/qt/qtbase/+/253905" rel=3D"n=
oreferrer" target=3D"_blank">https://codereview.qt-project.org/c/qt/qtbase/=
+/253905</a><br>
<br>
On Travis CI, here&#39;s the additional list of Ubuntu packages I needed to=
 make things work:<br>
<br>
- libxkbcommon-x11-0 (already needed since Qt 5.12)<br>
- libxcb-icccm4<br>
- libxcb-image0<br>
- libxcb-keysyms1<br>
- libxcb-randr0<br>
- libxcb-render-util0<br>
- libxcb-xinerama0<br>
<br>
Florian<br>
<br>
-- <br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
g</a> (Mail/XMPP) | <a href=3D"https://www.qutebrowser.org" rel=3D"noreferr=
er" target=3D"_blank">https://www.qutebrowser.org</a> <br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://bruhin.software/" rel=3D"nore=
ferrer" target=3D"_blank">https://bruhin.software/</a> | <a href=3D"https:/=
/github.com/sponsors/The-Compiler/" rel=3D"noreferrer" target=3D"_blank">ht=
tps://github.com/sponsors/The-Compiler/</a><br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0GPG: 916E B0C8 FD55 A072 | <a href=3D"https://th=
e-compiler.org/pubkey.asc" rel=3D"noreferrer" target=3D"_blank">https://the=
-compiler.org/pubkey.asc</a><br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I love long mails! | <a hre=
f=3D"https://email.is-not-s.ms/" rel=3D"noreferrer" target=3D"_blank">https=
://email.is-not-s.ms/</a><br>
</blockquote></div>

--00000000000013e90805a70c58ec--