Application: kmymoney (3.95.0-svn1091489) KDE Platform Version: 4.4.00 (KDE 4.4.0) Qt Version: 4.6.1 Operating System: Linux 2.6.32-ARCH x86_64 -- Information about the crash: I had my own file open then I clicked on the New button to create a New File and the application crashed. It seems to be related to the models not being deleted correctly. The crash can be reproduced every time. -- Backtrace: Application: KMyMoney (kmymoney), signal: Segmentation fault [KCrash Handler] #5 0x00007f5063e9b255 in QStandardItemModel::indexFromItem(QStandardItem const*) const () from /usr/lib/libQtGui.so.4 #6 0x00007f5063e9b321 in QStandardItemModel::parent(QModelIndex const&) const () from /usr/lib/libQtGui.so.4 #7 0x0000000000836b24 in QModelIndex::parent (this=0x1e35140) at /usr/include/QtCore/qabstractitemmodel.h:389 #8 AccountsModel::load (this=0x1e35140) at /home/al/desarrollo/kmm/kde4/kmymoney/kmymoney/models/accountsmodel.cpp:482 #9 0x000000000083be70 in Models::qt_metacall (this=0xc49930, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/al/desarrollo/kmm/kde4/kmymoney/Debug/kmymoney/models/moc_models.cpp:72 #10 0x00007f5064536ebf in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #11 0x00007f506840e2e9 in MyMoneyFile::attachStorage (this=0x7f50686a2560, storage=0x1ce22c0) at /home/al/desarrollo/kmm/kde4/kmymoney/kmymoney/mymoney/mymoneyfile.cpp:118 #12 0x00000000004ae04a in KMyMoneyView::closeFile (this=0x1c0b1a0) at /home/al/desarrollo/kmm/kde4/kmymoney/kmymoney/views/kmymoneyview.cpp:549 #13 0x000000000049e602 in KMyMoneyApp::slotFileClose (this=0x1a80d60) at /home/al/desarrollo/kmm/kde4/kmymoney/kmymoney/kmymoney.cpp:1781 #14 0x00000000004a0d67 in KMyMoneyApp::slotFileNew (this=0x1a80d60) at /home/al/desarrollo/kmm/kde4/kmymoney/kmymoney/kmymoney.cpp:1245 #15 0x00000000004a70be in KMyMoneyApp::qt_metacall (this=0x1a80d60, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff258648a0) at /home/al/desarrollo/kmm/kde4/kmymoney/Debug/kmymoney/kmymoney.moc:491 #16 0x00007f5064536ebf in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #17 0x00007f50638dc692 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4 #18 0x00007f50638de70b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4 #19 0x00007f5063c9622a in ?? () from /usr/lib/libQtGui.so.4 #20 0x00007f5063c964dc in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4 #21 0x00007f5063d6256a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4 #22 0x00007f5063938b52 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #23 0x00007f50638e279c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #24 0x00007f50638e956b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #25 0x00007f50669b5d36 in KApplication::notify (this=0x195ab20, receiver=0x1aebd30, event=0x7fff25865380) at /home/phil/kdemod/testing/kdelibs/src/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302 #26 0x00007f506452415c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #27 0x00007f50638e873e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4 #28 0x00007f5063967bfb in ?? () from /usr/lib/libQtGui.so.4 #29 0x00007f506396690a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4 #30 0x00007f5063991012 in ?? () from /usr/lib/libQtGui.so.4 #31 0x00007f505de5726e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #32 0x00007f505de5ac28 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0 #33 0x00007f505de5ad50 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #34 0x00007f506454d603 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #35 0x00007f5063990c0e in ?? () from /usr/lib/libQtGui.so.4 #36 0x00007f5064522a82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #37 0x00007f5064522e5c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #38 0x00007f5064526b9b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #39 0x000000000045fdf8 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/al/desarrollo/kmm/kde4/kmymoney/kmymoney/main.cpp:273 Reported using DrKonqi
SVN commit 1091622 by conet: BUG: 227303 Fixed several crashes while closing a kmymoney file. Alvaro can you check if this really fixed the bug since the crashes were not exactly as in the reported stack trace. M +36 -21 models/accountsmodel.cpp M +2 -1 views/kgloballedgerview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1091622