Application: kmymoney (4.5.90-svn) KDE Platform Version: 4.6.2 (4.6.2) (Compiled from sources) Qt Version: 4.7.2 Operating System: Linux 2.6.36-gentoo-r8 x86_64 Distribution (Platform): Gentoo Packages -- Information about the crash: In tabbed view if custom colors are used closing the application always causes a crash. The problem is the the MyMoneyFile is accessed on the destructor of the MyMoneyView. -- Backtrace: Application: KMyMoney (kmymoney), signal: Segmentation fault [KCrash Handler] #6 0x000000000385ad20 in ?? () #7 0x00007fb98dcc0a3b in MyMoneyObjectContainer::security (this=0xcd3688, id=...) at /home/cristi/dezvoltare/kmymoney/kmymoney/mymoney/mymoneyobjectcontainer.cpp:214 #8 0x00007fb98dc8d6d1 in MyMoneyFile::security (this=0x7fb98defc5b0, id=...) at /home/cristi/dezvoltare/kmymoney/kmymoney/mymoney/mymoneyfile.cpp:2249 #9 0x0000000000514dda in BudgetAccountsProxyModel::data (this=0x1c064e0, index=..., role=38) at /home/cristi/dezvoltare/kmymoney/kmymoney/views/kbudgetview.cpp:153 #10 0x00000000005c0a34 in AccountsViewFilterProxyModel::data (this=0x1c064e0, index=..., role=0) at /home/cristi/dezvoltare/kmymoney/kmymoney/widgets/kmymoneyaccounttreeview.cpp:211 #11 0x000000000051518f in BudgetAccountsProxyModel::data (this=0x1c064e0, index=..., role=0) at /home/cristi/dezvoltare/kmymoney/kmymoney/views/kbudgetview.cpp:175 #12 0x00007fb9896d52d6 in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /usr/lib64/qt4/libQtGui.so.4 #13 0x00007fb9896d6688 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib64/qt4/libQtGui.so.4 #14 0x00007fb989666ad6 in QTreeView::indexRowSizeHint(QModelIndex const&) const () from /usr/lib64/qt4/libQtGui.so.4 #15 0x00007fb989666f2c in ?? () from /usr/lib64/qt4/libQtGui.so.4 #16 0x00007fb9896671d5 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #17 0x00007fb9896675a4 in QTreeView::updateGeometries() () from /usr/lib64/qt4/libQtGui.so.4 #18 0x00007fb98961e369 in QAbstractItemView::doItemsLayout() () from /usr/lib64/qt4/libQtGui.so.4 #19 0x00007fb98966dd8a in QTreeView::doItemsLayout() () from /usr/lib64/qt4/libQtGui.so.4 #20 0x00007fb989626126 in QAbstractItemView::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #21 0x00007fb9890dca9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #22 0x00007fb9890e1f3d in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #23 0x00007fb98c64b5c6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #24 0x00007fb98a1f0d6b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #25 0x00007fb98913b5d2 in QWidgetPrivate::setStyle_helper(QStyle*, bool, bool) () from /usr/lib64/qt4/libQtGui.so.4 #26 0x00007fb98913b8e1 in QWidgetPrivate::inheritStyle() () from /usr/lib64/qt4/libQtGui.so.4 #27 0x00007fb98913b574 in QWidgetPrivate::setStyle_helper(QStyle*, bool, bool) () from /usr/lib64/qt4/libQtGui.so.4 #28 0x00007fb98913b8e1 in QWidgetPrivate::inheritStyle() () from /usr/lib64/qt4/libQtGui.so.4 #29 0x00007fb98913b574 in QWidgetPrivate::setStyle_helper(QStyle*, bool, bool) () from /usr/lib64/qt4/libQtGui.so.4 #30 0x00007fb98913b8e1 in QWidgetPrivate::inheritStyle() () from /usr/lib64/qt4/libQtGui.so.4 #31 0x00007fb98913b574 in QWidgetPrivate::setStyle_helper(QStyle*, bool, bool) () from /usr/lib64/qt4/libQtGui.so.4 #32 0x00007fb98913b8e1 in QWidgetPrivate::inheritStyle() () from /usr/lib64/qt4/libQtGui.so.4 #33 0x00007fb98913bd3d in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib64/qt4/libQtGui.so.4 #34 0x00007fb98913c1e2 in QWidget::setParent(QWidget*) () from /usr/lib64/qt4/libQtGui.so.4 #35 0x00007fb98c681ff4 in ?? () from /usr/lib/libkdeui.so.5 #36 0x00007fb98a202c7f in QObjectPrivate::deleteChildren() () from /usr/lib64/qt4/libQtCore.so.4 #37 0x00007fb989137adb in QWidget::~QWidget() () from /usr/lib64/qt4/libQtGui.so.4 #38 0x00000000004bff1e in KMyMoneyView::~KMyMoneyView (this=0x1074fc0, __in_chrg=<value optimized out>) at /home/cristi/dezvoltare/kmymoney/kmymoney/views/kmymoneyview.cpp:281 #39 0x00007fb98a202c7f in QObjectPrivate::deleteChildren() () from /usr/lib64/qt4/libQtCore.so.4 #40 0x00007fb989137adb in QWidget::~QWidget() () from /usr/lib64/qt4/libQtGui.so.4 #41 0x00007fb9894f7b21 in QFrame::~QFrame() () from /usr/lib64/qt4/libQtGui.so.4 #42 0x00007fb98a202c7f in QObjectPrivate::deleteChildren() () from /usr/lib64/qt4/libQtCore.so.4 #43 0x00007fb989137adb in QWidget::~QWidget() () from /usr/lib64/qt4/libQtGui.so.4 #44 0x00007fb98c721955 in KMainWindow::~KMainWindow() () from /usr/lib/libkdeui.so.5 #45 0x0000000000462737 in KMyMoneyApp::~KMyMoneyApp (this=0xe86820, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /home/cristi/dezvoltare/kmymoney/kmymoney/kmymoney.cpp:434 #46 0x00007fb98a202b28 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #47 0x00007fb98913207f in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #48 0x00007fb98951364b in QMainWindow::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #49 0x00007fb98c762373 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5 #50 0x00007fb9890dca9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #51 0x00007fb9890e1f3d in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #52 0x00007fb98c64b5c6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #53 0x00007fb98a1f0d6b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #54 0x00007fb98a1f3cf1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4 #55 0x00007fb98a21d313 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #56 0x00007fb983a4a3c1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #57 0x00007fb983a4e2f8 in ?? () from /usr/lib/libglib-2.0.so.0 #58 0x00007fb983a4e4ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #59 0x00007fb98a21ce53 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #60 0x00007fb98918ed7e in ?? () from /usr/lib64/qt4/libQtGui.so.4 #61 0x00007fb98a1efac2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #62 0x00007fb98a1efea4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #63 0x00007fb98a1f3f1b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4 #64 0x000000000045f6a5 in main (argc=1, argv=0x7fff860d2068) at /home/cristi/dezvoltare/kmymoney/kmymoney/main.cpp:260 Reported using DrKonqi
SVN commit 1227483 by conet: BUG: 270493 Don't try to access data from the MyMoneyFile if there is no storage attached. Somehow Qt calls data upon destruction of the application (from a size hint). M +2 -0 kbudgetview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1227483
*** Bug 257515 has been marked as a duplicate of this bug. ***
Created attachment 61716 [details] New crash information added by DrKonqi kmymoney (4.5.3) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2 - What I was doing when the application crashed: I went to File and chose Quit to close KMyMoney. KMyMoney crashed upon exit. Tabbed view. Nothing customized. Minimal account information added. -- Backtrace (Reduced): #6 0x00007fa3a615be9f in MyMoneyObjectContainer::security (this=0x24fd970, id=...) at /build/buildd/kmymoney-4.5.3/kmymoney/mymoney/mymoneyobjectcontainer.cpp:201 #7 0x00000000004fb4d6 in BudgetAccountsProxyModel::data (this=<value optimized out>, index=..., role=<value optimized out>) at /build/buildd/kmymoney-4.5.3/kmymoney/views/kbudgetview.cpp:151 #8 0x00000000005a2a78 in AccountsViewFilterProxyModel::data (this=0x30ed430, index=..., role=<value optimized out>) at /build/buildd/kmymoney-4.5.3/kmymoney/widgets/kmymoneyaccounttreeview.cpp:211 #9 0x00000000004fafc3 in BudgetAccountsProxyModel::data (this=0x30ed430, index=..., role=0) at /build/buildd/kmymoney-4.5.3/kmymoney/views/kbudgetview.cpp:173 #10 0x00007fa3a213683e in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /usr/lib/libQtGui.so.4