Bug 275752 - crash when trying to select multiple folders with shift-click (EntityTreeModel::setData)
Summary: crash when trying to select multiple folders with shift-click (EntityTreeMode...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 2.1.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 281271 290660 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-15 19:44 UTC by Kevin Bader
Modified: 2017-01-07 22:42 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
segfault trace (11.35 KB, text/plain)
2011-06-15 19:44 UTC, Kevin Bader
Details
New crash information added by DrKonqi (9.66 KB, text/plain)
2012-02-14 16:21 UTC, Christopher Yeleighton
Details
New crash information added by DrKonqi (8.93 KB, text/plain)
2012-04-07 12:50 UTC, Simon Reed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Bader 2011-06-15 19:44:25 UTC
Created attachment 61031 [details]
segfault trace

Version:           2.1.0 (using KDE 4.6.4) 
OS:                Linux

When trying to select multiple folders with shift-click, KMail immediately crashes. This only happens when the folders belong to different mail accounts!

Reproducible: Always

Steps to Reproduce:
click on an arbitrary folder, then shift-click on a folder which belongs to a different mail account.

Actual Results:  
crash

Expected Results:  
both folders are selected

using gentoo sources
Comment 1 Christophe Marin 2011-07-08 09:17:02 UTC
Thread 1 (Thread 0x7f05b857b780 (LWP 28855)):
[KCrash Handler]
#6  Akonadi::EntityTreeModel::setData (this=0x71fab0, index=..., value=..., role=53) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4/akonadi/entitytreemodel.cpp:704
#7  0x00007f05b1dabe94 in rootIndexAboutToBeRemoved (this=0x21e5560, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=<value optimized out>) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4/akonadi/selectionproxymodel.cpp:59
#8  Akonadi::SelectionProxyModel::qt_metacall (this=0x21e5560, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=<value optimized out>) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4_build/akonadi/selectionproxymodel.moc:76
#9  0x00007f05b621459f in QMetaObject::activate (sender=0x21e5560, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffdf210280) at kernel/qobject.cpp:3278
#10 0x00007f05b7f6b122 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=<value optimized out>, _t1=<value optimized out>) at /usr/src/debug/kde-base/kdelibs-4.6.4/kdelibs-4.6.4_build/kdeui/moc_kselectionproxymodel.cpp:147
#11 0x00007f05b7f72ce7 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x2233080, range=...) at /usr/src/debug/kde-base/kdelibs-4.6.4/kdelibs-4.6.4/kdeui/itemviews/kselectionproxymodel.cpp:1690
#12 0x00007f05b7f730ac in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x2233080, selection=<value optimized out>) at /usr/src/debug/kde-base/kdelibs-4.6.4/kdelibs-4.6.4/kdeui/itemviews/kselectionproxymodel.cpp:1609
#13 0x00007f05b7f75c8d in KSelectionProxyModelPrivate::selectionChanged (this=<value optimized out>, _selected=<value optimized out>, _deselected=<value optimized out>) at /usr/src/debug/kde-base/kdelibs-4.6.4/kdelibs-4.6.4/kdeui/itemviews/kselectionproxymodel.cpp:1859
#14 0x00007f05b7f77616 in KSelectionProxyModel::qt_metacall (this=0x21e5560, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdf210b60) at /usr/src/debug/kde-base/kdelibs-4.6.4/kdelibs-4.6.4_build/kdeui/moc_kselectionproxymodel.cpp:134
#15 0x00007f05b1dabdb7 in Akonadi::SelectionProxyModel::qt_metacall (this=0x21e5560, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdf210b60) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4_build/akonadi/selectionproxymodel.moc:70
#16 0x00007f05b621459f in QMetaObject::activate (sender=0xa37d40, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffdf210b60) at kernel/qobject.cpp:3278
#17 0x00007f05b6c53da7 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#18 0x00007f05b6c5a599 in QItemSelectionModel::emitSelectionChanged (this=0xa37d40, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#19 0x00007f05b6c5ad6c in QItemSelectionModel::select (this=0xa37d40, selection=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#20 0x00007f05b128f30a in MessageList::Pane::Private::onSelectionChanged (this=0xb49130, selected=<value optimized out>, deselected=...) at /usr/src/debug/kde-base/kdepim-common-libs-4.6.0/kdepim-common-libs-4.6.0/messagelist/pane.cpp:317
#21 0x00007f05b12901ef in MessageList::Pane::qt_metacall (this=0xb39930, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdf2110e0) at /usr/src/debug/kde-base/kdepim-common-libs-4.6.0/kdepim-common-libs-4.6.0_build/messagelist/pane.moc:110
#22 0x00007f05b621459f in QMetaObject::activate (sender=0x914930, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffdf2110e0) at kernel/qobject.cpp:3278
#23 0x00007f05b6c53da7 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#24 0x00007f05b6c5a599 in QItemSelectionModel::emitSelectionChanged (this=0x914930, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#25 0x00007f05b6c5ad6c in QItemSelectionModel::select (this=0x914930, selection=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#26 0x00007f05b1dd1d40 in Akonadi::StandardActionManager::Private::favoriteSelectionChanged (this=0xa54480) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4/akonadi/standardactionmanager.cpp:432
#27 0x00007f05b1dced5d in Akonadi::StandardActionManager::qt_metacall (this=0xaaf880, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffdf211470) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4_build/akonadi/standardactionmanager.moc:150
#28 0x00007f05b621459f in QMetaObject::activate (sender=0xb0ad60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffdf211470) at kernel/qobject.cpp:3278
#29 0x00007f05b6c53da7 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#30 0x00007f05b6c5a599 in QItemSelectionModel::emitSelectionChanged (this=0xb0ad60, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#31 0x00007f05b6c5ad6c in QItemSelectionModel::select (this=0xb0ad60, selection=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#32 0x00007f05b1dd1f7c in Akonadi::StandardActionManager::Private::collectionSelectionChanged (this=0xa54480) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4/akonadi/standardactionmanager.cpp:414
#33 0x00007f05b1dced52 in Akonadi::StandardActionManager::qt_metacall (this=0xaaf880, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffdf211820) at /usr/src/debug/kde-base/kdepimlibs-4.6.4/kdepimlibs-4.6.4_build/akonadi/standardactionmanager.moc:149
#34 0x00007f05b621459f in QMetaObject::activate (sender=0x914930, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffdf211820) at kernel/qobject.cpp:3278
Comment 2 Christophe Marin 2011-07-15 16:07:56 UTC
Can be reproduced using master:
- Shift-select several folders,
- Release shift, click on an unselected folder


Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fb3c8293760 (LWP 13108))]

