Hi Pete,
Thanks for your quick reply and thanks for confirming my issue.
On 3/25/2011 12:21 AM, Hans-Peter Jansen wrote:
On Thursday 24 March 2011, 23:52:53 Gelonida wrote:
Hi I have a rather small (mostly crashing) script with a
QWebViewwidget.
# beginning of script
import sys
import platform
import PyQt4.QtGui as QtGui
import PyQt4.QtCore as QtCore
from PyQt4.QtWebKit import QWebView
class MyMainWindow(QtGui.QMainWindow):
def __init__(self, parent=None):
super(MyMainWindow, self).__init__(parent)
self.setWindowTitle("Simple Crasher")
self.webview = QWebView()
self.setCentralWidget(self.webview)
# I tried with two face book apps so you can probably
# reproduce with another facebook app
urlstr ="http://apps.facebook.com/be-heroic"
self.webview.setUrl(QtCore.QUrl(urlstr))
print sys.platform, platform.release()
print QtCore.PYQT_VERSION_STR,QtCore.PYQT_VERSION
app = QtGui.QApplication(sys.argv)
window = MyMainWindow()
window.show()
sys.exit(app.exec_())
# end of script
The url points to a facebook application.
I tried with the url in the sample script, but failed also with other
facebook applications.
What happens:
After starting the script a login screen shows up
(email address and password field in the top right corner of the
dispay) after a few seconds the layout changes and the emailaddress
and password field are in the middle of the screen
I enter email address and password of my facebook account and click
on connect.
In 90 % of the cases the script crashes without any python back trace
or error message.
Example output:
linux2 2.6.32-29-generic
4.7.2 263938
Segmentation fault (core dumped)
The application crashes also under windows where the output would be
win32 post2008Server
4,7 263936
Can anybody else reproduce this?
Confirmed:
python: 2.6
sip: 4.12.1
qt4: 4.6.3
pyqt4: snapshot-4.8.4-278054fd857c
Given the simpleness of your script, and since this happens deep
under the covers in the javascript core, a *Qt* bugreport would be
in order. That requires a C++ version, though. If that version works,
then Phil is to blame, but I doubt that.
Well I must admit I never wrote C++ code with Qt
I'll have to check what exactly is needed to write is as pure C++
application.
Leaving a pointer to the report here would be nice.
Pete
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt