Bug 216787 - Crash in kontact todo-list when doing multiple concurrent operations [QList::count, KOTodoModel::TodoTreeNode::childrenCount, KOTodoModel::rowCount]
Summary: Crash in kontact todo-list when doing multiple concurrent operations [QList::...
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: todoview (show other bugs)
Version: 4.3.2
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 219945 224129 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-30 11:54 UTC by Bjarne Juul Pasgaard
Modified: 2011-06-12 08:20 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarne Juul Pasgaard 2009-11-30 11:54:42 UTC
Application that crashed: kontact
Version of the application: 4.3.2
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-15-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
What I was doing:
1) Started up kontact
2) Checked my email and read some feeds
3) Switched to the Summary view
4) Switched to the todo-list
5) I'm using akonadi as backend, and for some reason it sometimes a long time before the todo-list is shown (this is problem that has surfaced recently). I got impatient and attempted to select a category in the search bar.
6) Kontact crashed

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  QListData::size (this=0xbf855470, parent=...) at /usr/include/qt4/QtCore/qlist.h:87
#7  QList<KOTodoModel::TodoTreeNode*>::count (this=0xbf855470, parent=...) at /usr/include/qt4/QtCore/qlist.h:250
#8  KOTodoModel::TodoTreeNode::childrenCount (this=0xbf855470, parent=...) at ../../korganizer/views/todoview/kotodomodel.cpp:161
#9  KOTodoModel::rowCount (this=0xbf855470, parent=...) at ../../korganizer/views/todoview/kotodomodel.cpp:648
#10 0x0606ba8a in KOTodoViewSortFilterProxyModel::filterAcceptsRow (this=0x0, source_row=0, source_parent=...) at ../../korganizer/views/todoview/kotodoviewsortfilterproxymodel.cpp:52
#11 0x013ed579 in QSortFilterProxyModelPrivate::handle_filter_changed (this=0x9717190, source_to_proxy=..., proxy_to_source=..., source_parent=..., orient=Qt::Vertical)
    at itemviews/qsortfilterproxymodel.cpp:968
