Bug 261593 - Frequent plasma-desktop crashes [KCalCore::IncidenceBase::isReadOnly, CalendarSupport::Calendar::Private::dataChanged]
Summary: Frequent plasma-desktop crashes [KCalCore::IncidenceBase::isReadOnly, Calenda...
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kcal (show other bugs)
Version: 4.6
Platform: unspecified All
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 261759 263651 264352 265087 270318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-30 09:20 UTC by Thomas Tanghus
Modified: 2011-05-21 10:32 UTC (History)
23 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.3


Attachments
New crash information added by DrKonqi (10.49 KB, text/plain)
2010-12-30 21:35 UTC, Thomas Tanghus
Details
New crash information added by DrKonqi (11.17 KB, text/plain)
2011-01-03 12:42 UTC, Thomas Tanghus
Details
New crash information added by DrKonqi (10.55 KB, text/plain)
2011-01-08 07:22 UTC, Chris Samuel
Details
New crash information added by DrKonqi (9.79 KB, text/plain)
2011-01-26 21:13 UTC, Thomas Tanghus
Details
New crash information added by DrKonqi (7.38 KB, text/plain)
2011-01-30 03:53 UTC, markuss
Details
New crash information added by DrKonqi (8.44 KB, text/plain)
2011-01-30 15:19 UTC, Juliano F. Ravasi
Details
New crash information added by DrKonqi (16.30 KB, text/plain)
2011-01-31 18:01 UTC, p92
Details
New crash information added by DrKonqi (10.73 KB, text/plain)
2011-02-03 09:56 UTC, Stefan Borggraefe
Details
New crash information added by DrKonqi (9.66 KB, text/plain)
2011-04-07 02:56 UTC, Balcaen John
Details
New crash information added by DrKonqi (9.33 KB, text/plain)
2011-05-21 10:32 UTC, Johannes Schwall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Tanghus 2010-12-30 09:20:34 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.5.90 (4.6 RC1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic i686
Distribution: Ubuntu 10.10

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

At this time I was just switching between two applications. I have had a lot of crashes in plasma-desktop but most of the time DrKonqi didn't appear. I can see that it runs with " --nocrashhandler" so I tried to restart it but to no avail. Now I have just updated and got the newest Akonadi server which solved
https://lists.ubuntu.com/archives/kubuntu-users/2010-December/053162.html
for me so I restarted the desktop, and now I got the Crash Report Assistant.

BTW & OT: When it was search through dupes I notived that it only searched through 2008-12-30 to 2009-12-30. A day-before-new-year-bug? Anyways this is likely a dupe but I could see it.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7820720 (LWP 11978))]

Thread 5 (Thread 0xb45aeb70 (LWP 11979)):
#0  0x0166d3b2 in __pthread_mutex_lock (mutex=0x8bf084c) at pthread_mutex_lock.c:47
#1  0x001edf66 in pthread_mutex_lock (mutex=0x8bf084c) at forward.c:182
#2  0x08140b68 in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0x0814145e in ?? () from /lib/libglib-2.0.so.0
#4  0x08141848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x04d7a59f in QEventDispatcherGlib::processEvents (this=0x8b739b0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x04d4a609 in QEventLoop::processEvents (this=0xb45ae280, flags=) at kernel/qeventloop.cpp:149
#7  0x04d4aa8a in QEventLoop::exec (this=0xb45ae280, flags=...) at kernel/qeventloop.cpp:201
#8  0x04c46b7e in QThread::exec (this=0x8babef0) at thread/qthread.cpp:490
#9  0x04d2935b in QInotifyFileSystemWatcherEngine::run (this=0x8babef0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x04c49df9 in QThreadPrivate::start (arg=0x8babef0) at thread/qthread_unix.cpp:266
#11 0x0166acc9 in start_thread (arg=0xb45aeb70) at pthread_create.c:304
#12 0x001e069e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb3dadb70 (LWP 11980)):
#0  0x04ca54ef in qt_gettime () at tools/qelapsedtimer_unix.cpp:128
#1  0x04d7c72a in QTimerInfoList::timerWait (this=0x8bf316c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#2  0x04d7a7a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb3dad0cc) at kernel/qeventdispatcher_glib.cpp:136
#3  0x04d7a83d in timerSourcePrepare (source=0xb3dacfe8, timeout=0x9d338) at kernel/qeventdispatcher_glib.cpp:169
#4  0x08140e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#5  0x08141279 in ?? () from /lib/libglib-2.0.so.0
#6  0x08141848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#7  0x04d7a59f in QEventDispatcherGlib::processEvents (this=0x8bf31d8, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#8  0x04d4a609 in QEventLoop::processEvents (this=0xb3dad2a0, flags=) at kernel/qeventloop.cpp:149
#9  0x04d4aa8a in QEventLoop::exec (this=0xb3dad2a0, flags=...) at kernel/qeventloop.cpp:201
#10 0x04c46b7e in QThread::exec (this=0x8b4da40) at thread/qthread.cpp:490
#11 0x01bd3171 in Herqq::Upnp::HControlPointThread::run() () from /usr/lib/libHUpnp.so.0
#12 0x04c49df9 in QThreadPrivate::start (arg=0x8b4da40) at thread/qthread_unix.cpp:266
#13 0x0166acc9 in start_thread (arg=0xb3dadb70) at pthread_create.c:304
#14 0x001e069e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xad132b70 (LWP 11981)):
#0  0x001edf7b in pthread_mutex_unlock (mutex=0x8e25954) at forward.c:184
#1  0x08140e58 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#2  0x08141279 in ?? () from /lib/libglib-2.0.so.0
#3  0x08141848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x04d7a59f in QEventDispatcherGlib::processEvents (this=0x8dfeda8, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#5  0x04d4a609 in QEventLoop::processEvents (this=0xad132280, flags=) at kernel/qeventloop.cpp:149
#6  0x04d4aa8a in QEventLoop::exec (this=0xad132280, flags=...) at kernel/qeventloop.cpp:201
#7  0x04c46b7e in QThread::exec (this=0x8e17dd0) at thread/qthread.cpp:490
#8  0x04d2935b in QInotifyFileSystemWatcherEngine::run (this=0x8e17dd0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x04c49df9 in QThreadPrivate::start (arg=0x8e17dd0) at thread/qthread_unix.cpp:266
#10 0x0166acc9 in start_thread (arg=0xad132b70) at pthread_create.c:304
#11 0x001e069e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xaa890b70 (LWP 12097)):
#0  0x0030f416 in __kernel_vsyscall ()
#1  0x0166f4dc in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x001edd9d in __pthread_cond_wait (cond=0x617e770, mutex=0x617e758) at forward.c:139
#3  0x05c763a5 in ?? () from /usr/lib/libQtWebKit.so.4
#4  0x05c76481 in ?? () from /usr/lib/libQtWebKit.so.4
#5  0x0166acc9 in start_thread (arg=0xaa890b70) at pthread_create.c:304
#6  0x001e069e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7820720 (LWP 11978)):
[KCrash Handler]
#7  KCalCore::IncidenceBase::isReadOnly (this=0x9521120) at ../../kcalcore/incidencebase.cpp:286
#8  0x04a50f80 in CalendarSupport::Calendar::Private::dataChanged (this=0x9521120, topLeft=..., bottomRight=...) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x04a2f394 in CalendarSupport::Calendar::Private::qt_metacall (this=0x9521120, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbf824da4) at moc_calendar_p.cpp:155
#10 0x04d518ca in QMetaObject::metacall (object=0x9521120, cl=125488897, idx=15, argv=0xbf824da4) at kernel/qmetaobject.cpp:237
#11 0x04d646ad in QMetaObject::activate (sender=0x9522290, m=0x4e7e198, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#12 0x04db5559 in QAbstractItemModel::dataChanged (this=0x9522290, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0x076643f0 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0x9523270, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1402
#14 0x076696c2 in Akonadi::EntityTreeModelPrivate::monitoredItemChanged (this=0x9523270, item=...) at ../../akonadi/entitytreemodel_p.cpp:940
#15 0x0765c04f in Akonadi::EntityTreeModel::qt_metacall (this=0x9522290, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbf825064) at ./entitytreemodel.moc:156
#16 0x04a2f2b2 in CalendarSupport::CalendarModel::qt_metacall (this=0x9522290, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbf825064) at moc_calendarmodel.cpp:66
#17 0x04d518ca in QMetaObject::metacall (object=0x9522290, cl=125488897, idx=48, argv=0xbf825064) at kernel/qmetaobject.cpp:237
#18 0x04d646ad in QMetaObject::activate (sender=0x9520d20, m=0x77aa834, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#19 0x076b5a79 in Akonadi::Monitor::itemChanged (this=0x9520d20, _t1=..., _t2=...) at ./monitor.moc:169
#20 0x076b8e0c in Akonadi::MonitorPrivate::emitItemNotification (this=0x9521540, msg=..., item=..., collection=..., collectionDest=...) at ../../akonadi/monitor_p.cpp:432
#21 0x076b9fd7 in Akonadi::MonitorPrivate::emitNotification (this=0x9521540, msg=...) at ../../akonadi/monitor_p.cpp:267
#22 0x07611f4c in Akonadi::ChangeRecorderPrivate::emitNotification(Akonadi::NotificationMessage const&) () from /usr/lib/libakonadi-kde.so.4
#23 0x076b9c6c in Akonadi::MonitorPrivate::dataAvailable (this=0x9521540) at ../../akonadi/monitor_p.cpp:281
#24 0x076b5b11 in Akonadi::Monitor::qt_metacall (this=0x9520d20, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbf8253cc) at ./monitor.moc:156
#25 0x07611b7a in Akonadi::ChangeRecorder::qt_metacall (this=0x9520d20, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbf8253cc) at ./changerecorder.moc:72
#26 0x04d518ca in QMetaObject::metacall (object=0x9520d20, cl=125488897, idx=27, argv=0xbf8253cc) at kernel/qmetaobject.cpp:237
#27 0x04d646ad in QMetaObject::activate (sender=0x9521584, m=0x77a9388, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#28 0x076544d7 in Akonadi::EntityCacheBase::dataAvailable (this=0x9521584) at ./entitycache_p.moc:88
#29 0x07612248 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x9521584, job=0xa2a3808) at ../../akonadi/entitycache_p.h:189
#30 0x07654564 in Akonadi::EntityCacheBase::qt_metacall (this=0x9521584, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf8255a8) at ./entitycache_p.moc:77
#31 0x04d518ca in QMetaObject::metacall (object=0x9521584, cl=125488897, idx=5, argv=0xbf8255a8) at kernel/qmetaobject.cpp:237
#32 0x04d646ad in QMetaObject::activate (sender=0xa2a3808, m=0x273f548, local_signal_index=3, argv=0x0) at kernel/qobject.cpp:3280
#33 0x025bdd73 in KJob::result (this=0xa2a3808, _t1=0xa2a3808) at ./kjob.moc:194
#34 0x025be0d8 in KJob::emitResult (this=0xa2a3808) at ../../kdecore/jobs/kjob.cpp:312
#35 0x076ab709 in delayedEmitResult (this=0xa2a3808, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x966cb00) at ../../akonadi/job.cpp:144
#36 Akonadi::Job::qt_metacall (this=0xa2a3808, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x966cb00) at ./job.moc:91
#37 0x07696f9a in Akonadi::ItemFetchJob::qt_metacall (this=0xa2a3808, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x966cb00) at ./itemfetchjob.moc:73
#38 0x04d518ca in QMetaObject::metacall (object=0xa2a3808, cl=125488897, idx=34, argv=0x966cb00) at kernel/qmetaobject.cpp:237
#39 0x04d5cdf6 in QMetaCallEvent::placeMetaCall (this=0xa2ae5b0, object=0xa2a3808) at kernel/qobject.cpp:534
#40 0x04d5e6a2 in QObject::event (this=0xa2a3808, e=0xbf824ba8) at kernel/qobject.cpp:1219
#41 0x03a32fdc in QApplicationPrivate::notify_helper (this=0x860f158, receiver=0xa2a3808, e=0xa2ae5b0) at kernel/qapplication.cpp:4396
#42 0x03a3904e in QApplication::notify (this=0x86045f8, receiver=0xa2a3808, e=0xa2ae5b0) at kernel/qapplication.cpp:3798
#43 0x00fd92ca in KApplication::notify (this=0x86045f8, receiver=0xa2a3808, event=0xa2ae5b0) at ../../kdeui/kernel/kapplication.cpp:311
#44 0x04d4bb3b in QCoreApplication::notifyInternal (this=0x86045f8, receiver=0xa2a3808, event=0xa2ae5b0) at kernel/qcoreapplication.cpp:732
#45 0x04d4ed8b in sendEvent (receiver=0x0, event_type=0, data=0x85d1638) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x85d1638) at kernel/qcoreapplication.cpp:1373
#47 0x04d4ef4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#48 0x04d7aa74 in sendPostedEvents (s=0x8611720) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#49 postEventSourceDispatch (s=0x8611720) at kernel/qeventdispatcher_glib.cpp:277
#50 0x0813d855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#51 0x08141668 in ?? () from /lib/libglib-2.0.so.0
#52 0x08141848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#53 0x04d7a565 in QEventDispatcherGlib::processEvents (this=0x85ff128, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#54 0x03af4be5 in QGuiEventDispatcherGlib::processEvents (this=0x85ff128, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#55 0x04d4a609 in QEventLoop::processEvents (this=0xbf825e54, flags=) at kernel/qeventloop.cpp:149
#56 0x04d4aa8a in QEventLoop::exec (this=0xbf825e54, flags=...) at kernel/qeventloop.cpp:201
#57 0x04d4f00f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#58 0x03a31e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#59 0x00b23f67 in kdemain (argc=1, argv=0xbf826064) at ../../../../plasma/desktop/shell/main.cpp:118
#60 0x080485bb in main (argc=1, argv=0xbf826064) at plasma-desktop_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Tanghus 2010-12-30 21:35:25 UTC
Created attachment 55390 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.5.90 (4.6 RC1) using Qt 4.7.0

- What I was doing when the application crashed:

I had just logged in. Plasma was non-responsive/sluggish sp I tabbed between session. Crash.

-- Backtrace (Reduced):
#7  KCalCore::IncidenceBase::isReadOnly (this=0xace7e70) at ../../kcalcore/incidencebase.cpp:286
#8  0x07ff8f80 in CalendarSupport::Calendar::Private::dataChanged (this=0xace7e70, topLeft=..., bottomRight=...) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x07fd7394 in CalendarSupport::Calendar::Private::qt_metacall (this=0xace7e70, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfc2b234) at moc_calendar_p.cpp:155
[...]
#12 0x08e48559 in QAbstractItemModel::dataChanged (this=0xace3a70, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0x079523f0 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0xace71f0, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1402
Comment 2 Beat Wolf 2011-01-02 14:04:13 UTC
*** Bug 261759 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2011-01-02 14:08:02 UTC
[Comment from a bug triager]
Note that bug 261759 contains a reference to a null pointer on KCalCore::IncidenceBase::isReadOnly
Comment 4 Thomas Tanghus 2011-01-03 12:42:22 UTC
Created attachment 55513 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.5.90 (4.6 RC1) using Qt 4.7.0

- What I was doing when the application crashed:

Same as last report. I had just logged in but this time just waited for the crash.

- Unusual behavior I noticed:

Events aren't shown when hovering over the clock/calendar applet as they where before upgrading to 4.6 RC1. My calendar is a classic KDE network resource running agains www.memotoo.com.

Is there anything I can disble or otherwise do to try to limit this to a specific component?

BTW: any typos is probably because I'm writing blidly becuase of font corruption.

-- Backtrace (Reduced):
#7  KCalCore::IncidenceBase::isReadOnly (this=0x9283390) at ../../kcalcore/incidencebase.cpp:286
#8  0x04f83f80 in CalendarSupport::Calendar::Private::dataChanged (this=0x9283390, topLeft=..., bottomRight=...) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x04f62394 in CalendarSupport::Calendar::Private::qt_metacall (this=0x9283390, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfc338b4) at moc_calendar_p.cpp:155
[...]
#12 0x03bd9559 in QAbstractItemModel::dataChanged (this=0x92852b0, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0x07b403f0 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0x9281cd8, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1402
Comment 5 Thomas Tanghus 2011-01-07 20:42:32 UTC
This seems to be fixed in RC2 but I've only just logged into it.
Comment 6 Chris Samuel 2011-01-08 07:22:47 UTC
Created attachment 55725 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.5.95 (4.6 RC2) using Qt 4.7.0

