[PyQt] Segmentation Fault(coredump) QFileSystemModel, QSortFilterProxyModel, QTreeView

Hans-Peter Jansen hpj at urpla.net
Thu Dec 2 19:54:59 GMT 2010


On Thursday 02 December 2010, 18:37:33 Jean Dalmayrac wrote:
> Hi All,
> I'm having segmentation fault crash while using QFileSystemModel and
> QSortFilterProxyModel.
> I'm trying to do a little files manager that will latter fit into a
> bigger application.
>
> Everything is running normally, but after a number (undefined) of
> clicks on my QTreeView to open folders, my  files manager crashes
> with the following message:
>
> Segmentation Fault (coredump)
> If I directly connect my QFileSystemModel to my QTreeView, the
> problem no longer
>
> appears.
> The code below is a very lightweight version of my code but it
> reproduces the same problem.
> For information, i'm using:
> Python 2.4.2
> PyQt 4.4.2
> Qt 4.5.0
> SunOs 5.8

Since the code hasn't any apparent deficits, I would correlate your 
issues with your _ancient_ setup. A gdb backtrace with a proper debug 
symbols setup would sched some light onto the issue (palaeoanthropic  
wise), but I would update Qt, sip and PyQt at least.

For what is worth, with this setup all is fine:
python: 2.6
sip: 4.12-snapshot-1d6ba419952c
qt4: 4.7.1
pyqt4: snapshot-4.8.2-f509333f6b01

Pete


More information about the PyQt mailing list