#12 0x013ed8ea in QSortFilterProxyModelPrivate::filter_changed (this=0x9717190) at itemviews/qsortfilterproxymodel.cpp:952
#13 0x0606b848 in KOTodoViewSortFilterProxyModel::setCategoryFilter (this=0xb3b3518, categories=...) at ../../korganizer/views/todoview/kotodoviewsortfilterproxymodel.cpp:116
#14 0x0606b8cb in KOTodoViewSortFilterProxyModel::qt_metacall (this=0xb3b3518, _c=QMetaObject::InvokeMetaMethod, _id=39, _a=0xbf8556d8) at ./kotodoviewsortfilterproxymodel.moc:67
#15 0x04af5263 in QMetaObject::activate (sender=0x96d36f8, from_signal_index=28, to_signal_index=28, argv=0xbf8556d8) at kernel/qobject.cpp:3113
#16 0x04af5ec2 in QMetaObject::activate (sender=0x96d36f8, m=0x617281c, local_signal_index=1, argv=0xbf8556d8) at kernel/qobject.cpp:3187
#17 0x06078743 in KOTodoViewQuickSearch::searchCategoryChanged (this=0x96d36f8, _t1=...) at ./kotodoviewquicksearch.moc:94
#18 0x060788fd in KOTodoViewQuickSearch::qt_metacall (this=0x96d36f8, _c=QMetaObject::InvokeMetaMethod, _id=28, _a=0xbf8557f8) at ./kotodoviewquicksearch.moc:74
#19 0x04af5263 in QMetaObject::activate (sender=0xa410880, from_signal_index=67, to_signal_index=67, argv=0xbf8557f8) at kernel/qobject.cpp:3113
#20 0x04af5ec2 in QMetaObject::activate (sender=0xa410880, m=0x6172ac0, local_signal_index=0, argv=0xbf8557f8) at kernel/qobject.cpp:3187
#21 0x06079943 in KCheckComboBox::checkedItemsChanged (this=0xa410880, _t1=...) at ./kcheckcombobox.moc:137
#22 0x0607a2b0 in KCheckComboBox::updateCheckedItems (this=0xa410880, topLeft=..., bottomRight=...) at ../../korganizer/views/todoview/kcheckcombobox.cpp:199
#23 0x0607ac40 in KCheckComboBox::qt_metacall (this=0xa410880, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf8559a4) at ./kcheckcombobox.moc:91
#24 0x04af5263 in QMetaObject::activate (sender=0xce626b8, from_signal_index=4, to_signal_index=4, argv=0xbf8559a4) at kernel/qobject.cpp:3113
#25 0x04af5ec2 in QMetaObject::activate (sender=0xce626b8, m=0x4bd04f8, local_signal_index=0, argv=0xbf8559a4) at kernel/qobject.cpp:3187
#26 0x04b2eb29 in QAbstractItemModel::dataChanged (this=0xce626b8, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:126
#27 0x013f3e43 in QStandardItemModelPrivate::itemChanged (this=0xce626c8, item=0xce7af08) at itemviews/qstandarditemmodel.cpp:502
#28 0x013f4020 in QStandardItem::setData (this=0xce7af08, value=..., role=10) at itemviews/qstandarditemmodel.cpp:832
#29 0x013faaa2 in QStandardItemModel::setData (this=0xce626b8, index=..., value=..., role=10) at itemviews/qstandarditemmodel.cpp:2818
#30 0x06079a5f in KCheckComboBox::toggleCheckState (this=0xa410880, index=...) at ../../korganizer/views/todoview/kcheckcombobox.cpp:208
#31 0x06079ae3 in KCheckComboBox::toggleCheckState (this=0xa410880, pos=0) at ../../korganizer/views/todoview/kcheckcombobox.cpp:215
#32 0x0607ac5f in KCheckComboBox::qt_metacall (this=0xa410880, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf855c88) at ./kcheckcombobox.moc:93
#33 0x04af5263 in QMetaObject::activate (sender=0xa410880, from_signal_index=28, to_signal_index=28, argv=0xbf855c88) at kernel/qobject.cpp:3113
#34 0x04af5ec2 in QMetaObject::activate (sender=0xa410880, m=0x16732b8, local_signal_index=1, argv=0xbf855c88) at kernel/qobject.cpp:3187
#35 0x011db7b3 in QComboBox::activated (this=0xa410880, _t1=0) at .moc/release-shared/moc_qcombobox.cpp:269
#36 0x011de8d1 in QComboBoxPrivate::emitActivated (this=0xce624f8, index=...) at widgets/qcombobox.cpp:1188
#37 0x011e0060 in QComboBoxPrivate::_q_itemSelected (this=0xce624f8, item=...) at widgets/qcombobox.cpp:1179
#38 0x011e57ca in QComboBox::qt_metacall (this=0xa410880, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbf855f08) at .moc/release-shared/moc_qcombobox.cpp:186
#39 0x0060fdfa in KComboBox::qt_metacall (this=0xa410880, _c=QMetaObject::InvokeMetaMethod, _id=39, _a=0xbf855f08) at ./kcombobox.moc:100
#40 0x0607ab0a in KCheckComboBox::qt_metacall (this=0xa410880, _c=QMetaObject::InvokeMetaMethod, _id=39, _a=0xbf855f08) at ./kcheckcombobox.moc:83
#41 0x04af5263 in QMetaObject::activate (sender=0xb1c2888, from_signal_index=27, to_signal_index=27, argv=0xbf855f08) at kernel/qobject.cpp:3113
#42 0x04af5ec2 in QMetaObject::activate (sender=0xb1c2888, m=0x16804b4, local_signal_index=0, argv=0xbf855f08) at kernel/qobject.cpp:3187
#43 0x0149aeb3 in QComboBoxPrivateContainer::itemSelected (this=0xb1c2888, _t1=...) at .moc/release-shared/moc_qcombobox_p.cpp:198
#44 0x011dd444 in QComboBoxPrivateContainer::eventFilter (this=0xb1c2888, o=0xd145b18, e=0xbf8563f0) at widgets/qcombobox.cpp:667
#45 0x04ade83a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8813220, receiver=0xd145b18, event=0xbf8563f0) at kernel/qcoreapplication.cpp:726
#46 0x00e0cf2c in QApplicationPrivate::notify_helper (this=0x8813220, receiver=0xd145b18, e=0xbf8563f0) at kernel/qapplication.cpp:4052
#47 0x00e15033 in QApplication::notify (this=0xbf857dd4, receiver=0xd145b18, e=0xbf8563f0) at kernel/qapplication.cpp:3758
#48 0x00553bfa in KApplication::notify (this=0xbf857dd4, receiver=0xd145b18, event=0xbf8563f0) at ../../kdeui/kernel/kapplication.cpp:302
#49 0x04adf6cb in QCoreApplication::notifyInternal (this=0xbf857dd4, receiver=0xd145b18, event=0xbf8563f0) at kernel/qcoreapplication.cpp:610
#50 0x00e13f6e in QCoreApplication::sendSpontaneousEvent (receiver=0xd145b18, event=0xbf8563f0, alienWidget=0xd145b18, nativeWidget=0xb1c2888, buttonDown=0x1687aa0, lastMouseReceiver=...)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#51 QApplicationPrivate::sendMouseEvent (receiver=0xd145b18, event=0xbf8563f0, alienWidget=0xd145b18, nativeWidget=0xb1c2888, buttonDown=0x1687aa0, lastMouseReceiver=...)
    at kernel/qapplication.cpp:2924