- What I was doing when the application crashed:

Came home a few hours after logging into 4.6.0 RC2 to find this crash again.

Originally reported as bug #261759 which was marked as a duplicate of this.

-- Backtrace (Reduced):
#6  KCalCore::IncidenceBase::isReadOnly (this=0x0) at ../../kcalcore/incidencebase.cpp:286
#7  0x00007f3738d05f23 in CalendarSupport::Calendar::Private::updateItem (this=0x1422a70, item=<value optimized out>, mode=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:222
#8  0x00007f3738d08e9b in CalendarSupport::Calendar::Private::dataChanged (this=<value optimized out>, topLeft=<value optimized out>, bottomRight=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x00007f3738ce9f0c in CalendarSupport::Calendar::Private::qt_metacall (this=0x1422a70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaa2318b0) at moc_calendar_p.cpp:155
[...]
#11 0x00007f375a51e2c7 in QAbstractItemModel::dataChanged (this=0x0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
Comment 7 Thomas Tanghus 2011-01-08 11:01:45 UTC
I got hit by it too. It ran stable for ~12 hrs. then today when I had to reboot it crashed when I logged in again.

[KCrash Handler]
#7  KCalCore::IncidenceBase::isReadOnly (this=0x9531918) at ../../kcalcore/incidencebase.cpp:286
#8  0x05a01f80 in CalendarSupport::Calendar::Private::dataChanged (this=0x9531918, topLeft=..., bottomRight=...) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x059e02f4 in CalendarSupport::Calendar::Private::qt_metacall (this=0x9531918, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfcb58b4) at moc_calendar_p.cpp:155
#10 0x05faa8ca in QMetaObject::metacall (object=0x9531918, cl=2871242497, idx=15, argv=0xbfcb58b4) at kernel/qmetaobject.cpp:237
#11 0x05fbd6ad in QMetaObject::activate (sender=0x9533708, m=0x60d7198, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#12 0x0600e559 in QAbstractItemModel::dataChanged (this=0x9533708, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0xab0f33e0 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0x952f498, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1402
#14 0xab0f86b2 in Akonadi::EntityTreeModelPrivate::monitoredItemChanged (this=0x952f498, item=...) at ../../akonadi/entitytreemodel_p.cpp:940
#15 0xab0eb03f in Akonadi::EntityTreeModel::qt_metacall (this=0x9533708, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfcb5b74) at ./entitytreemodel.moc:156
#16 0x059e04d2 in CalendarSupport::CalendarModel::qt_metacall (this=0x9533708, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfcb5b74) at moc_calendarmodel.cpp:66
#17 0x05faa8ca in QMetaObject::metacall (object=0x9533708, cl=2871242497, idx=48, argv=0xbfcb5b74) at kernel/qmetaobject.cpp:237
#18 0x05fbd6ad in QMetaObject::activate (sender=0x95310d8, m=0xab238834, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#19 0xab144a69 in Akonadi::Monitor::itemChanged (this=0x95310d8, _t1=..., _t2=...) at ./monitor.moc:169
#20 0xab147dfc in Akonadi::MonitorPrivate::emitItemNotification (this=0x9531108, msg=..., item=..., collection=..., collectionDest=...) at ../../akonadi/monitor_p.cpp:432
#21 0xab148fc7 in Akonadi::MonitorPrivate::emitNotification (this=0x9531108, msg=...) at ../../akonadi/monitor_p.cpp:267
#22 0xab0a0f3c in Akonadi::ChangeRecorderPrivate::emitNotification(Akonadi::NotificationMessage const&) () from /usr/lib/libakonadi-kde.so.4
#23 0xab148c5c in Akonadi::MonitorPrivate::dataAvailable (this=0x9531108) at ../../akonadi/monitor_p.cpp:281
#24 0xab144b01 in Akonadi::Monitor::qt_metacall (this=0x95310d8, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfcb5edc) at ./monitor.moc:156
#25 0xab0a0b6a in Akonadi::ChangeRecorder::qt_metacall (this=0x95310d8, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfcb5edc) at ./changerecorder.moc:72
#26 0x05faa8ca in QMetaObject::metacall (object=0x95310d8, cl=2871242497, idx=27, argv=0xbfcb5edc) at kernel/qmetaobject.cpp:237
#27 0x05fbd6ad in QMetaObject::activate (sender=0x953114c, m=0xab237388, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#28 0xab0e34c7 in Akonadi::EntityCacheBase::dataAvailable (this=0x953114c) at ./entitycache_p.moc:88
#29 0xab0a1238 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x953114c, job=0xa1b7db0) at ../../akonadi/entitycache_p.h:189
#30 0xab0e3554 in Akonadi::EntityCacheBase::qt_metacall (this=0x953114c, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfcb60b8) at ./entitycache_p.moc:77
#31 0x05faa8ca in QMetaObject::metacall (object=0x953114c, cl=2871242497, idx=5, argv=0xbfcb60b8) at kernel/qmetaobject.cpp:237
#32 0x05fbd6ad in QMetaObject::activate (sender=0xa1b7db0, m=0x420f548, local_signal_index=3, argv=0x0) at kernel/qobject.cpp:3280
#33 0x0408dd83 in KJob::result (this=0xa1b7db0, _t1=0xa1b7db0) at ./kjob.moc:194
#34 0x0408e0e8 in KJob::emitResult (this=0xa1b7db0) at ../../kdecore/jobs/kjob.cpp:312
#35 0xab13a6f9 in delayedEmitResult (this=0xa1b7db0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0xa2e8878) at ../../akonadi/job.cpp:144
#36 Akonadi::Job::qt_metacall (this=0xa1b7db0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0xa2e8878) at ./job.moc:91
#37 0xab125f8a in Akonadi::ItemFetchJob::qt_metacall (this=0xa1b7db0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0xa2e8878) at ./itemfetchjob.moc:73
#38 0x05faa8ca in QMetaObject::metacall (object=0xa1b7db0, cl=2871242497, idx=34, argv=0xa2e8878) at kernel/qmetaobject.cpp:237
#39 0x05fb5df6 in QMetaCallEvent::placeMetaCall (this=0x9bc88b0, object=0xa1b7db0) at kernel/qobject.cpp:534
#40 0x05fb76a2 in QObject::event (this=0xa1b7db0, e=0xbfcb56b8) at kernel/qobject.cpp:1219
#41 0x01735fdc in QApplicationPrivate::notify_helper (this=0x84ac9f8, receiver=0xa1b7db0, e=0x9bc88b0) at kernel/qapplication.cpp:4396
#42 0x0173c04e in QApplication::notify (this=0x84a1658, receiver=0xa1b7db0, e=0x9bc88b0) at kernel/qapplication.cpp:3798
#43 0x00e96f8a in KApplication::notify (this=0x84a1658, receiver=0xa1b7db0, event=0x9bc88b0) at ../../kdeui/kernel/kapplication.cpp:311
#44 0x05fa4b3b in QCoreApplication::notifyInternal (this=0x84a1658, receiver=0xa1b7db0, event=0x9bc88b0) at kernel/qcoreapplication.cpp:732
#45 0x05fa7d8b in sendEvent (receiver=0x0, event_type=0, data=0x846b638) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x846b638) at kernel/qcoreapplication.cpp:1373
#47 0x05fa7f4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#48 0x05fd3a74 in sendPostedEvents (s=0x84aed20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#49 postEventSourceDispatch (s=0x84aed20) at kernel/qeventdispatcher_glib.cpp:277
#50 0x021bd855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#51 0x021c1668 in ?? () from /lib/libglib-2.0.so.0
#52 0x021c1848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#53 0x05fd3565 in QEventDispatcherGlib::processEvents (this=0x849f198, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#54 0x017f7be5 in QGuiEventDispatcherGlib::processEvents (this=0x849f198, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#55 0x05fa3609 in QEventLoop::processEvents (this=0xbfcb6964, flags=) at kernel/qeventloop.cpp:149
#56 0x05fa3a8a in QEventLoop::exec (this=0xbfcb6964, flags=...) at kernel/qeventloop.cpp:201
#57 0x05fa800f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#58 0x01734e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#59 0x007fafb7 in kdemain (argc=1, argv=0xbfcb6b74) at ../../../../plasma/desktop/shell/main.cpp:118
#60 0x080485bb in main (argc=1, argv=0xbfcb6b74) at plasma-desktop_dummy.cpp:3
Comment 8 Thomas Tanghus 2011-01-10 11:40:06 UTC
Should this be moved to another product? 
I looked at the code in http://websvn.kde.org/branches/KDE/4.6/kdebase/workspace/plasma/generic/dataengines/calendar/akonadi/calendar.cpp?revision=1211754&view=markup but saw nothing obvious (mainly due to my very rusty C++ knowledge).

