[PyQt] Two QWebView == Segfault?
Daniele Esposti
expo at expobrain.net
Mon Feb 28 01:19:17 GMT 2011
I just tested your code with Mac OS X, Python 2.71 64bit and the
latest PyQt4 and I got the same segfault.
If you run the sam code from a .py file you will not get segfault, so
I think something wrong happens inside the python console.
Here the traceback from tha crashed python interpreter:
0 ??? 000000000000000000 0 + 0
1 QtWebKit 0x0000000101926a46
WebCore::SharedTimerQt::qt_metacall(QMetaObject::Call, int, void**) +
54
2 QtCore 0x000000010372a2c6
QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 710
3 QtCore 0x0000000103800894
QCoreApplication::exec() + 244
4 QtCore.so 0x0000000104809363 qtcore_input_hook + 131
5 readline.so 0x00000001002efe35 call_readline + 293
6 org.python.python 0x0000000100008ee2 PyOS_Readline + 274
7 org.python.python 0x000000010000a738 tok_nextc + 104
8 org.python.python 0x000000010000aee3 PyTokenizer_Get + 147
9 org.python.python 0x0000000100005afa parsetok + 218
10 org.python.python 0x00000001000e6372 PyParser_ASTFromFile + 146
11 org.python.python 0x00000001000e75d3
PyRun_InteractiveOneFlags + 243
12 org.python.python 0x00000001000e78be
PyRun_InteractiveLoopFlags + 78
13 org.python.python 0x00000001000e80a1 PyRun_AnyFileExFlags + 161
14 org.python.python 0x00000001000fe75c Py_Main + 2940
15 org.python.python 0x0000000100000f14 0x100000000 + 3860
On 27 February 2011 23:04, Robert Siemer
<Robert.Siemer-riverbankcomputing.co.uk at backsla.sh> wrote:
> On 02/28/2011 06:35 AM, David Boddie wrote:
>>
>> On Sun Feb 27 19:53:16 GMT 2011, Robert Siemer wrote:
>>
>>> What am I doing wrong? – The segmentation fault does not come
>>> immediately. I have to type something (above I typed “j”).
>>
>> Which versions of Qt, SIP and PyQt are you using?
>
>
> Group answer!
>
> 1) Versions:
> python-qt4 4.7.4-0ubuntu1
> libqtcore4 and libqtgui4 4:4.7.0-0ubuntu4.2
> libqtwebkit4 2.0.0-0ubuntu1
> python-sip 4.10.5-0ubuntu1
>
> I see newer versions in Ubuntu natty, should I try them?
>
>
> 2) sys.argv instead of [] doesn’t help
>
>
> 3) No, I’m not running the mainloop. And I can’t on the console, because
> once I do, I have no console anymore...
>
>
> Robert
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
--
Daniele Esposti
My Blog http://www.expobrain.net
LinkedIn http://www.linkedin.com/in/danieleesposti
Twitter http://www.twitter.com/#!/expobrain
More information about the PyQt
mailing list