QtWebEngine crashing with certain app attributes

classic Classic list List threaded Threaded
1 message Options
BPL
Reply | Threaded
Open this post in threaded view
|

QtWebEngine crashing with certain app attributes

BPL
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?

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt