[PyQt] PyQt4 QTableWidget crashed/hang when sorting

Phil Thompson phil at riverbankcomputing.co.uk
Sat Sep 15 14:35:04 BST 2007


On Friday 14 September 2007, nEO (a.k.a. gentoo.cn) wrote:
> Platform:
>     Win32  PyQt4.3.0-GPL  with Qt-4.3.1-opensource,  Python 2.5
> Symptoms:
>     QTableWiget sort by a long string column, after remove some rows,
> then sort again will deak lock or crashed.  Sometimes can got a msg
> from console:
>     "Qt has caught an exception thrown from an event handler. Throwing
> exceptions from an event handler is not supported in Qt. You must
> reimplement QApplication::notify() and catch all exceptions there."
>
> Test Program:
>    see attachment: testTbw.py
> Usage:
>    run testTbw.py   and click some cell wait a while program will crashed.
>
> Maybe it's caused by a GC problem or TableWidget's model r/w competition.
> Anyone can help me find root cause and how to fix it?

I can't get it to crash with current snapshots on Linux.

Phil


More information about the PyQt mailing list