Thread 1 (Thread 0x7fb3c8293760 (LWP 13108)):
[KCrash Handler]
#6  0x00007fb3d4101dce in QModelIndex::internalPointer (this=0xbabababababababb) at /usr/include/QtCore/qabstractitemmodel.h:69
#7  0x00007fb3d40ff82f in Akonadi::EntityTreeModel::setData (this=0x5d60a0, index=..., value=..., role=53) at /kde/src/kdepimlibs/akonadi/entitytreemodel.cpp:708
#8  0x00007fb3d416e016 in Akonadi::SelectionProxyModelPrivate::rootIndexAboutToBeRemoved (this=0x13caf410, removedRootIndex=...) at /kde/src/kdepimlibs/akonadi/selectionproxymodel.cpp:59
#9  0x00007fb3d416dce3 in Akonadi::SelectionProxyModel::qt_metacall (this=0x14708190, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffa792d2a0) at /kde/build/kdepimlibs/akonadi/selectionproxymodel.moc:76
#10 0x00007fb3d8c0a5fa in QMetaObject::activate (sender=0x14708190, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffa792d2a0) at kernel/qobject.cpp:3278
#11 0x00007fb3d98966b2 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/kdelibs-4.7.40.git.1310563291/build/kdeui/moc_kselectionproxymodel.cpp:147
#12 0x00007fb3d989f8b3 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x14709d10, range=...) at /usr/src/debug/kdelibs-4.7.40.git.1310563291/kdeui/itemviews/kselectionproxymodel.cpp:1691
#13 0x00007fb3d989fc88 in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x14709d10, selection=<optimized out>) at /usr/src/debug/kdelibs-4.7.40.git.1310563291/kdeui/itemviews/kselectionproxymodel.cpp:1610
#14 0x00007fb3d98a17bb in KSelectionProxyModelPrivate::selectionChanged (this=0x14709d10, _selected=<optimized out>, _deselected=<optimized out>) at /usr/src/debug/kdelibs-4.7.40.git.1310563291/kdeui/itemviews/kselectionproxymodel.cpp:1860
#15 0x00007fb3d98a309e in KSelectionProxyModel::qt_metacall (this=0x14708190, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffa792daa0) at /usr/src/debug/kdelibs-4.7.40.git.1310563291/build/kdeui/moc_kselectionproxymodel.cpp:134
#16 0x00007fb3d416dc7b in Akonadi::SelectionProxyModel::qt_metacall (this=0x14708190, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0x7fffa792daa0) at /kde/build/kdepimlibs/akonadi/selectionproxymodel.moc:70
#17 0x00007fb3d8c0a5fa in QMetaObject::activate (sender=0xb69440, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffa792daa0) at kernel/qobject.cpp:3278
#18 0x00007fb3d8524257 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#19 0x00007fb3d8529c31 in QItemSelectionModel::emitSelectionChanged (this=0xb69440, newSelection=<optimized out>, oldSelection=<optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#20 0x00007fb3d852afdf in QItemSelectionModel::select (this=0xb69440, selection=<optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#21 0x00007fb3d3e763f3 in MessageList::Pane::Private::onSelectionChanged (this=0xa282a0, selected=..., deselected=...) at /kde/src/kdepim/messagelist/pane.cpp:329
#22 0x00007fb3d3e784e6 in MessageList::Pane::qt_metacall(enum QMetaObject::Call, int, void **) (this=0xb24b40, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fffa792e050) at /kde/build/kdepim/messagelist/pane.moc:111
#23 0x00007fb3d8fbbdec in CollectionPane::qt_metacall(enum QMetaObject::Call, int, void **) (this=0xb24b40, _c=QMetaObject::InvokeMetaMethod, _id=76, _a=0x7fffa792e050) at /kde/build/kdepim/kmail/moc_collectionpane.cpp:66
#24 0x00007fb3d8c0a5fa in QMetaObject::activate (sender=0x7b4af0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffa792e050) at kernel/qobject.cpp:3278
#25 0x00007fb3d8524257 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#26 0x00007fb3d8529c31 in QItemSelectionModel::emitSelectionChanged (this=0x7b4af0, newSelection=<optimized out>, oldSelection=<optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#27 0x00007fb3d852afdf in QItemSelectionModel::select (this=0x7b4af0, selection=<optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#28 0x00007fb3d8515a45 in QTreeViewPrivate::select (this=0xa08b50, topIndex=<optimized out>, bottomIndex=<optimized out>, command=...) at itemviews/qtreeview.cpp:3652
#29 0x00007fb3d8516792 in QTreeView::setSelection (this=<optimized out>, rect=<optimized out>, command=...) at itemviews/qtreeview.cpp:2280
#30 0x00007fb3d84d1daa in QAbstractItemView::mousePressEvent (this=0x45b620, event=<optimized out>) at itemviews/qabstractitemview.cpp:1674
#31 0x00007fb3d3d29e3a in MailCommon::FolderTreeView::mousePressEvent (this=0x45b620, e=0x7fffa792f5f0) at /kde/src/kdepim/mailcommon/foldertreeview.cpp:532
#32 0x00007fb3d801e6a9 in QWidget::event (this=0x45b620, event=0x7fffa792f5f0) at kernel/qwidget.cpp:8255
#33 0x00007fb3d83bf066 in QFrame::event (this=0x45b620, e=0x7fffa792f5f0) at widgets/qframe.cpp:557
#34 0x00007fb3d84cf2bb in QAbstractItemView::viewportEvent (this=0x45b620, event=0x7fffa792f5f0) at itemviews/qabstractitemview.cpp:1628
#35 0x00007fb3d8514005 in QTreeView::viewportEvent (this=0x45b620, event=0x7fffa792f5f0) at itemviews/qtreeview.cpp:1256
#36 0x00007fb3d8bf7ad8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x849600, event=0x7fffa792f5f0) at kernel/qcoreapplication.cpp:846
#37 0x00007fb3d7fcddaf in notify_helper (e=0x7fffa792f5f0, receiver=0x849600, this=0x594ef0) at kernel/qapplication.cpp:4458
#38 QApplicationPrivate::notify_helper (this=0x594ef0, receiver=0x849600, e=0x7fffa792f5f0) at kernel/qapplication.cpp:4434
#39 0x00007fb3d7fd356b in QApplication::notify (this=<optimized out>, receiver=0x849600, e=0x7fffa792f5f0) at kernel/qapplication.cpp:4023
#40 0x00007fb3d98b39b6 in KApplication::notify (this=0x7fffa7930240, receiver=0x849600, event=0x7fffa792f5f0) at /usr/src/debug/kdelibs-4.7.40.git.1310563291/kdeui/kernel/kapplication.cpp:311
#41 0x00007fb3d8bf794c in QCoreApplication::notifyInternal (this=0x7fffa7930240, receiver=0x849600, event=0x7fffa792f5f0) at kernel/qcoreapplication.cpp:731
#42 0x00007fb3d7fcedb2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:215
#43 QApplicationPrivate::sendMouseEvent (receiver=0x849600, event=0x7fffa792f5f0, alienWidget=0x849600, nativeWidget=0x45f4d0, buttonDown=0x849600, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#44 0x00007fb3d804aa45 in QETWidget::translateMouseEvent (this=0x45f4d0, event=<optimized out>) at kernel/qapplication_x11.cpp:4461
#45 0x00007fb3d804991a in QApplication::x11ProcessEvent (this=0x7fffa7930240, event=0x7fffa792fec0) at kernel/qapplication_x11.cpp:3587
#46 0x00007fb3d80717da in QEventDispatcherX11::processEvents (this=0x40b8d0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#47 0x00007fb3d8bf6b52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007fb3d8bf6d4f in QEventLoop::exec (this=0x7fffa7930110, flags=...) at kernel/qeventloop.cpp:201
#49 0x00007fb3d8bfaf47 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#50 0x0000000000403416 in main (argc=3, argv=0x7fffa79303d8) at /kde/src/kdepim/kmail/main.cpp:145
Comment 3 David Faure 2012-01-18 20:17:34 UTC
*** Bug 281271 has been marked as a duplicate of this bug. ***
Comment 4 David Faure 2012-01-18 20:19:21 UTC
Might be fixed by this patch (for a similar crash in akonadiconsole) which I just sent Stephen Kelly: http://www.davidfaure.fr/kde/kselectionproxymodel.cpp.diff
Comment 5 Christophe Marin 2012-02-02 15:06:24 UTC
Still valid in kdelibs/4.8 + master but the bt is different:

