[PyQt] Crash using QWebEngineView with certain web sites

Detlev Offenbach detlev at die-offenbachs.de
Sun Feb 7 12:59:50 GMT 2016


On Sunday 07 February 2016, 17:20:11 Kovid Goyal wrote:
> 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.

It doesn't crash for all web sites. E.g. http://eric-ide.python-projects.org loads absolutely 
fine. It seems to be something on the web site that triggers the issue.

I tried latest Qupzilla sources and these work fine. That made me believe, that it is a PyQt 
issue (or something was fixed in Qt 5.6 Beta)

Detlev

> 
> 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-- 
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160207/0464f8d3/attachment.html>


More information about the PyQt mailing list