Bug 258040 - Seemingly Random plasma-desktop crash [qFatal, Akonadi::EntityTreeModelPrivate::monitoredItemRemoved, Akonadi::EntityTreeModel::qt_metacall, Akonadi::Monitor::itemRemoved]
Summary: Seemingly Random plasma-desktop crash [qFatal, Akonadi::EntityTreeModelPrivat...
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 286950 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-27 03:40 UTC by Justin
Modified: 2011-12-06 23:24 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.40 KB, text/plain)
2010-11-29 11:34 UTC, akibukis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2010-11-27 03:40:39 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.5.81 (4.6 >=20101125) (Compiled from sources)
Qt Version: 4.7.1
Operating System: Linux 2.6.35-sabayon x86_64
Distribution: "Gentoo Base System release 2.0.1-r1"

-- Information about the crash:
- What I was doing when the application crashed:

it crashes at random intervals, doesn't appear to be related to anything I do.  Most of the time I'm browsing the web or watching a video, but I'm almost always doing one of the two.  I've tried starting kde with a fresh session, no programs open except for chrome, konsole and mplayer and it still happens.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Aborted
[Current thread is 1 (Thread 0x7fe873a2b7a0 (LWP 12898))]

Thread 2 (Thread 0x7fe850e34710 (LWP 12901)):
#0  0x00007fe87333bd03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe86753c03d in g_main_context_poll (context=0xe93430, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3093
#2  g_main_context_iterate (context=0xe93430, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2775
#3  0x00007fe86753c482 in g_main_context_iteration (context=0xe93430, may_block=1) at gmain.c:2843
#4  0x00007fe8705ed0ee in QEventDispatcherGlib::processEvents (this=0xe8eb40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007fe8705bc432 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007fe8705bc7fd in QEventLoop::exec (this=0x7fe850e33ce0, flags=) at kernel/qeventloop.cpp:201
#7  0x00007fe8704bb0f8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#8  0x00007fe870599cd5 in QInotifyFileSystemWatcherEngine::run (this=0xe98af0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fe8704bdc27 in QThreadPrivate::start (arg=0xe98af0) at thread/qthread_unix.cpp:285
#10 0x00007fe86b469a33 in ?? () from //usr/lib64/opengl/nvidia/lib/libGL.so.1
#11 0x00007fe870229bfa in start_thread (arg=<value optimized out>) at pthread_create.c:301
#12 0x00007fe873344a9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fe873a2b7a0 (LWP 12898)):
[KCrash Handler]
#6  0x00007fe8732a5445 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fe8732a6860 in abort () at abort.c:92
#8  0x00007fe8704b3fa4 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2282
#9  0x00007fe8704b413e in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fe87062c0b0 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff844a6f60) at global/qglobal.cpp:2328
#10 0x00007fe8704b42f5 in qFatal (msg=0x3262 <Address 0x3262 out of bounds>) at global/qglobal.cpp:2511
#11 0x00007fe84f462852 in Akonadi::EntityTreeModelPrivate::monitoredItemRemoved (this=0x117af30, item=...) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/entitytreemodel_p.cpp:910
#12 0x00007fe84f459abc in Akonadi::EntityTreeModel::qt_metacall (this=0x117b380, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff844a7280) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/entitytreemodel.moc:155
#13 0x00007fe8705d7f6a in QMetaObject::activate (sender=0x1196a20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3272
#14 0x00007fe84f4a0005 in Akonadi::Monitor::itemRemoved (this=0x3262, _t1=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/monitor.moc:190
#15 0x00007fe84f4a22e1 in Akonadi::MonitorPrivate::emitItemNotification (this=<value optimized out>, msg=..., item=..., collection=<value optimized out>, collectionDest=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/monitor_p.cpp:428
#16 0x00007fe84f4a270e in Akonadi::MonitorPrivate::emitNotification (this=0x1177130, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/monitor_p.cpp:263
#17 0x00007fe84f4a2eff in Akonadi::MonitorPrivate::dispatchNotifications (this=0x1177130) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/monitor_p.cpp:208
#18 0x00007fe84f4a355a in Akonadi::MonitorPrivate::slotNotify (this=0x1177130, msgs=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/monitor_p.cpp:366
#19 0x00007fe84f425299 in Akonadi::ChangeRecorderPrivate::slotNotify (this=0x1177130, msgs=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/changerecorder_p.h:51
#20 0x00007fe84f4a03ea in Akonadi::Monitor::qt_metacall (this=0x1196a20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff844a7780) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/monitor.moc:155
#21 0x00007fe84f422270 in Akonadi::ChangeRecorder::qt_metacall (this=0x3262, _c=12898, _id=6, _a=0xffffffffffffffff) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/changerecorder.moc:72
#22 0x00007fe8705d7f6a in QMetaObject::activate (sender=0x1194aa0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3272
#23 0x00007fe84f4fdf82 in OrgFreedesktopAkonadiNotificationSourceInterface::notify (this=0x3262, _t1=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/notificationsourceinterface.moc:91
#24 0x00007fe84f4fdfd2 in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x1194aa0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff844a7850) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/notificationsourceinterface.moc:77
#25 0x00007fe87092aa89 in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=<value optimized out>, slotIdx=<value optimized out>) at qdbusintegrator.cpp:930
#26 0x00007fe870934cdf in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from /usr/lib64/qt4/libQtDBus.so.4
#27 0x00007fe8705d060e in QObject::event (this=0x1194aa0, e=0x3262) at kernel/qobject.cpp:1211
#28 0x00007fe86f66b4bc in QApplicationPrivate::notify_helper (this=0x6978d0, receiver=0x1194aa0, e=0x1a26a40) at kernel/qapplication.cpp:4454
#29 0x00007fe86f6731a7 in QApplication::notify (this=0x66b910, receiver=0x1194aa0, e=0x1a26a40) at kernel/qapplication.cpp:4333
#30 0x00007fe8712c7e10 in KApplication::notify (this=0x66b910, receiver=0x1194aa0, event=0x1a26a40) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:311
#31 0x00007fe8705bd82b in QCoreApplication::notifyInternal (this=0x66b910, receiver=0x1194aa0, event=0x1a26a40) at kernel/qcoreapplication.cpp:732
#32 0x00007fe8705bedab in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x60bb40) at kernel/qcoreapplication.h:215
#33 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x60bb40) at kernel/qcoreapplication.cpp:1373
#34 0x00007fe8705ed4d3 in sendPostedEvents (s=0x69a120) at kernel/qcoreapplication.h:220
#35 postEventSourceDispatch (s=0x69a120) at kernel/qeventdispatcher_glib.cpp:277
#36 0x00007fe867538459 in g_main_dispatch (context=0x69a040) at gmain.c:2149
#37 g_main_context_dispatch (context=0x69a040) at gmain.c:2702
#38 0x00007fe86753c2e0 in g_main_context_iterate (context=0x69a040, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2780
#39 0x00007fe86753c482 in g_main_context_iteration (context=0x69a040, may_block=1) at gmain.c:2843
#40 0x00007fe8705ed09e in QEventDispatcherGlib::processEvents (this=0x6970d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#41 0x00007fe86f729066 in QGuiEventDispatcherGlib::processEvents (this=0x3262, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007fe8705bc432 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#43 0x00007fe8705bc7fd in QEventLoop::exec (this=0x7fff844a8480, flags=) at kernel/qeventloop.cpp:201
#44 0x00007fe8705bf09b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#45 0x00007fe87362033f in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/plasma-workspace-9999/work/plasma-workspace-9999/plasma/desktop/shell/main.cpp:118
#46 0x00007fe873291d2d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff844a8878) at libc-start.c:226
#47 0x00000000004007a9 in _start ()

