-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.11.0, 5.11.1, 5.11.2
-
Fix Version/s: 5.12.1
-
Component/s: PySide
-
Labels:None
-
Environment:Windows 10 (64 bit)
Python 3.6.6 (64 bit)
PySide2 5.11.0, 5.11.1, or 5.11.2 (64 bit)
-
Platform/s:
-
Commits:5b72ec04f8da8d8f7f6988d6fdb49c9df9d069ee (qt/qtwebengine/5.12)
Python process crashes in either of the following two conditions (or combinations thereof), and leaves an orphaned Qt_Qtwebengineprocess process running.
To reproduce this bug execute the code under Condition 1 or Condition 2 below, bring the QWebEngineView widget into focus, then start pressing keys on the keyboard.
Condition 1 - overridden keyReleaseEvent and/or keyPressEvent
from PySide2 import QtCore, QtWidgets, QtWebEngineWidgets import sys class Dialog(QtWidgets.QDialog): def __init__(self): super().__init__() self.web = QtWebEngineWidgets.QWebEngineView(self) self.web.setUrl("http://google.com") self.web.resize(1024,768) def keyReleaseEvent(self, event): pass def keyPressEvent(self, event): pass if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) dlg = Dialog() dlg.show() dlg.exec_()
Condition 2 - installed event filter
from PySide2 import QtCore, QtWidgets, QtWebEngineWidgets import sys class Dialog(QtWidgets.QDialog): def __init__(self): super().__init__() self.web = QtWebEngineWidgets.QWebEngineView(self) self.web.setUrl("http://google.com") self.web.resize(1024,768) self.installEventFilter(self) def eventFilter(self, widget, event): return False if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) dlg = Dialog() dlg.show() dlg.exec_()
- relates to
-
QTBUG-73833 Crash dynamic_casting QObject* originating from Qt5WebEngineCore
-
- Closed
-