Bug 268049

Summary: The AccountsModel destructor hangs due the QSortFilterProxyModel (on Qt 4.7.0)
Product: [Applications] kmymoney Reporter: nora80
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WAITINGFORINFO    
Severity: crash CC: asoliverez, lnpr58, yzhernand
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nora80 2011-03-09 13:32:37 UTC
Application: kmymoney (4.5.0)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-27-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crash nonrisponde si blocca

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7807710 (LWP 1656))]

Thread 2 (Thread 0xb7573b70 (LWP 1657)):
#0  0x00966416 in __kernel_vsyscall ()
#1  0x00a4edf6 in poll () from /lib/libc.so.6
#2  0x02989a1b in g_poll () from /lib/libglib-2.0.so.0
#3  0x0297c43c in ?? () from /lib/libglib-2.0.so.0
#4  0x0297cba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0x054399c4 in ?? () from /usr/lib/libgio-2.0.so.0
#6  0x029a348f in ?? () from /lib/libglib-2.0.so.0
#7  0x00c04cc9 in start_thread () from /lib/libpthread.so.0
#8  0x00a5d69e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7807710 (LWP 1656)):
[KCrash Handler]
#7  0x0200e50c in QSortFilterProxyModelPrivate::create_mapping (this=0xa10f990, source_parent=...) at itemviews/qsortfilterproxymodel.cpp:324
#8  0x0200f57a in QSortFilterProxyModel::index (this=0xa10cff0, row=0, column=0, parent=...) at itemviews/qsortfilterproxymodel.cpp:1639
#9  0x0200c8e9 in QSortFilterProxyModelPrivate::update_source_sort_column (this=0xa10f990) at itemviews/qsortfilterproxymodel.cpp:445
#10 0x0201216d in QSortFilterProxyModelPrivate::clear_mapping (this=0xa10f990) at itemviews/qsortfilterproxymodel.cpp:303
#11 0x0200ba74 in QAbstractProxyModel::qt_metacall (this=0xa10cff0, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0xbff9c048) at .moc/release-shared/moc_qabstractproxymodel.cpp:72
#12 0x0201627d in QSortFilterProxyModel::qt_metacall (this=0xa10cff0, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0xbff9c048) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:118
#13 0x0848d5ca in AccountsFilterProxyModel::qt_metacall (this=0xa10cff0, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0xbff9c048) at /build/buildd/kmymoney-4.5/obj-i686-linux-gnu/kmymoney/models/accountsmodel.moc:150
#14 0x0820e69a in AccountsViewFilterProxyModel::qt_metacall (this=0xa10cff0, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0xbff9c048) at /build/buildd/kmymoney-4.5/obj-i686-linux-gnu/kmymoney/widgets/kmymoneyaccounttreeview.moc:192
#15 0x02d5a8ca in QMetaObject::metacall (object=0xa10cff0, cl=168887768, idx=24, argv=0xbff9c048) at kernel/qmetaobject.cpp:237
#16 0x02d6d6ad in QMetaObject::activate (sender=0xa0552d8, m=0x2e82230, local_signal_index=0, argv=0xa10f990) at kernel/qobject.cpp:3280
#17 0x02d6dbd3 in QObject::destroyed (this=0xa0552d8, _t1=0xa0552d8) at .moc/release-shared/moc_qobject.cpp:149
#18 0x02d6eafa in QObject::~QObject (this=0xa0552d8, __in_chrg=<value optimized out>) at kernel/qobject.cpp:842
#19 0x02d480c8 in QAbstractItemModel::~QAbstractItemModel (this=0xa0552d8, __in_chrg=<value optimized out>) at kernel/qabstractitemmodel.cpp:1373
#20 0x0201ca28 in QStandardItemModel::~QStandardItemModel (this=0xa0552d8, __in_chrg=<value optimized out>) at itemviews/qstandarditemmodel.cpp:2078
#21 0x0848dd77 in AccountsModel::~AccountsModel (this=0xa0552d8, __in_chrg=<value optimized out>) at /build/buildd/kmymoney-4.5/kmymoney/models/accountsmodel.cpp:425
#22 0x02d67816 in QObjectPrivate::deleteChildren (this=0x9d7eef8) at kernel/qobject.cpp:1957
#23 0x02d6ef30 in QObject::~QObject (this=0x86e1514, __in_chrg=<value optimized out>) at kernel/qobject.cpp:945
#24 0x0849a658 in Models::~Models (this=0x86e1514, __in_chrg=<value optimized out>) at /build/buildd/kmymoney-4.5/kmymoney/models/models.cpp:52
#25 0x009bc69e in ?? () from /lib/libc.so.6
#26 0x009bc70f in exit () from /lib/libc.so.6
#27 0x07562890 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#28 0x00326eea in KApplication::xioErrhandler (this=0x9d93b28, dpy=0x9da66c8) at ../../kdeui/kernel/kapplication.cpp:416
#29 0x00326f26 in kde_xio_errhandler (dpy=0x9da66c8) at ../../kdeui/kernel/kapplication.cpp:125
#30 0x06193c36 in _XIOError () from /usr/lib/libX11.so.6
#31 0x0619ba8a in ?? () from /usr/lib/libX11.so.6
#32 0x0619c406 in _XEventsQueued () from /usr/lib/libX11.so.6
#33 0x0619c499 in _XFlush () from /usr/lib/libX11.so.6
#34 0x06174131 in XFlush () from /usr/lib/libX11.so.6
#35 0x01a59813 in QWidgetPrivate::setCursor_sys (this=0xa525650) at kernel/qwidget_x11.cpp:1363
#36 0x01a076ac in QWidget::setCursor (this=0x1, cursor=...) at kernel/qwidget.cpp:4955
#37 0x01e378f7 in QLineEditPrivate::init (this=0xa525650, txt=...) at widgets/qlineedit_p.cpp:185
#38 0x01e3bfee in QLineEdit::QLineEdit (this=0xa16ebd0, parent=0xa537ba8) at widgets/qlineedit.cpp:266
#39 0x0041a5e6 in KLineEdit::KLineEdit (this=0xa16ebd0, parent=0xa537ba8) at ../../kdeui/widgets/klineedit.cpp:236
#40 0x08253250 in Ui_KAccountPageDecl::setupUi(QWidget*) ()
#41 0x0824f157 in KAccountPageDecl (this=0xa540568, wizard=0xa4e06c0) at /build/buildd/kmymoney-4.5/kmymoney/wizards/newuserwizard/knewuserwizard_p.h:102
#42 NewUserWizard::AccountPage::AccountPage (this=0xa540568, wizard=0xa4e06c0) at /build/buildd/kmymoney-4.5/kmymoney/wizards/newuserwizard/knewuserwizard.cpp:283
#43 0x0824f628 in NewUserWizard::Wizard::Wizard (this=0xa4e06c0, parent=0x0, modal=<value optimized out>, flags=...) at /build/buildd/kmymoney-4.5/kmymoney/wizards/newuserwizard/knewuserwizard.cpp:94
#44 0x080cd028 in KMyMoneyApp::slotFileNew (this=0x9f76dd0) at /build/buildd/kmymoney-4.5/kmymoney/kmymoney.cpp:1301
#45 0x08086f66 in main (argc=1, argv=0xbff9ce54) at /build/buildd/kmymoney-4.5/kmymoney/main.cpp:249

Reported using DrKonqi
Comment 1 Alvaro Soliverez 2011-05-12 12:43:09 UTC
What were you doing when the application froze? Were you opening a file, setting up a new user?
Comment 2 Cristian OneČ› 2011-05-14 10:27:25 UTC
*** Bug 270608 has been marked as a duplicate of this bug. ***
Comment 3 Cristian OneČ› 2011-05-14 10:27:45 UTC
*** Bug 269866 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Baumgart 2011-06-04 17:23:43 UTC
Can this be reproduced with newer versions (e.g. 4.5.3)?