Possible duplicates by query: bug 257778, bug 257190, bug 251821, bug 249933, bug 249648.

Reported using DrKonqi
Comment 1 akibukis 2010-11-29 11:34:09 UTC
Created attachment 53850 [details]
New crash information added by DrKonqi

plasma-desktop (0.3) on KDE Platform 4.5.3 (KDE 4.5.3) using Qt 4.7.0

Clicked on CWP plasma widget temperature information.

-- Backtrace (Reduced):
#12 0x00007f7311247f3d in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:214
#13 0x00007f731124bebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#14 0x00007f7313ea6dc3 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../../plasma/desktop/shell/main.cpp:118
#15 0x00007f7313b07d8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff7cf53788) at libc-start.c:226
#16 0x0000000000400669 in _start ()
Comment 2 Dario Andres 2011-01-01 15:53:12 UTC
[Comment from a bug triager]
Seems related to the Akonadi resources so it could be caused by the clock/calendar that now uses Akonadi for the reminders/events inside the Calendar IIRC.

- Did you experience this crash again with an updated KDE SC 4.6 build ?

Regards
Comment 3 Dario Andres 2011-09-11 17:46:27 UTC
I could reproduce a crash with a similar backtrace using the following steps (both using KDE SC 4.7.1 and 4.8 git from some days ago):

You need a Google Calendar calendar
- Get Google Calendar's calendar private URL
- Add it to Korganizer, and enable it
- Add/remove some task on Google Calendar's website
- On Korganizar, right click on the calendar list and select "Update calendar folders"
(The GCal entry is now disabled)
- Check the box of the GCal entry to show its events again
Plasma crashes
Comment 4 Christoph Feck 2011-11-19 01:11:53 UTC
*** Bug 286950 has been marked as a duplicate of this bug. ***
Comment 5 Matěj Laitl 2011-11-19 11:39:00 UTC
Some important information from bug 286950:

The assertion message in .xsession-errors:
ASSERT: "first >= 0" in file kernel/qabstractitemmodel.cpp, line 2445

plasma-desktop asserts on every startup for me when following conditions are
met:
 * Qt is compiled with debug flag (QT_NO_DEBUG _not_ set) (4.7.4 Qt version)
 * kwin desktop effects are enabled

Notices:
 * debug build is _not_ enabled for kdelibs (QT_NO_DEBUG _is_ set when building
KDE)
 * I use OpenGL ES intel X.org driver for acceleration
 * plasma-desktop asserts only for the first time it is started in a given session
- it is then restarted and works flawlessly.