ASSERT: "endRootIdx != -1" in file /kde/src/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp, line 1676

#8  0x00007f2c8362f02a in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at global/qglobal.cpp:1999
#9  0x00007f2c8570f0ff in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x1745c40, range=...) at /kde/src/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1679
#10 0x00007f2c8570ebef in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x1745c40, selection=...) at /kde/src/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1629
#11 0x00007f2c85710284 in KSelectionProxyModelPrivate::selectionChanged (this=0x1745c40, _selected=..., _deselected=...)
    at /kde/src/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1879
#12 0x00007f2c85714402 in KSelectionProxyModel::qt_static_metacall (_o=0x15c0b10, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fff4499a880)
    at /kde/build/kdelibs/kdeui/moc_kselectionproxymodel.cpp:111
#13 0x00007f2c8374a751 in QMetaObject::activate (sender=0xc5c1e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff4499a880) at kernel/qobject.cpp:3556
#14 0x00007f2c841e4997 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#15 0x00007f2c841ea3d1 in QItemSelectionModel::emitSelectionChanged (this=0xc5c1e0, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1600
#16 0x00007f2c841eb781 in QItemSelectionModel::select (this=0xc5c1e0, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1110
#17 0x00007f2c7e6e92ad in MessageList::Pane::Private::onSelectionChanged (this=0xce1150, selected=..., deselected=...) at /kde/src/pim/kdepim/messagelist/pane.cpp:394
#18 0x00007f2c7e6ebef6 in MessageList::Pane::qt_static_metacall (_o=0xcfa4b0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff4499aea0)
    at /kde/build/pim/kdepim/messagelist/pane.moc:95
#19 0x00007f2c8374a751 in QMetaObject::activate (sender=0xd49ff0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff4499aea0) at kernel/qobject.cpp:3556
#20 0x00007f2c841e4997 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#21 0x00007f2c841ea3d1 in QItemSelectionModel::emitSelectionChanged (this=0xd49ff0, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1600
#22 0x00007f2c841eb781 in QItemSelectionModel::select (this=0xd49ff0, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1110
#23 0x00007f2c841d6015 in QTreeViewPrivate::select (this=0xbbede0, topIndex=..., bottomIndex=..., command=...) at itemviews/qtreeview.cpp:3703
#24 0x00007f2c841d6d52 in QTreeView::setSelection (this=<optimized out>, rect=..., command=...) at itemviews/qtreeview.cpp:2317
#25 0x00007f2c8419332a in QAbstractItemView::mousePressEvent (this=0x6ab820, event=<optimized out>) at itemviews/qabstractitemview.cpp:1690
#26 0x00007f2c7e2857ce in MailCommon::FolderTreeView::mousePressEvent (this=0x6ab820, e=0x7fff4499c470) at /kde/src/pim/kdepim/mailcommon/foldertreeview.cpp:555
#27 0x00007f2c83cbc879 in QWidget::event (this=0x6ab820, event=0x7fff4499c470) at kernel/qwidget.cpp:8357
#28 0x00007f2c840785e6 in QFrame::event (this=0x6ab820, e=0x7fff4499c470) at widgets/qframe.cpp:557
#29 0x00007f2c8418cabb in QAbstractItemView::viewportEvent (this=0x6ab820, event=0x7fff4499c470) at itemviews/qabstractitemview.cpp:1644
#30 0x00007f2c841d45d5 in QTreeView::viewportEvent (this=0x6ab820, event=0x7fff4499c470) at itemviews/qtreeview.cpp:1257
#31 0x00007f2c83736a18 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x6b7490, event=0x7fff4499c470) at kernel/qcoreapplication.cpp:986
#32 0x00007f2c83c6be4f in notify_helper (e=0x7fff4499c470, receiver=0x6b7490, this=0x77d070) at kernel/qapplication.cpp:4546
#33 QApplicationPrivate::notify_helper (this=0x77d070, receiver=0x6b7490, e=0x7fff4499c470) at kernel/qapplication.cpp:4522
#34 0x00007f2c83c715d3 in QApplication::notify (this=<optimized out>, receiver=0x6b7490, e=0x7fff4499c470) at kernel/qapplication.cpp:4093
#35 0x00007f2c857284e3 in KApplication::notify (this=0x7fff4499d100, receiver=0x6b7490, event=0x7fff4499c470) at /kde/src/kdelibs/kdeui/kernel/kapplication.cpp:307
#36 0x00007f2c8373688c in QCoreApplication::notifyInternal (this=0x7fff4499d100, receiver=0x6b7490, event=0x7fff4499c470) at kernel/qcoreapplication.cpp:876
#37 0x00007f2c83c6ce52 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#38 QApplicationPrivate::sendMouseEvent (receiver=0x6b7490, event=0x7fff4499c470, alienWidget=0x6b7490, nativeWidget=0x6c7ae0, buttonDown=0x6b7490, lastMouseReceiver=..., spontaneous=
    true) at kernel/qapplication.cpp:3161
#39 0x00007f2c83ce8c05 in QETWidget::translateMouseEvent (this=0x6c7ae0, event=<optimized out>) at kernel/qapplication_x11.cpp:4505
---Type <return> to continue, or q <return> to quit---
#40 0x00007f2c83ce7aca in QApplication::x11ProcessEvent (this=0x7fff4499d100, event=0x7fff4499cd40) at kernel/qapplication_x11.cpp:3631
#41 0x00007f2c83d1004a in QEventDispatcherX11::processEvents (this=0x60da70, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#42 0x00007f2c83735672 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f2c837358c7 in QEventLoop::exec (this=0x7fff4499cf90, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f2c8373a425 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#45 0x0000000000403855 in main (argc=1, argv=0x7fff4499d278) at /kde/src/pim/kdepim/kmail/main.cpp:145
Comment 6 Christopher Yeleighton 2012-02-14 16:21:24 UTC
Created attachment 68794 [details]
New crash information added by DrKonqi

kontact (4.7.2) on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed:

I selected some folders and deselected some.

-- Backtrace (Reduced):
#6  Akonadi::EntityTreeModel::setData (this=<optimized out>, index=..., value=..., role=53) at /usr/src/debug/kdepimlibs-4.7.2/akonadi/entitytreemodel.cpp:724
#7  0x00007f2036e015b4 in rootIndexAboutToBeRemoved (removedRootIndex=..., this=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.2/akonadi/selectionproxymodel.cpp:59
#8  Akonadi::SelectionProxyModel::qt_metacall (this=0x39d0f70, _c=<optimized out>, _id=1, _a=0x7fffd94ebef0) at /usr/src/debug/kdepimlibs-4.7.2/build/akonadi/selectionproxymodel.moc:76
[...]
#10 0x00007f203be49b32 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/kdelibs-4.7.2/build/kdeui/moc_kselectionproxymodel.cpp:147
#11 0x00007f203be52d33 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x3a3a530, range=...) at /usr/src/debug/kdelibs-4.7.2/kdeui/itemviews/kselectionproxymodel.cpp:1691
Comment 7 Simon Reed 2012-04-07 12:50:03 UTC
Created attachment 70209 [details]
New crash information added by DrKonqi

kmail (4.7.3) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4

- What I was doing when the application crashed:

Trying to move to folders from one account to another.

-- Backtrace (Reduced):
#6  0x00007f47087f5df7 in Akonadi::EntityTreeModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/libakonadi-kde.so.4
#7  0x00007f4708860144 in Akonadi::SelectionProxyModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
[...]
#9  0x00007f470e1fc162 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=<optimized out>, _t1=<optimized out>) at ./moc_kselectionproxymodel.cpp:147
#10 0x00007f470e205363 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x2b6ed80, range=...) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1691
#11 0x00007f470e205738 in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x2b6ed80, selection=<optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1610
Comment 8 Allen Winter 2012-12-01 00:25:57 UTC
*** Bug 290660 has been marked as a duplicate of this bug. ***
Comment 9 Denis Kurz 2016-09-24 18:04:48 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 10 Denis Kurz 2017-01-07 22:42:59 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.