[kde-freebsd] Qt seg-fault on quit()

Danny Pansters danny at ricin.com
Fri Feb 15 22:38:15 CET 2008


On Thursday 14 February 2008 22:37:46 Pietro Cerutti wrote:
> Hi guys,
> I haven't found a more appropriate list, sorry for that.
>
> Maybe someone has a clue on why a QtApplication seg-faults upon quit().
>
> Prologue: I have written an OSS mixer using Qt-4 which I'm planning to
> add to ports once ready.
>
> Epiloque: everything runs smoothly, but as soon as I try to close the
> application (no matter whether using qApp->quit(), exit(EXIT_SUCCESS),
> ....), the application quits indeed, but with this infamous message:
>
> Segmentation fault (core dumped)
> Exit 139
>
> Maybe someone can have a look at it? The whole project alojng with a
> kdump.out is here: http://gahr.ch/FreeBSD/QProMix/
>
> Thanks in advance!

I use Qt4 with Python, not c++, but I don't see you overriding the closeEvent 
anywhere. IIUC a QtGui app must use the standard close event to quit (*) and 
override that event to do any extra cleanup, config save, etc.

(*) I think this has to do with GUI thread safety

HTH,

Dan


More information about the kde-freebsd mailing list