[PyQt] QtWebEngine crashing with certain app attributes
BPL
spscener84 at gmail.com
Sun Jul 21 00:53:55 BST 2019
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190721/16f0352e/attachment.html>
More information about the PyQt
mailing list