[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Qt 5.13: Segfault on exit with Windows + QtWebEngine
From:       BPL <spscener84 () gmail ! com>
Date:       2019-07-23 14:07:52
Message-ID: CAAfY3fYUOvSqQiLpoERx5ThETrhzk84LbpYWW9X4DOtj3tvOFQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Florian,

Is this thread related to the other one I'd opened few days ago called
"QtWebEngine
crashing with certain app attributes
<https://www.riverbankcomputing.com/pipermail/pyqt/2019-July/041969.html>"?

Asking as that thread hadn't been replied at all but this seems to be
related (it also crashes on exit)... btw, I'd opened that thread here in
the pyqt mailing list
but I wanted to test it first on c++. Unfortunately for some reason
qtcreator wouldn't find qtwebengine (which I installed with
the maintenance tool on top of an existing qt installation):

untitled.pro:

QT += gui webenginewidgets

CONFIG += c++11 console
CONFIG -= app_bundle

DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

main.cpp:

#include <QApplication>
#include <QtOpenGL/QtOpenGL>
#include <QtWidgets/QDockWidget>
#include <QtWidgets/QPlainTextEdit>

int main(int argc, char *argv[]) {
    bool MAKE_IT_CRASH = true;

    if (MAKE_IT_CRASH) {
        QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
    }

    QApplication a(argc, argv);

    QWebEngineView *view = new QWebEngineView(parent);
    view->load(QUrl("http://qt-project.org/"));
    view->show();

    return a.exec();
}

Probably this is a different issue but the fact you've said "you didn't Cc
the list" made me wonder if this could
be related somehow

On Tue, Jul 23, 2019 at 10:20 AM Florian Bruhin <me@the-compiler.org> wrote:

> Hi Phil,
>
> I assume you accidentally didn't Cc the list, so I added it back.
>
> On Sun, Jul 21, 2019 at 06:10:58PM +0100, Phil Thompson wrote:
> > In tonight's SIP and PyQt5 snapshots I have re-written how QObjects are
> > cleaned up when an application exits.
> >
> > Are you able to test these changes (from the source code)? There is no
> hurry
> > as I don't plan on making new releases until Qt 5.13.1.
> >
> > I'm a bit nervous about the changes as they could simply replace one set
> of
> > problems with another.
>
> The good news: This seems to fix a long-standing problem I have with
> QtWebEngine cookies not being saved on exit:
> https://github.com/qutebrowser/qutebrowser/issues/2263
>
> The bad news: You seem to be right. I only did a couple of quick tests on
> Linux, and so far I got:
>
> - An abort() due to an error in PyQtSlotProxy::unislot():
>   https://paste.the-compiler.org/view/8a17300b
>   (I don't have the error message I'm afraid)
>
> - An X error and assertion failure inside Chromium:
>   https://paste.the-compiler.org/view/b9219e33
>
> Florian
>
> --
> https://www.qutebrowser.org | me@the-compiler.org (Mail/XMPP)
>    GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>          I love long mails! | https://email.is-not-s.ms/
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

