[PyQt] Crash using QWebEngineView with certain web sites

Kovid Goyal kovid at kovidgoyal.net
Sun Feb 7 11:50:11 GMT 2016


https://bugs.archlinux.org/task/47573

And note that your script will segfault on exit, even with nss 3.20
because of object lifetime issues, I posted the workaround for that
sometime earlier in this list.

On Sun, Feb 07, 2016 at 11:22:14AM +0100, Detlev Offenbach wrote:
> Hi,
> 
> I amtrying to port the web browser of eric6 from QtWebKit to QtWebEngine. 
> However, I am struggling with a crash occurring for some web sites. 
> Attached please find a short script that exposes the issue over here on 
> openSUSE Leap 42.1. I am using Python 3.4.1, Qt 5.5.1 (from installer) and 
> PyQt 5.5.1 (compiled by myself). The script generates a SegmentationFault.
> 
> Regards
> Detlev-- 
> *Detlev Offenbach*
> detlev at die-offenbachs.de

> #!/usr/bin/env python3
> # -*- coding: utf-8 -*-
> 
> import sys
> 
> from PyQt5.QtCore import QUrl
> from PyQt5.QtWidgets import QApplication
> 
> # this needs to be imported before a QApplication object is created
> from PyQt5 import QtWebEngineWidgets
> 
> # This is here to mimic my use case (i.e. being in another module)
> from PyQt5.QtWebEngineWidgets import QWebEngineView
> 
> if __name__ == "__main__":
>     urlStr = "http://sourceforge.net/projects/eric-ide/files/eric6/stable"
>     
>     app = QApplication(sys.argv)
>     v = QWebEngineView()
>     v.show()
>     v.setUrl(QUrl(urlStr))
>     sys.exit(app.exec_())
>     

> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt


-- 
_____________________________________

Dr. Kovid Goyal 
http://www.kovidgoyal.net
http://calibre-ebook.com
_____________________________________


More information about the PyQt mailing list