[PyQt] Crash using QWebEngineView with certain web sites
oliver
oliver.schoenborn at gmail.com
Sun Feb 7 15:33:41 GMT 2016
>From Kovid Goyal <kovid at kovidgoyal.net>:
> 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.
Anyone remember by any chance the subject of that email, I'd like to have a
look as I have been seeing crashes on exit for a pyqt app I'm writing.
Oliver
> 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
> _____________________________________
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160207/87fdb193/attachment-0001.html>
More information about the PyQt
mailing list