[PyQt] QWebPage segmentation fault

Kay D dtc.kay at gmail.com
Wed Jun 16 17:37:56 BST 2010


Hello

I'm trying to use QWebPage as server-side browser.
When I'm loading
http://www.match.com/cp.aspx?cpp=/cppp/index/domestic/15661/nl.html(redirect
page), I'm receiving segmentation fault.
Backtrace:
Core was generated by `python-dbg webbrowser.py'.
Program terminated with signal 11, Segmentation fault.
#0  QCoreApplication::postEvent (receiver=0x20045c0, event=0x7f716c0050a0,
priority=0)
    at kernel/qcoreapplication.cpp:1105
    in kernel/qcoreapplication.cpp
#0  QCoreApplication::postEvent (receiver=0x20045c0, event=0x7f716c0050a0,
priority=0)
    at kernel/qcoreapplication.cpp:1105
#1  0x00007f71870ac788 in WebCore::QNetworkReplyHandler::finish
(this=0x20f9940)
    at platform/network/qt/QNetworkReplyHandler.cpp:251
#2  0x00007f71870acd54 in WebCore::QNetworkReplyHandler::qt_metacall
(this=0x20f9940,
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value
optimized out>)
    at .moc/release-shared/moc_QNetworkReplyHandler.cpp:82
#3  0x00007f718c91cd49 in QObject::event (this=0x20f9940, e=0x1ffe130) at
kernel/qobject.cpp:1248
#4  0x00007f718a39422c in QApplicationPrivate::notify_helper
(this=0x1dbb970, receiver=0x20f9940, e=0x1ffe130)
    at kernel/qapplication.cpp:4300
#5  0x00007f718a39a6fb in QApplication::notify (this=0x1dcb9b0,
receiver=0x20f9940, e=0x1ffe130)
    at kernel/qapplication.cpp:4183
#6  0x00007f718b314fff in sipQApplication::notify (this=0x1dcb9b0,
a0=0x20f9940, a1=0x1ffe130)
    at sipQtGuipart9.cpp:18539
#7  0x00007f718c90d06c in QCoreApplication::notifyInternal (this=0x1dcb9b0,
receiver=0x20f9940, event=0x1ffe130)
    at kernel/qcoreapplication.cpp:704
#8  0x00007f718c90f7e7 in QCoreApplication::sendEvent (receiver=0x0,
event_type=<value optimized out>, data=
    0x1c02cf0) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#9  QCoreApplicationPrivate::sendPostedEvents (receiver=0x0,
event_type=<value optimized out>, data=0x1c02cf0)
    at kernel/qcoreapplication.cpp:1345
#10 0x00007f718c9369d3 in QCoreApplication::sendPostedEvents (s=<value
optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#11 postEventSourceDispatch (s=<value optimized out>) at
kernel/qeventdispatcher_glib.cpp:276
#12 0x00007f718bbc78c2 in g_main_context_dispatch () from
/lib/libglib-2.0.so.0
#13 0x00007f718bbcb748 in ?? () from /lib/libglib-2.0.so.0
#14 0x00007f718bbcb8fc in g_main_context_iteration () from
/lib/libglib-2.0.so.0
#15 0x00007f718c936513 in QEventDispatcherGlib::processEvents
(this=0x1cb6250, flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:412
#16 0x00007f718a44446e in QGuiEventDispatcherGlib::processEvents
(this=0x20045c0, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:204
#17 0x00007f718c90b992 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#18 0x00007f718c90bd6c in QEventLoop::exec (this=0x7fff3cec43c0, flags=) at
kernel/qeventloop.cpp:201
#19 0x00007f718c90faab in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:981
#20 0x00007f718b315b6c in meth_QApplication_exec_ (sipArgs=<value optimized
out>) at sipQtGuipart9.cpp:20479
#21 0x00000000005a402b in PyCFunction_Call (func=<built-in method exec_ of
QApplication object at remote 0x1d32f78>,
    arg=(), kw=0x0) at ../Objects/methodobject.c:81
#22 0x00000000004d1e22 in call_function (pp_stack=0x7fff3cec45b0, oparg=0)
at ../Python/ceval.c:3750

... Rest of the trace code stripped out ...

Any ideas on fix?
Should I post this as a bug to Qt forum instead?
Why other redirect pages works smoothly?

Best regards,
   Kay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100616/a3ae2bff/attachment.html>


More information about the PyQt mailing list