#52 0x00e82c87 in QETWidget::translateMouseEvent (this=0xb1c2888, event=0xbf857a3c) at kernel/qapplication_x11.cpp:4343
#53 0x00e81c4b in QApplication::x11ProcessEvent (this=0xbf857dd4, event=0xbf857a3c) at kernel/qapplication_x11.cpp:3428
#54 0x00eae502 in x11EventSourceDispatch (s=0x881dee8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#55 0x01907e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#56 0x0190b720 in ?? () from /lib/libglib-2.0.so.0
#57 0x0190b853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#58 0x04b0a02c in QEventDispatcherGlib::processEvents (this=0x87ee9f8, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#59 0x00eadbe5 in QGuiEventDispatcherGlib::processEvents (this=0x87ee9f8, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#60 0x04addc79 in QEventLoop::processEvents (this=0xbf857d34, flags=) at kernel/qeventloop.cpp:149
#61 0x04ade0ca in QEventLoop::exec (this=0xbf857d34, flags=...) at kernel/qeventloop.cpp:201
#62 0x04ae053f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#63 0x00e0cdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#64 0x0804b4e6 in main (argc=3, argv=0xbf857ff4) at ../../../kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Bjarne Juul Pasgaard 2009-12-03 21:09:37 UTC
I've now reproduced this problem 5 times on another laptop (same software). The following steps makes the problem reproducible:
1) Start Kontact in the Mail view
2) Switch to the summary view - I have a few todo's listed in the summary.
3) Switch to the todo-list - the list is empty.
4) Select a new category in the todo-list search bar.
5) Kontact will crash.

No crash occurs if I, after startup of kontact, switch directly from the mail view to the todo-list.
Comment 2 Dario Andres 2009-12-24 14:33:45 UTC
From bug 219945:
---
What I was doing when the application crashed:
I was in the todo view, and wanted to look for a specific group. I have clicked
on the search textbox, typed "Uv" - and kontact has crashed.

I am not sure if this pattern matches anything at all, probably the todo I was
looking for was deleted - it was not visible, so even if it exists, the filters
have hidden it.
Comment 3 Dario Andres 2009-12-24 14:33:54 UTC
*** Bug 219945 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2010-03-28 00:05:43 UTC
*** Bug 224129 has been marked as a duplicate of this bug. ***
Comment 5 Sergio Martins 2011-06-12 08:20:25 UTC
Try with kdepim 4.6, lot has changed.