It looks like the crash is in KCalCore::IncidenceBase but I have no idea where that lives in the svn tree.
Comment 9 Dario Andres 2011-01-10 23:50:50 UTC
[Comment from a bug triager]
Indeed, the crash is related to the KDEPIM classes; and the KDEPIM developers should be already notified as their mailing list is added to the CC list of this bug report.
Regards
Comment 10 Marco Martin 2011-01-19 17:01:49 UTC
*** Bug 263651 has been marked as a duplicate of this bug. ***
Comment 11 Mark Fraser 2011-01-26 18:15:12 UTC
*** Bug 264352 has been marked as a duplicate of this bug. ***
Comment 12 Mark Fraser 2011-01-26 18:17:09 UTC
I'm getting this every time I log in now with KDE 4.6 on Kubuntu 10.10.
Comment 13 Thomas Tanghus 2011-01-26 21:13:49 UTC
Created attachment 56451 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.0

- What I was doing when the application crashed:

Logging in. Also happens in KDE SC 4.6 release.

-- Backtrace (Reduced):
#7  KCalCore::IncidenceBase::isReadOnly (this=0xae3c280) at ../../kcalcore/incidencebase.cpp:286
#8  0x04320f80 in CalendarSupport::Calendar::Private::dataChanged (this=0xae3c280, topLeft=..., bottomRight=...) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x042ff054 in CalendarSupport::Calendar::Private::qt_metacall (this=0xae3c280, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfa14404) at moc_calendar_p.cpp:155
[...]
#12 0x05fcd559 in QAbstractItemModel::dataChanged (this=0xae3d9a8, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0xabb623f0 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0xae3e988, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1402
Comment 14 Thomas Tanghus 2011-01-26 21:20:23 UTC
Could this bug be reassigned to kdepimlibs?
Comment 15 Dario Andres 2011-01-26 23:51:21 UTC
[Comment from a bug triager]
KDEPIM developers are already notified of this report, but OK, let's move it to kdepimlibs...
Comment 16 markuss 2011-01-30 03:53:09 UTC
Created attachment 56645 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.00 (4.6.0) using Qt 4.8.0

- What I was doing when the application crashed:

Sending an email using KMail. Other that that I did nothing.

-- Backtrace (Reduced):
#7  0xa7dcadc4 in KCalCore::IncidenceBase::isReadOnly (this=0x0) at /usr/src/debug/kdepimlibs-4.6.0/kcalcore/incidencebase.cpp:286
#8  0xa80a9466 in CalendarSupport::Calendar::Private::updateItem (this=0x89a6268, item=..., mode=CalendarSupport::Calendar::Private::AssertExists)
    at /usr/src/debug/kdebase-workspace-4.6.0/plasma/generic/dataengines/calendar/akonadi/calendar.cpp:227
#9  0xa80ac7ac in CalendarSupport::Calendar::Private::dataChanged (this=0x89a6268, topLeft=..., bottomRight=...)
    at /usr/src/debug/kdebase-workspace-4.6.0/plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#10 0xa808b05a in CalendarSupport::Calendar::Private::qt_metacall (this=0x89a6268, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf80c3e4)
    at /usr/src/debug/kdebase-workspace-4.6.0/build/plasma/generic/dataengines/calendar/moc_calendar_p.cpp:155
[...]
#13 0xb662d5bd in QAbstractItemModel::headerDataChanged (this=0x89a5828, _t1=150571000, _t2=-1082080128, _t3=7) at .moc/release-shared/moc_qabstractitemmodel.cpp:155
Comment 17 Juliano F. Ravasi 2011-01-30 15:19:49 UTC
Created attachment 56662 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.0

- What I was doing when the application crashed:

Simply logging into the desktop causes plasma to crash. After the first crash, the second restart of plasma-desktop is successful.

-- Backtrace (Reduced):
#6  KCalCore::IncidenceBase::isReadOnly (this=0x0) at ../../kcalcore/incidencebase.cpp:286
#7  0x00007f958c4eef03 in CalendarSupport::Calendar::Private::updateItem (this=0x2511c80, item=<value optimized out>, mode=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:225
#8  0x00007f958c4f1e7b in CalendarSupport::Calendar::Private::dataChanged (this=<value optimized out>, topLeft=<value optimized out>, bottomRight=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x00007f958c4d2d1c in CalendarSupport::Calendar::Private::qt_metacall (this=0x2511c80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7af1a6f0) at moc_calendar_p.cpp:155
[...]
#11 0x00007f95af60d2c7 in QAbstractItemModel::dataChanged (this=0x0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
Comment 18 p92 2011-01-31 18:01:14 UTC
Created attachment 56699 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.0

- What I was doing when the application crashed:
plasma crashed after I changed twice the birthdate of one of my contacts in kontact (address book on akonadi)



- Unusual behavior I noticed:

-- Backtrace (Reduced):
#6  KCalCore::IncidenceBase::isReadOnly (this=0x0) at ../../kcalcore/incidencebase.cpp:286
#7  0x00007f69536b1f03 in CalendarSupport::Calendar::Private::updateItem (this=0x198ee20, item=<value optimized out>, mode=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:225
#8  0x00007f69536b4e7b in CalendarSupport::Calendar::Private::dataChanged (this=<value optimized out>, topLeft=<value optimized out>, bottomRight=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x00007f6953695d1c in CalendarSupport::Calendar::Private::qt_metacall (this=0x198ee20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe89bc890) at moc_calendar_p.cpp:155
[...]
#11 0x00007f69760562c7 in QAbstractItemModel::dataChanged (this=0x0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
Comment 19 Stefan Borggraefe 2011-02-03 09:56:28 UTC
Created attachment 56817 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.0

- What I was doing when the application crashed:

Not sure, this crash appears randomly about four times per work day for me. But I am a heavy Kontact user.

-- Backtrace (Reduced):
#7  KCalCore::IncidenceBase::isReadOnly (this=0x9c26c90) at ../../kcalcore/incidencebase.cpp:286
#8  0x04f7bf80 in CalendarSupport::Calendar::Private::dataChanged (this=0x9c26c90, topLeft=..., bottomRight=...) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:157
#9  0x04f5a054 in CalendarSupport::Calendar::Private::qt_metacall (this=0x9c26c90, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfae5334) at moc_calendar_p.cpp:155
[...]
#12 0x05446559 in QAbstractItemModel::dataChanged (this=0x9c3b158, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0x05b8a3f0 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0x9c19968, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1402
Comment 20 Dario Andres 2011-02-05 00:43:43 UTC
*** Bug 265087 has been marked as a duplicate of this bug. ***
Comment 21 Juliano F. Ravasi 2011-02-06 18:58:00 UTC
Please, is there any workaround for this bug while it is not fixed? Something that can be disabled or changed to avoid the code path that is generating these crashes?

It is driving me crazy. I'm experiencing more than 50 plasma-desktop crashes every single day, all while using Kopete and/or Kontact. It is seriously, negatively impacting my productivity, and I can't wait for an official patch or updated release anymore.
Comment 22 Dario Andres 2011-02-06 19:01:39 UTC
Try removing the Calendars and Clocks from your Desktop/Panel. Regards
Comment 23 Thomas Tanghus 2011-02-06 19:33:39 UTC
For some reason it almost works for me after I've deleted a couple of activities. The only thing I can think of which could have caused it is the Micro Blog Plasmoid which was on one of the activities. Now it only crashes on login and I guess it's because of the Digital Clock Plasmoid.
Comment 24 Juliano F. Ravasi 2011-02-07 22:09:02 UTC
Thanks Dario. Removing the clock from the panel eliminated plasma-desktop crashes, for now.

Can someone CONFIRM this bug, and set it to block 4.6.1? I think it is a really major issue.
Comment 25 markuss 2011-02-07 23:15:00 UTC
I'm changing the UNCONFIRMED part to NEW but as I'm not a member of the PIM team, I won't set it as blocker unless I'm asked to do so by a team member.
Comment 26 Piotr Keplicz 2011-03-05 23:51:43 UTC
Has this bug been fixed? In 4.6.0 plasma used to crash on every login, no such case ever since I upgraded to 4.6.1.
Comment 27 Dario Andres 2011-03-08 14:43:45 UTC
[Comment from a bug triager]
As noted in bug 265287, there was a workaround added for this crash in Plasma @ KDE SC 4.6.1; but I think the root issue is still there (I may be wrong)
Regards
Comment 28 Balcaen John 2011-04-07 02:56:50 UTC
Created attachment 58660 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I simply logging to my session (on KDE SC 4.6.2)
If it can help i'm using akonadi-googledata & i have also several ical file over http pulled by akonadi.

Regards

-- Backtrace (Reduced):
#6  KCalCore::IncidenceBase::isReadOnly (this=0x0) at /usr/src/debug/kdepimlibs-4.6.2/kcalcore/incidencebase.cpp:286
#7  0x00007fd60d3ce9a5 in CalendarSupport::Calendar::Private::updateItem (this=0x2714e80, item=..., mode=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.6.2/plasma/generic/dataengines/calendar/akonadi/calendar.cpp:323
#8  0x00007fd60d3d0703 in CalendarSupport::Calendar::Private::dataChanged (this=0x2714e80, topLeft=..., bottomRight=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.6.2/plasma/generic/dataengines/calendar/akonadi/calendar.cpp:228
#9  0x00007fd60d3b23c4 in CalendarSupport::Calendar::Private::qt_metacall (this=0x2714e80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff1783530)
    at /usr/src/debug/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/calendar/moc_calendar_p.cpp:158
[...]
#11 0x00007fd63b8f0367 in QAbstractItemModel::dataChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
Comment 29 Mark Fraser 2011-04-07 20:10:29 UTC
Looked like this was fixed in KDE 4.6.1, but I'm seeing it again in KDE 4.6.2 with Kubuntu 10.10.
Comment 30 Frédéric COIFFIER 2011-04-07 21:32:22 UTC
Same thing on Gentoo
Comment 31 Sergio Martins 2011-04-07 23:44:24 UTC
Git commit b2a322448e644cdf55b9990c90920ce8c0ffcc7f by Sergio Martins.
Committed on 08/04/2011 at 00:43.
Pushed by smartins into branch 'master'.

Don't segfault in release mode.

No idea why it's 0, but we're going to delete this copy of calendar.cpp soon,
so it's a waste of time to debugging it.

PIM applications don't crash at all regarding this, in plasma the ETM is probably
set incorrectly and has items with unsupported payloads.

BUG: 261593

M  +4    -1    plasma/generic/dataengines/calendar/akonadi/calendar.cpp     

