Old Bug in KFileWidget Reappears in KOffice

Fredy Yanardi fyanardi at gmail.com
Sun Jul 19 18:12:03 BST 2009

Hi all,

I just updated my kdelibs and found out that KOffice applications always crash at startup with an assertion failure in KFileWidget:

#11 0xb6fbe82c in qt_assert (assertion=0xb59cd32e "d->ops", file=0xb59ccbb0 "/home/kde-devel/kde/src/KDE/kdelibs/kfile/kfilewidget.cpp", line=1724)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/global/qglobal.cpp:1786
#12 0xb598e498 in KFileWidget::showEvent (this=0x870c9b0, event=0xbf90f7f0) at /home/kde-devel/kde/src/KDE/kdelibs/kfile/kfilewidget.cpp:1724

Further investigation shows that there is a synchronous job inside the constructor added by last commit to KFileWidget (revision 998710), and the show event is called before this synchronous job completes, which causes d->ops to be 0. This seems to be exactly the same kind of bug fixed last year:

http://bugs.kde.org/show_bug.cgi?id=172678 (Some discussion about this: http://lists.kde.org/?l=kde-devel&m=122437819418675&w=2)

I tested moving the synchronous job to be after d->ops initialization, and it solves the problem, but I don't know the right place for that synchronous job. So maybe anyone more familiar with this can fix this again (or can point me the right place to move this job)

Best Regards,

Fredy Yanardi

More information about the kde-core-devel mailing list