Summary: | kmail crashed when I made a search for a text in my emails. | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Hussam Al-Tayeb <ht990332> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ht990332, winter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8.0 | |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Hussam Al-Tayeb
2011-10-29 15:15:22 UTC
Always reproducible with kdepimlibs/kdepim-runtime/kdepim from 4.7 branch. It only crashes if the search returns results. Before it crashes, kmails says: Error during adding a record to table "CollectionPimItemRelation" "columns Collection_id, PimItem_id are not unique Unable to fetch row" in a terminal. this time, it crashed after second search. Terminal says: $ kmail2(12505): Error while fetching items. 103 "Unknown error. (Cannot list root collection.)" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('gtk'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'gtk'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('gtk'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'gtk'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('gtk'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'gtk'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('gtk'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'gtk'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('gtk'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'gtk'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('google'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'google'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('gtk'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'gtk'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" ASSERT: "item.isValid()" in file /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/itemmodel.cpp, line 387 *** KMail got signal 6 (Exiting) *** Dead letters dumped. KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = kmail path = /usr/bin pid = 12505 KCrash: Arguments: /usr/bin/kmail --nocrashhandler KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/home/hussam/.kde4/socket-LARS/kdeinit4__0 This could be a akonadi or nepomuk or something bug. now plasma-desktop crashes when kmail does. Application: Plasma Desktop Shell (plasma-desktop), signal: Aborted [Current thread is 1 (Thread 0xafa5cb30 (LWP 8702))] Thread 2 (Thread 0xa797cb70 (LWP 8703)): #0 0xb7897424 in __kernel_vsyscall () #1 0xb77081ae in poll () from /lib/libc.so.6 #2 0xb25cf10b in g_poll () from /usr/lib/libglib-2.0.so.0 #3 0xb25c0656 in ?? () from /usr/lib/libglib-2.0.so.0 #4 0xb25c09ea in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #5 0xb6399b97 in QEventDispatcherGlib::processEvents (this=0xa3e04d8, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #6 0xb636185d in QEventLoop::processEvents (this=0xa797c1c0, flags=...) at kernel/qeventloop.cpp:149 #7 0xb6361af9 in QEventLoop::exec (this=0xa797c1c0, flags=...) at kernel/qeventloop.cpp:204 #8 0xb623dc6d in QThread::exec (this=0xa3e11f8) at thread/qthread.cpp:501 #9 0xb633c663 in QInotifyFileSystemWatcherEngine::run (this=0xa3e11f8) at io/qfilesystemwatcher_inotify.cpp:248 #10 0xb6240fba in QThreadPrivate::start (arg=0xa3e11f8) at thread/qthread_unix.cpp:298 #11 0xb21b5a9c in ?? () from /usr/lib/libGL.so.1 #12 0x00000000 in ?? () Thread 1 (Thread 0xafa5cb30 (LWP 8702)): [KCrash Handler] #7 0xb7897424 in __kernel_vsyscall () #8 0xb766db9f in raise () from /lib/libc.so.6 #9 0xb766f525 in abort () from /lib/libc.so.6 #10 0xb623551a in qt_message_output (msgType=QtFatalMsg, buf=0xb443198 "ASSERT: \"parentCollection != m_rootCollection\" in file /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel_p.cpp, line 639") at global/qglobal.cpp:2255 #11 0xb623571b in qt_message (msgType=QtFatalMsg, msg=0xb63d93a8 "ASSERT: \"%s\" in file %s, line %d", ap=0xbfd2c724 "D|\305\247\264z\305\247\177\002") at global/qglobal.cpp:2301 #12 0xb6235838 in qFatal (msg=0xb63d93a8 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2484 #13 0xb62358c5 in qt_assert (assertion=0xa7c57c44 "parentCollection != m_rootCollection", file=0xa7c57ab4 "/home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel_p.cpp", line=639) at global/qglobal.cpp:1999 #14 0xa7b90f66 in Akonadi::EntityTreeModelPrivate::retrieveAncestors (this=0xa503a10, collection=...) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel_p.cpp:639 #15 0xa7b9484f in Akonadi::EntityTreeModelPrivate::monitoredCollectionAdded (this=0xa503a10, collection=..., parent=...) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel_p.cpp:734 #16 0xa7b8604c in Akonadi::EntityTreeModel::qt_static_metacall (_o=0xa278c28, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfd2c974) at /home/hussam/packages/kdepimlibs/src/build/akonadi/entitytreemodel.moc:138 #17 0xb637b449 in QMetaObject::activate (sender=0xa79b640, m=0xa7d01518, local_signal_index=6, argv=0xbfd2c974) at kernel/qobject.cpp:3546 #18 0xa7bd18ed in Akonadi::Monitor::collectionAdded (this=0xa79b640, _t1=..., _t2=...) at /home/hussam/packages/kdepimlibs/src/build/akonadi/monitor.moc:225 #19 0xa7bd531f in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x9fb76e0, msg=..., col=..., par=..., dest=...) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/monitor_p.cpp:590 #20 0xa7bd7665 in Akonadi::MonitorPrivate::emitNotification (this=0x9fb76e0, msg=...) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/monitor_p.cpp:281 #21 0xa7b44c17 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x9fb76e0, msg=...) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/changerecorder_p.h:60 #22 0xa7bd4cdf in Akonadi::MonitorPrivate::flushPipeline (this=0x9fb76e0) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/monitor_p.cpp:425 #23 0xa7bd4e00 in Akonadi::MonitorPrivate::dataAvailable (this=0x9fb76e0) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/monitor_p.cpp:434 #24 0xa7bd203d in Akonadi::Monitor::qt_static_metacall (_o=0xa79b640, _c=QMetaObject::InvokeMetaMethod, _id=23, _a=0xbfd2ccb0) at /home/hussam/packages/kdepimlibs/src/build/akonadi/monitor.moc:133 #25 0xb637b449 in QMetaObject::activate (sender=0xa3f22d0, m=0xa7d0015c, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3546 #26 0xa7b7f355 in Akonadi::EntityCacheBase::dataAvailable (this=0xa3f22d0) at /home/hussam/packages/kdepimlibs/src/build/akonadi/entitycache_p.moc:102 #27 0xa7bdaf89 in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::fetchResult (this=0xa3f22d0, job=0xb4aff10) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitycache_p.h:190 #28 0xa7b7f405 in Akonadi::EntityCacheBase::qt_static_metacall (_o=0xa3f22d0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfd2ce38) at /home/hussam/packages/kdepimlibs/src/build/akonadi/entitycache_p.moc:54 #29 0xb637b449 in QMetaObject::activate (sender=0xb4aff10, m=0xb68334cc, local_signal_index=3, argv=0xbfd2ce38) at kernel/qobject.cpp:3546 #30 0xb666d665 in KJob::result (this=0xb4aff10, _t1=0xb4aff10) at /home/hussam/packages/kdelibs/src/build/kdecore/kjob.moc:208 #31 0xb666d6b7 in KJob::emitResult (this=0xb4aff10) at /home/hussam/packages/kdelibs/src/kdelibs/kdecore/jobs/kjob.cpp:312 #32 0xa7bcc403 in Akonadi::JobPrivate::delayedEmitResult (this=0xb628498) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/job.cpp:144 #33 0xb6376801 in QMetaCallEvent::placeMetaCall (this=0xa416900, object=0xb4aff10) at kernel/qobject.cpp:524 #34 0xb6380c4b in QObject::event (this=0xb4aff10, e=0xa416900) at kernel/qobject.cpp:1194 #35 0xb5755a9c in notify_helper (e=0xa416900, receiver=0xb4aff10, this=0x9e491e8) at kernel/qapplication.cpp:4518 #36 QApplicationPrivate::notify_helper (this=0x9e491e8, receiver=0xb4aff10, e=0xa416900) at kernel/qapplication.cpp:4490 #37 0xb575bb1d in QApplication::notify (this=0x9e491e8, receiver=0xb4aff10, e=0xa416900) at kernel/qapplication.cpp:4379 #38 0xb6a34ce8 in KApplication::notify (this=0x9e4ce98, receiver=0xb4aff10, event=0xa416900) at /home/hussam/packages/kdelibs/src/kdelibs/kdeui/kernel/kapplication.cpp:311 #39 0xb63634fe in QCoreApplication::notifyInternal (this=0x9e4ce98, receiver=0xb4aff10, event=0xa416900) at kernel/qcoreapplication.cpp:876 #40 0xb63672c0 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #41 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9d84ca0) at kernel/qcoreapplication.cpp:1500 #42 0xb636768c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393 #43 0xb63996a4 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236 #44 postEventSourceDispatch (s=0x9e53b80) at kernel/qeventdispatcher_glib.cpp:279 #45 0xb25c001f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #46 0xb25c0750 in ?? () from /usr/lib/libglib-2.0.so.0 #47 0xb25c09ea in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #48 0xb6399b37 in QEventDispatcherGlib::processEvents (this=0x9d848a0, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #49 0xb5818a6a in QGuiEventDispatcherGlib::processEvents (this=0x9d848a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #50 0xb636185d in QEventLoop::processEvents (this=0xbfd2d5e4, flags=...) at kernel/qeventloop.cpp:149 #51 0xb6361af9 in QEventLoop::exec (this=0xbfd2d5e4, flags=...) at kernel/qeventloop.cpp:204 #52 0xb636773a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148 #53 0xb5753854 in QApplication::exec () at kernel/qapplication.cpp:3779 #54 0xb780b311 in kdemain (argc=1, argv=0xbfd2d7f4) at /home/hussam/packages/kdebase-workspace/src/kde-workspace/plasma/desktop/shell/main.cpp:120 #55 0x0804852b in main (argc=1, argv=0xbfd2d7f4) at /home/hussam/packages/kdebase-workspace/src/build/plasma/desktop/shell/plasma-desktop_dummy.cpp:3 Using mysql backend for akonadi, I now get AgentManager::removeSearch 49 AgentManager::addSearch "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('feedback'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'feedback'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "SPARQL" 49 Known subscriber "kmail2" subscribes again void Nepomuk::Query::QueryServiceClient::close() AgentManager::removeSearch 49 AgentManager::addSearch "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('feedback'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'feedback'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "SPARQL" 49 Database "akonadi" opened using driver "QMYSQL" void Akonadi::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2" now serving: () void Akonadi::NotificationSource::unsubscribe() "kmail2" X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x4000d5 when kmail crashes upon a search. ASSERT: "parentCollection != m_rootCollection" in file /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel_p.cpp, line 640 this too. Created attachment 66631 [details]
New crash information added by DrKonqi
kmail (4.7.3) on KDE Platform 4.7.4 (4.7.4) using Qt 4.8.0
- What I was doing when the application crashed:
crash still happens with kde 4.7.4 with latest kdepim from 4.7 branch
PS. It happens less often when akonadi is using sqlite backend than mysql.
-- Backtrace (Reduced):
#13 0xb5ea58c5 in qt_assert (assertion=0xb519d53d "item.isValid()", file=0xb51a33c0 "/home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/itemmodel.cpp", line=387) at global/qglobal.cpp:1999
#14 0xb510094a in Akonadi::ItemModel::itemForIndex (this=0x902e2e8, index=...) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/itemmodel.cpp:387
#15 0xb6e3df17 in KMSearchMessageModel::data (this=0x902e2e8, index=..., role=0) at /home/hussam/packages/kdepim/src/kdepim/kmail/kmsearchmessagemodel.cpp:83
#16 0xb6949aa8 in QSortFilterProxyModel::lessThan (this=0x0, left=..., right=...) at itemviews/qsortfilterproxymodel.cpp:2402
#17 0xb6e3e98c in KMSearchFilterProxyModel::lessThan (this=0x0, left=..., right=...) at /home/hussam/packages/kdepim/src/kdepim/kmail/kmsearchfilterproxymodel.cpp:56
I committed fixes for all the crashes mentioned in this report. Those fixes will be in the 4.8.0 release There may be some nepomuk related issues in here though, but I'm not sure. If you do have nepomuk issues, please file a different report. I will close this one now since it is mainly about kmail2 crashes. |