http://commits.kde.org/kde-workspace/b2a322448e644cdf55b9990c90920ce8c0ffcc7f
Comment 32 Sergio Martins 2011-04-07 23:47:05 UTC
Please test master, or the next version. I doubt it will crash.
Comment 33 Nicolas L. 2011-04-08 00:06:21 UTC
*** Bug 270318 has been marked as a duplicate of this bug. ***
Comment 34 Balcaen John 2011-04-08 14:41:16 UTC
(In reply to comment #32)
> Please test master, or the next version. I doubt it will crash.

It does not crash with this patch on 4.6.2 kdebase4-workspace, but maybe it should also be backport to the 4.6 branch ?

Regards,
Comment 35 Sergio Martins 2011-04-08 14:53:23 UTC
Git commit 3dbdc68fa9fb84fbcc63dbb9acffdf43a1ebfdda by Sergio Martins.
Committed on 08/04/2011 at 00:43.
Pushed by smartins into branch 'KDE/4.6'.

Don't segfault in release mode.

No idea why it's 0, but we're going to delete this copy of calendar.cpp soon,
so it's a waste of time to debugging it.

PIM applications don't crash at all regarding this, in plasma the ETM is probably
set incorrectly and has items with unsupported payloads.

BUG: 261593
(cherry picked from commit b2a322448e644cdf55b9990c90920ce8c0ffcc7f)

M  +4    -1    plasma/generic/dataengines/calendar/akonadi/calendar.cpp     

http://commits.kde.org/kde-workspace/3dbdc68fa9fb84fbcc63dbb9acffdf43a1ebfdda
Comment 36 Juliano F. Ravasi 2011-04-15 19:24:26 UTC
What causes incidence to be 0 in that code? What can be done to avoid that code path?

My distro just updated to 4.6.2 and this bug is back, and I'm trying to find a solution that doesn't involve manually hand-patching and compiling KDE or removing the clock from the panel.
Comment 37 Christophe Marin 2011-04-15 19:40:33 UTC
(In reply to comment #36)
> My distro just updated to 4.6.2 and this bug is back, and I'm trying to find a
> solution that doesn't involve manually hand-patching and compiling KDE or
> removing the clock from the panel.

the fix will be in 4.6.3. Ask your distribution to backport this commit to their 4.6.2 packages
Comment 38 Juliano F. Ravasi 2011-04-15 19:44:11 UTC
Also, it seems that the bug is still not completely fixed. Calendar::Private::~Private() is dereferencing incidence without testing for null.

  Calendar::Private::~Private()
  {
    Q_FOREACH ( const Akonadi::Item &item, m_itemMap ) {
      CalendarSupport::incidence( item )->unRegisterObserver( q );
    }
    ...

Compare with the same destructor in https://projects.kde.org/projects/kde/kdebase/kde-workspace/repository/revisions/d6ca7745810173aa7639c1a9f76dfe258c484857/entry/plasma/generic/dataengines/calendar/akonadi/calendar.cpp (older fix).
Comment 39 Juliano F. Ravasi 2011-04-15 20:44:02 UTC
(In reply to comment #37)
> the fix will be in 4.6.3. Ask your distribution to backport this commit to
> their 4.6.2 packages

Christophe, thanks for your suggestion. I don't want to sound ungrateful or harsh, but I asked what causes the incidence to be 0 (null) in the code. I'm well aware that I can ask the backport of this commit to my distribution, and it was not what I asked. I already went through this path before and from my experience this will take a few weeks to get processed at best (perhaps a month when 4.6.3 will be going out). And due to this very reason, they may just ignore or reject the request as unimportant, since this seems to only affect a few users. But this bug affects me now, and I'm willing to do something to fix my problem now.

I want to know what is causing this situation on my configuration, because I presume there is something I can do to fix it on my side to avoid the code path that is causing the bug. It is certainly something that doesn't affect many users and has a very specific trigger, otherwise KDE developers themselves wouldn't release two versions (4.6.0 and 4.6.2) with so blatant crashes. I also verified with a new user (with a blank KDE profile) that the crash doesn't happen.

So there is certainly something in my KDE configuration, something among the 56,280 files and directories residing inside my ~/.kde/ directory (that are accumulating since KDE 2.0), that triggers this for me (and a few other users who also reported this issue).

I already straced plasma-desktop and the file accesses before the crash don't tell much. Instead of shooting in the dark I would like to ask the developers watching this report, who are much more familiar with KDE internals, what may be causing this situation. And take this opportunity to clean up some of the cruft accumulating in my configuration and in my ~/.kde/ .
Comment 40 Sergio Martins 2011-04-15 21:11:12 UTC
Juliano, you're using kdepim-runtime 4.4 and kdepimlibs 4.6, right ?
Comment 41 Juliano F. Ravasi 2011-04-15 21:16:41 UTC
Sergio, yes, kdepim-runtime 4.4.9 and kdepimlibs 4.6.2.
Comment 42 Sergio Martins 2011-04-15 21:29:24 UTC
KCalCore is a new library introduced with kdepimlibs 4.6.

kde-workspace/../calendar.cpp uses KCalCore.

kdepim-runtime 4.4 doesn't have the KCalCore serializer/deserializer, hence the invalid incidence.

Possible solutions:
- Make plasma calendar use KCal instead of KCalCore
- Wait until kdepim-4.6 is released
- Backport the serializer to kdepim-runtime 4.4 and release kdepim 4.4.11 ( !? )
- Move data serializers to kdepimlibs ( don't know if it's possible, will have to ask )
Comment 43 Juliano F. Ravasi 2011-04-15 21:37:42 UTC
Sergio, as I explained in comment #39, if I create a new user in the same machine, with the same installation, running the very same version of KDE, but with an obviously empty ~/.kde/, a very pristine KDE profile, plasma doesn't crash.

Also, very few users downloading KDE from the same repository (with stable kdepim-runtime 4.4) are reporting this crash. All other users are not experiencing the crash.

That's just what I want.
Comment 44 Sergio Martins 2011-04-15 22:31:59 UTC
(In reply to comment #43)
> Sergio, as I explained in comment #39, if I create a new user in the same
> machine, with the same installation, running the very same version of KDE, but
> with an obviously empty ~/.kde/, a very pristine KDE profile, plasma doesn't
> crash.

If it's pristine then it won't have any events in akonadi, so no crash.

Even if you have events, it won't be easy to reproduce, by looking at the logs, several guards against invalid incidences have been made.

kdepim-4.4.11 is going to be released and will fix this.
Comment 45 Juliano F. Ravasi 2011-04-15 23:26:36 UTC
It seems that I managed to fix my problem, but I don't know how valid and/or secure this procedure is. I stopped akonadi, wiped ~/.local/akonadi and ~/.config/akonadi and removed ~/.kde/share/apps/korganizer/std.ics . After that I logged out and back in and plasma didn't crash. I restored std.ics from the backup and restarted akonadi again. Relogged three more times and no more crashes.

It was a shot in the dark. I have no idea if I did something wrong. Kontact forgot the address book, but I just readded std.vcf and it is back. It looks like everything is in place, but I could be missing something.
Comment 46 Johannes Schwall 2011-05-21 10:32:14 UTC
Created attachment 60197 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.0

- What I was doing when the application crashed:

changed an e-mail address in std.vcf in kontact, plasma crashed in background while kontact kept running without problem; the change seems to be saved

-- Backtrace (Reduced):
#6  KCalCore::IncidenceBase::isReadOnly (this=0x0) at ../../kcalcore/incidencebase.cpp:286
#7  0x00007fb394fa976f in CalendarSupport::Calendar::Private::updateItem (this=0x16f4040, item=<value optimized out>, mode=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:321
#8  0x00007fb394fadeab in CalendarSupport::Calendar::Private::dataChanged (this=<value optimized out>, topLeft=<value optimized out>, bottomRight=<value optimized out>) at ../../../../../plasma/generic/dataengines/calendar/akonadi/calendar.cpp:228
#9  0x00007fb394f8a714 in CalendarSupport::Calendar::Private::qt_metacall (this=0x16f4040, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff36a07e40) at moc_calendar_p.cpp:158
[...]
#11 0x00007fb3b91262c7 in QAbstractItemModel::dataChanged (this=0x0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qabstractitemmodel.cpp:148