[PyQt] QWebView crashes
gelonida at gmail.com
Mon Apr 4 23:17:44 BST 2011
Hi Hans Peter,
Thanks a lot.
Yes I can easily crash with your example.
at least with my versions of Qt / PyQt
not behaving that nicely within Webkit (or at least some of its versions)
On 04/04/2011 04:14 PM, Hans-Peter Jansen wrote:
> On Monday 04 April 2011, 00:23:59 Hans-Peter Jansen wrote:
>> On Sunday 03 April 2011, 22:49:44 Gelonida Gmail wrote:
>>> Nokia considers this bug not being their problem, but a webkit
>>> Therefore I filed a new bug report for webkit.
>> Hi Phil,
>> I was able to simplify the issue even further, and usually just
>> clicking on the homepage link on the login page (after logging in)
>> crashes in the JS core, but now, this code crashes reliable in the
>> webview.show() line over here:
>> import sys
>> import platform
>> import PyQt4.QtGui as QtGui
>> import PyQt4.QtCore as QtCore
>> from PyQt4.QtWebKit import QWebView
>> print sys.platform, platform.release()
>> print QtCore.PYQT_VERSION_STR,QtCore.PYQT_VERSION
>> app = QtGui.QApplication(sys.argv)
>> webview = QWebView()
>> urlstr = "http://facebook.com"
> It's getting stranger and stranger:
> the crash happens in an interactive python session only. If saved to a
> file, it's running fine (apart from webkits facebook dysfunction, which
> prevents a successful login (for me at least with:
> Qt version: 4.7.1
> sip version: 4.12.2-snapshot-ec9807971e08
> PyQt version: snapshot-4.8.4-8641ecc135b3
> Webkit version: 533.3
> Python: 2.6 (linux2, 22.214.171.124-6-desktop)
> Even more streamlined version:
> import sys
> from PyQt4 import QtCore, QtGui, QtWebKit
> urlstr = "http://facebook.com"
> app = QtGui.QApplication(sys.argv)
> webview = QtWebKit.QWebView()
> Attached is a slightly improved variant in python and C++, that would be
> interesting to get output and feedback on various platforms and
> versions for (preferably of those, that own a valid facebook
> Login successful?
> Crash after click on homepage link?
More information about the PyQt