FS#47573 - [qt5-webengine] pyqt5 webengine widgets crashes after latest update
Attached to Project:
Arch Linux
Opened by kachelaqa (kachelaqa) - Thursday, 31 December 2015, 00:30 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 16 February 2017, 18:31 GMT
Opened by kachelaqa (kachelaqa) - Thursday, 31 December 2015, 00:30 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 16 February 2017, 18:31 GMT
|
Details
Description:
After the updates on 30th Dec 2015, pyqt5 programs that use webengine immediately crash after loading a webpage. It seems that the update of the nss package is the culprit, since downgrading it to version 3.20.1-1 fixes the problem. Additional info: python-pyqt5-5.5.1-2 qt5-webengine-5.5.1-7 nss-3.21-1 Steps to reproduce: Python 3.5.1 (default, Dec 7 2015, 12:58:09) [GCC 5.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets >>> app = QtWidgets.QApplication(sys.argv) >>> w = QtWebEngineWidgets.QWebEnginePage() >>> w.load(QtCore.QUrl('https://www.archlinux.org/')) Warning: Program '/usr/bin/python3' crashed. |
This task depends upon
python -c "from PyQt5.Qt import *; app = QApplication([]); w = QWebEngineView(); w.load(QUrl('https://google.com')); w.show(); app.exec_()"
And note that this likely affects all QtWebEngine using apps, not just python based ones. Downgrading nss does indeed fix it.
https://github.com/qtproject/qtwebengine/blob/5.6/tools/scripts/version_resolver.py#L54
python-pyqt5 5.5.1-2
qt5-webengine 5.5.1-10
and got qt5-examples 5.5.1-1 from AUR
I did as root in /usr/share/doc/qt/examples/webenginewidgets/browser qmake-qt5 browser.pro
and then make , and then <dot><slash>browser https:www.google.com and here I am .
Sorry can not type dot slash as for some stupid reason it is bound to 'find'.
Wheras pyqt webengine crashes on google immediately.