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

List:       pykde
Subject:    [PyQt] QtWebEngine crashing with certain app attributes
From:       BPL <spscener84 () gmail ! com>
Date:       2019-07-20 23:53:55
Message-ID: CAAfY3fZZZDhf-9NZbS_g3eMR0RbPWa7t3KodZf4CG7dTjq45kA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Consider this little snippet:

    from PyQt5.Qt import *
    from PyQt5.QtWebEngineWidgets import QWebEngineView

    if __name__ == '__main__':
        MAKE_IT_CRASH = True

        if MAKE_IT_CRASH:
            QCoreApplication.setAttribute(Qt.AA_ShareOpenGLContexts)
            QCoreApplication.setAttribute(Qt.AA_UseOpenGLES)

        app = QApplication([])
        browser = QWebEngineView()
        browser.load(QUrl("http://www.google.com"))
        browser.show()
        app.exec_()

If you set MAKE_IT_CRASH to true you should get a deterministic crash when
app exits

I've tested with an existing or empty cache (ie:
removing C:\Users\<username>\AppData\Local\python)

Tested on:

PyQt5==5.13.0
PyQt5-sip==4.19.18
PyQtWebEngine==5.13.0
win7
python3.6.2 x86


Could anyone please confirm this bug will also happen on different systems?

[Attachment #5 (text/html)]

<div dir="ltr">Consider this little snippet:<div><br></div><div>      from PyQt5.Qt \
import *<br>      from PyQt5.QtWebEngineWidgets import QWebEngineView<br><br>      if \
__name__ == &#39;__main__&#39;:<br>            MAKE_IT_CRASH = True<br><br>           \
if MAKE_IT_CRASH:<br>                  \
QCoreApplication.setAttribute(Qt.AA_ShareOpenGLContexts)<br>                  \
QCoreApplication.setAttribute(Qt.AA_UseOpenGLES)<br><br>            app = \
QApplication([])<br>            browser = QWebEngineView()<br>            \
browser.load(QUrl(&quot;<a \
href="http://www.google.com">http://www.google.com</a>&quot;))<br>            \
browser.show()<br>            app.exec_()<br></div><div><br></div><div>If you set \
MAKE_IT_CRASH to true you should get a deterministic crash when app \
exits</div><div><br></div><div>I&#39;ve tested with an existing or empty cache (ie: \
removing  C:\Users\&lt;username&gt;\AppData\Local\python)</div><div><br></div><div>Tested \
on:</div><div><br></div><blockquote style="margin:0 0 0 \
40px;border:none;padding:0px"><div>PyQt5==5.13.0</div><div>PyQt5-sip==4.19.18</div><div>PyQtWebEngine==5.13.0</div><div>win7</div><div>python3.6.2 \
x86</div></blockquote><div><br></div><div>Could anyone please confirm this bug will \
also happen on different systems?</div></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