<div dir="ltr">Florian,<div><br></div><div>Is this thread related to the other one \
I&#39;d opened few days ago called &quot;<a \
href="https://www.riverbankcomputing.com/pipermail/pyqt/2019-July/041969.html">QtWebEngine \
crashing with certain app attributes</a>&quot;?</div><div><br></div><div>Asking as \
that thread hadn&#39;t been replied at all but this seems to be related (it also \
crashes on exit)... btw, I&#39;d opened that thread here in the pyqt mailing \
list</div><div>but I wanted to test it first on c++. Unfortunately for some reason \
qtcreator wouldn&#39;t find qtwebengine (which I installed with</div><div>the \
maintenance tool on top of an existing qt installation):</div><div><br></div><div><a \
href="http://untitled.pro">untitled.pro</a>:</div><div><br></div><blockquote \
style="margin:0 0 0 40px;border:none;padding:0px"><div>QT += gui \
webenginewidgets</div><div><br></div><div>CONFIG += c++11 console</div><div>CONFIG -= \
app_bundle</div><div><br></div><div>DEFINES += \
QT_DEPRECATED_WARNINGS</div><div>SOURCES += main.cpp</div><div><br></div><div># \
Default rules for deployment.</div><div>qnx: target.path = \
/tmp/$${TARGET}/bin</div><div>else: unix:!android: target.path = \
/opt/$${TARGET}/bin</div><div>!isEmpty(target.path): INSTALLS += \
target</div><div><br></div></blockquote>main.cpp:<div><br></div><blockquote \
style="margin:0 0 0 40px;border:none;padding:0px"><div>#include \
&lt;QApplication&gt;</div><div>#include &lt;QtOpenGL/QtOpenGL&gt;</div><div>#include \
&lt;QtWidgets/QDockWidget&gt;</div><div>#include \
&lt;QtWidgets/QPlainTextEdit&gt;</div><div><br></div><div>int main(int argc, char \
*argv[]) {</div><div>      bool MAKE_IT_CRASH = true;</div><div><br></div><div>      \
if (MAKE_IT_CRASH) {</div><div>            \
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);</div><div>      \
}</div><div><br></div><div>      QApplication a(argc, \
argv);</div><div><br></div><div>      QWebEngineView *view = new \
QWebEngineView(parent);</div><div>      view-&gt;load(QUrl(&quot;<a \
href="http://qt-project.org/">http://qt-project.org/</a>&quot;));</div><div>      \
view-&gt;show();</div><div><br></div><div>      return \
a.exec();</div><div>}</div><div><br></div></blockquote>Probably this is a different \
issue but the fact you&#39;ve said &quot;you  didn&#39;t Cc the list&quot; made me \
wonder if this could<div>be related somehow</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019 at 10:20 \
AM Florian Bruhin &lt;<a \
href="mailto:me@the-compiler.org">me@the-compiler.org</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Phil,<br> <br>
I assume you accidentally didn&#39;t Cc the list, so I added it back.<br>
<br>
On Sun, Jul 21, 2019 at 06:10:58PM +0100, Phil Thompson wrote:<br>
&gt; In tonight&#39;s SIP and PyQt5 snapshots I have re-written how QObjects are<br>
&gt; cleaned up when an application exits.<br>
&gt; <br>
&gt; Are you able to test these changes (from the source code)? There is no hurry<br>
&gt; as I don&#39;t plan on making new releases until Qt 5.13.1.<br>
&gt; <br>
&gt; I&#39;m a bit nervous about the changes as they could simply replace one set \
of<br> &gt; problems with another.<br>
<br>
The good news: This seems to fix a long-standing problem I have with<br>
QtWebEngine cookies not being saved on exit:<br>
<a href="https://github.com/qutebrowser/qutebrowser/issues/2263" rel="noreferrer" \
target="_blank">https://github.com/qutebrowser/qutebrowser/issues/2263</a><br> <br>
The bad news: You seem to be right. I only did a couple of quick tests on<br>
Linux, and so far I got:<br>
<br>
- An abort() due to an error in PyQtSlotProxy::unislot():<br>
   <a href="https://paste.the-compiler.org/view/8a17300b" rel="noreferrer" \
target="_blank">https://paste.the-compiler.org/view/8a17300b</a><br>  (I don&#39;t \
have the error message I&#39;m afraid)<br> <br>
- An X error and assertion failure inside Chromium:<br>
   <a href="https://paste.the-compiler.org/view/b9219e33" rel="noreferrer" \
target="_blank">https://paste.the-compiler.org/view/b9219e33</a><br> <br>
Florian<br>
<br>
-- <br>
<a href="https://www.qutebrowser.org" rel="noreferrer" \
target="_blank">https://www.qutebrowser.org</a> | <a \
href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> \
                (Mail/XMPP)<br>
     GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" \
                rel="noreferrer" \
                target="_blank">https://the-compiler.org/pubkey.asc</a><br>
              I love long mails! | <a href="https://email.is-not-s.ms/" \
rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br> \
_______________________________________________<br> PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" \
target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic