Bug 238306 - ASSERT: "item.isValid()" in file kdepimlibs/akonadi/itemmodel.cpp, line 387
Summary: ASSERT: "item.isValid()" in file kdepimlibs/akonadi/itemmodel.cpp, line 387
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 1.99.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: akonadi-ports-regression
Depends on:
Blocks:
 
Reported: 2010-05-20 16:48 UTC by Milian Wolff
Modified: 2011-04-08 00:26 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 Milian Wolff 2010-05-20 16:48:34 UTC
Application: kmail (1.99.0)
KDE Platform Version: 4.4.80 (KDE 4.4.80 (KDE 4.5 Beta1)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-21-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
I created a new search and started it, resulting in this assert. Might have been that a group/thread job was still running for the active folder.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f8573629750 (LWP 970))]

Thread 2 (Thread 0x7f8557057910 (LWP 974)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f8566692816 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f8566692859 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f856d5dba04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f856cb9a80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8573629750 (LWP 970)):
[KCrash Handler]
#6  0x00007f856caee4b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f856caf1f50 in *__GI_abort () at abort.c:92
#8  0x00007f856d862864 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2250
#9  0x00007f856d862a42 in qt_message (msgType=QtFatalMsg, msg=0x7f856d9bff08 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffbedae8b0) at global/qglobal.cpp:2296
#10 0x00007f856d862bf5 in qFatal (msg=0x3ca <Address 0x3ca out of bounds>) at global/qglobal.cpp:2479
#11 0x00007f856fc447be in Akonadi::ItemModel::itemForIndex (this=0x301c1b0, index=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/itemmodel.cpp:387
#12 0x00007f856a67658f in Akonadi::MessageModel::data (this=0x301c1b0, index=..., role=13) at /home/speedy/projects/kde4/kdepimlibs/akonadi/kmime/messagemodel.cpp:102
#13 0x00007f856ee8d8ff in QModelIndex::data (this=0x2ec2ff0, option=..., index=...) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:398
#14 QStyledItemDelegate::sizeHint (this=0x2ec2ff0, option=..., index=...) at itemviews/qstyleditemdelegate.cpp:440
#15 0x00007f856ee1cb95 in QTreeView::indexRowSizeHint (this=<value optimized out>, index=<value optimized out>) at itemviews/qtreeview.cpp:2860
#16 0x00007f856ee23c74 in QTreeView::rowsInserted (this=<value optimized out>, parent=<value optimized out>, start=<value optimized out>, end=<value optimized out>) at itemviews/qtreeview.cpp:2483
#17 0x00007f856ede09bd in QAbstractItemView::qt_metacall (this=0x2ed57f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffbedaf290)
    at .moc/release-shared/moc_qabstractitemview.cpp:235
#18 0x00007f856ee29ca5 in QTreeView::qt_metacall (this=0x3ca, _c=970, _id=6, _a=0xffffffffffffffff) at .moc/release-shared/moc_qtreeview.cpp:119
#19 0x00007f856fc254e1 in Akonadi::EntityTreeView::qt_metacall (this=0x2ed57f0, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0x7fffbedaf290)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/entitytreeview.moc:88
#20 0x00007f856d971c0f in QMetaObject::activate (sender=0x301c1b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#21 0x00007f856d9bd074 in QAbstractItemModel::rowsInserted (this=0x3ca, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#22 0x00007f856d958d57 in QAbstractItemModel::endInsertRows (this=0x301c1b0) at kernel/qabstractitemmodel.cpp:2410
#23 0x00007f856fc43865 in Akonadi::ItemModel::Private::itemsAdded (this=0x301bec0, list=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/itemmodel.cpp:224
#24 0x00007f856fc438d7 in Akonadi::ItemModel::Private::itemAdded (this=0x301bec0, item=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/itemmodel.cpp:231
#25 0x00007f856fc44fe9 in Akonadi::ItemModel::qt_metacall (this=0x301c1b0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffbedaf570)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/itemmodel.moc:96
#26 0x00007f856a6774e5 in Akonadi::MessageModel::qt_metacall (this=0x301c1b0, _c=QMetaObject::InvokeMetaMethod, _id=30, _a=0x7fffbedaf570)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/kmime/messagemodel.moc:66
#27 0x00007f856d971c0f in QMetaObject::activate (sender=0x301bd40, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#28 0x00007f856fc6c75f in Akonadi::Monitor::itemLinked (this=0x301bd40, _t1=..., _t2=...) at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/monitor.moc:188
#29 0x00007f856fc6ff62 in Akonadi::MonitorPrivate::emitItemNotification (this=0x301cc50, msg=..., item=..., collection=..., collectionDest=...)
    at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.cpp:367
#30 0x00007f856fc6edaa in Akonadi::MonitorPrivate::emitNotification (this=0x301cc50, msg=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.cpp:211
#31 0x00007f856fc6eeb4 in Akonadi::MonitorPrivate::dataAvailable (this=0x301cc50) at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.cpp:223
#32 0x00007f856fc6c559 in Akonadi::Monitor::qt_metacall (this=0x301bd40, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0x7fffbedaf8b0)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/monitor.moc:148
#33 0x00007f856d971c0f in QMetaObject::activate (sender=0x301ccd8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#34 0x00007f856fc0ac11 in Akonadi::EntityCacheBase::dataAvailable (this=0x301ccd8) at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/entitycache_p.moc:88
#35 0x00007f856fbd33f9 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x301ccd8, job=0x2d08100)
    at /home/speedy/projects/kde4/kdepimlibs/akonadi/entitycache_p.h:189
#36 0x00007f856fc0abd5 in Akonadi::EntityCacheBase::qt_metacall (this=0x301ccd8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffbedafab0)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/entitycache_p.moc:77
#37 0x00007f856d971c0f in QMetaObject::activate (sender=0x2d08100, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#38 0x00007f8572953ddb in KJob::result (this=0x2d08100, _t1=0x2d08100) at /home/speedy/projects/.build/kde4/kdelibs/kdecore/kjob.moc:194
#39 0x00007f8572953249 in KJob::emitResult (this=0x2d08100) at /home/speedy/projects/kde4/kdelibs/kdecore/jobs/kjob.cpp:312
#40 0x00007f856fc40c9f in Akonadi::ItemFetchJobPrivate::startFetchJob (this=0x3052740) at /home/speedy/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:94
#41 0x00007f856fc4154f in Akonadi::ItemFetchJob::doStart (this=0x2d08100) at /home/speedy/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:157
#42 0x00007f856fc5fa15 in Akonadi::JobPrivate::startQueued (this=0x3052740) at /home/speedy/projects/kde4/kdepimlibs/akonadi/job.cpp:152
#43 0x00007f856fc96422 in Akonadi::SessionPrivate::startJob (this=0x24d0500, job=0x2d08100) at /home/speedy/projects/kde4/kdepimlibs/akonadi/session.cpp:257
#44 0x00007f856fc96353 in Akonadi::SessionPrivate::doStartNext (this=0x24d0500) at /home/speedy/projects/kde4/kdepimlibs/akonadi/session.cpp:246
#45 0x00007f856fc9768e in Akonadi::Session::qt_metacall (this=0x26aa710, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffbedafdd0)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/session.moc:93
#46 0x00007f856d971c0f in QMetaObject::activate (sender=0x2e727a0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#47 0x00007f856d9793ff in QSingleShotTimer::timerEvent (this=0x2e727a0) at kernel/qtimer.cpp:308
#48 0x00007f856d96e863 in QObject::event (this=0x2e727a0, e=0x7fffbedb0560) at kernel/qobject.cpp:1212
#49 0x00007f856e8ba12c in QApplicationPrivate::notify_helper (this=0x24b0680, receiver=0x2e727a0, e=0x7fffbedb0560) at kernel/qapplication.cpp:4300
#50 0x00007f856e8c071b in QApplication::notify (this=0x7fffbedb0950, receiver=0x2e727a0, e=0x7fffbedb0560) at kernel/qapplication.cpp:4183
#51 0x00007f8572fa28ab in KApplication::notify (this=0x7fffbedb0950, receiver=0x2e727a0, event=0x7fffbedb0560) at /home/speedy/projects/kde4/kdelibs/kdeui/kernel/kapplication.cpp:302
#52 0x00007f856d95ee0c in QCoreApplication::notifyInternal (this=0x7fffbedb0950, receiver=0x2e727a0, event=0x7fffbedb0560) at kernel/qcoreapplication.cpp:704
#53 0x00007f856d98ba62 in QCoreApplication::sendEvent (this=0x24b3eb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#54 QTimerInfoList::activateTimers (this=0x24b3eb0) at kernel/qeventdispatcher_unix.cpp:603
#55 0x00007f856d988668 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#56 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#57 0x00007f8563936bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#58 0x00007f856393a598 in ?? () from /lib/libglib-2.0.so.0
#59 0x00007f856393a6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#60 0x00007f856d988333 in QEventDispatcherGlib::processEvents (this=0x2477970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#61 0x00007f856e969f0e in QGuiEventDispatcherGlib::processEvents (this=0x3ca, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#62 0x00007f856d95d732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#63 0x00007f856d95db0c in QEventLoop::exec (this=0x7fffbedb0800, flags=) at kernel/qeventloop.cpp:201
#64 0x00007f856d96184b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#65 0x0000000000403913 in main (argc=1, argv=0x7fffbedb0ae8) at /home/speedy/projects/kde4/kdepim/kmail/main.cpp:147
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Milian Wolff 2010-05-20 17:09:13 UTC
ah I can reproduce it by starting a new search hm
Comment 2 Thomas McGuire 2010-05-20 18:40:57 UTC
Btw, ItemModel is deprecated and should eventually be ported to EntityTreeModel.
Bugs/Crashes in ItemModel are unlikely to get looked after.

CC'ing Till, since he wrote the search stuff.
Comment 3 Laurent Montel 2010-12-14 18:02:38 UTC
Still valid in current trunk ?
Comment 4 George Metaxas 2011-01-01 13:03:39 UTC
I can't reproduce it either. I think it must have been fixed.
Comment 5 Sergio Martins 2011-04-08 00:26:57 UTC
(In reply to comment #3)
> Still valid in current trunk ?

(In reply to comment #4)
> I can't reproduce it either. I think it must have been fixed.

I can't reproduce this either, closing then.