Bug 197507 - Kontact crashes after deselect calendar resources in KOrganizer (KOrg::IncidenceMonthItem::realStartDate, KOrg::MonthView::reloadIncidences, KOrg::MonthView::setStartDate)
Summary: Kontact crashes after deselect calendar resources in KOrganizer (KOrg::Incide...
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.3
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 195357 200636 201137 203369 203415 203730 206497 207042 207745 207883 208150 208236 209179 213539 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-22 16:29 UTC by sts
Modified: 2010-09-03 02:40 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.60 KB, text/plain)
2010-09-03 02:40 UTC, DomLen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sts 2009-06-22 16:29:27 UTC
Application that crashed: kontact
Version of the application: 4.3.0 pre
KDE Version: 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2)) "release 138"
Qt Version: 4.5.1
Operating System: Linux 2.6.27.23-0.1-default x86_64
Distribution: "openSUSE 11.1 (x86_64)"

What I was doing when the application crashed:
I deselect some akonadi calendar ressources. kontact crashs

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f57afd4282a in KOrg::IncidenceMonthItem::realStartDate (this=0x1974820) at /usr/src/debug/kdepim-4.2.90/korganizer/views/monthview/monthitem.cpp:315
#6  0x00007f57afd3fceb in KOrg::MonthView::reloadIncidences (this=0x2aed540) at /usr/src/debug/kdepim-4.2.90/korganizer/views/monthview/monthview.cpp:325
#7  0x00007f57afd40ed3 in KOrg::MonthView::setStartDate (this=0x2aed540, start=<value optimized out>) at /usr/src/debug/kdepim-4.2.90/korganizer/views/monthview/monthview.cpp:291
#8  0x00007f57afd40f2e in KOrg::MonthView::showDates (this=0x2aed540, start=@0x2c68dc8, end=<value optimized out>) at /usr/src/debug/kdepim-4.2.90/korganizer/views/monthview/monthview.cpp:278
#9  0x00007f57afd83b66 in KOViewManager::updateView (this=0x1934f90, start=@0x2c70510, end=@0x1974801) at /usr/src/debug/kdepim-4.2.90/korganizer/koviewmanager.cpp:215
#10 0x00007f57afd72db2 in CalendarView::updateView (this=0x1b57b70, start=@0x2c68dc8, end=@0x2c68df8, updateTodos=160) at /usr/src/debug/kdepim-4.2.90/korganizer/calendarview.cpp:801
#11 0x00007f57afd74d31 in CalendarView::updateView (this=0x1b57b70) at /usr/src/debug/kdepim-4.2.90/korganizer/calendarview.cpp:810
#12 0x00007f57afd81ca7 in CalendarView::qt_metacall (this=0x1b57b70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd78d5db0)
    at /usr/src/debug/kdepim-4.2.90/build/korganizer/calendarview.moc:571
#13 0x00007f57caf80c22 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#14 0x00007f57cd8679cd in KCal::Calendar::qt_metacall (this=0x28a20e0, _c=QMetaObject::InvokeMetaMethod, _id=41272736, _a=<value optimized out>)
    at /usr/src/debug/kdepimlibs-4.2.90/build/kcal/calendar.moc:73
#15 0x00007f57cd8c2f95 in KCal::CalendarResources::qt_metacall (this=0x7fffd78d5640, _c=46597392, _id=26691585, _a=0x7f57b005faa0)
    at /usr/src/debug/kdepimlibs-4.2.90/build/kcal/calendarresources.moc:76
#16 0x00007f57caf80c22 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#17 0x00007f57cd8b309f in KCal::ResourceCalendar::resourceChanged (this=0x7fffd78d5640, _t1=0x1afb280) at /usr/src/debug/kdepimlibs-4.2.90/build/kcal/resourcecalendar.moc:117
#18 0x00007f57ae6c5f8b in KCal::ResourceAkonadi::Private::incidenceRemoved (this=0x1a15dc0, uid=<value optimized out>, subResourceIdentifier=@0x7fffd78d60e0)
    at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/kcal/resourceakonadi_p.cpp:423
#19 0x00007f57ae6c7640 in KCal::ResourceAkonadi::Private::qt_metacall (this=0x1a15dc0, _c=QMetaObject::InvokeMetaMethod, _id=41272736, _a=0x7fffd78d60a0)
    at /usr/src/debug/kdepim-4.2.90/build/kresources/akonadi/kcal/resourceakonadi_p.moc:77
#20 0x00007f57caf80c22 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#21 0x00007f57ae6ce6ba in SubResource::incidenceRemoved (this=0x7fffd78d5640, _t1=<value optimized out>, _t2=<value optimized out>)
    at /usr/src/debug/kdepim-4.2.90/build/kresources/akonadi/kcal/subresource.moc:100
#22 0x00007f57ae6cee8d in SubResource::itemRemoved (this=0x1996600, item=<value optimized out>) at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/kcal/subresource.cpp:163
#23 0x00007f57ae6e6677 in SubResourceBase::setActive (this=0x1996600, active=<value optimized out>) at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/shared/subresourcebase.cpp:63
#24 0x00007f57ae6c229b in KCal::ResourceAkonadi::setSubresourceActive (this=0x1afb280, subResource=@0x1757b68, active=false)
    at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/kcal/resourceakonadi.cpp:277
#25 0x00007f57afdeac55 in ResourceItem::stateChange (this=0x1757b00, active=true) at /usr/src/debug/kdepim-4.2.90/korganizer/resourceview.cpp:197
#26 0x00007f57afdeacd2 in ResourceView::slotItemClicked (this=<value optimized out>, i=0x1757b00) at /usr/src/debug/kdepim-4.2.90/korganizer/resourceview.cpp:817
#27 0x00007f57afdee9d1 in ResourceView::qt_metacall (this=0x2a88b90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd78d6370)
    at /usr/src/debug/kdepim-4.2.90/build/korganizer/resourceview.moc:121
#28 0x00007f57caf80c22 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#29 0x00007f57ca1cebe0 in QTreeWidget::itemClicked(QTreeWidgetItem*, int) () from /usr/lib64/libQtGui.so.4
#30 0x00007f57ca1dba43 in QTreeWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#31 0x00007f57caf80c22 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#32 0x00007f57ca155885 in QAbstractItemView::clicked(QModelIndex const&) () from /usr/lib64/libQtGui.so.4
#33 0x00007f57ca1627fe in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#34 0x00007f57c9caf7ed in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#35 0x00007f57ca0305eb in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#36 0x00007f57ca16581d in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#37 0x00007f57ca19c2e9 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#38 0x00007f57caf6a458 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#39 0x00007f57c9c5e75c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#40 0x00007f57c9c6718a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#41 0x00007f57cbda604b in KApplication::notify (this=0x7fffd78d9110, receiver=0x193f140, event=0x7fffd78d71c0) at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302
#42 0x00007f57caf6b15c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#43 0x00007f57c9c663d8 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib64/libQtGui.so.4
#44 0x00007f57c9cd0149 in ?? () from /usr/lib64/libQtGui.so.4
#45 0x00007f57c9ccf1b5 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#46 0x00007f57c9cf6384 in ?? () from /usr/lib64/libQtGui.so.4
#47 0x00007f57c48160fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#48 0x00007f57c48198cd in ?? () from /usr/lib64/libglib-2.0.so.0
#49 0x00007f57c4819a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#50 0x00007f57caf9489f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#51 0x00007f57c9cf5b0f in ?? () from /usr/lib64/libQtGui.so.4
#52 0x00007f57caf699f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#53 0x00007f57caf69dbd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#54 0x00007f57caf6c0a4 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#55 0x0000000000404995 in main (argc=1, argv=0x7fffd78d97f8) at /usr/src/debug/kdepim-4.2.90/kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Dario Andres 2009-06-23 03:35:29 UTC
The backtrace looks related to the one in bug 195357, but the situation is different. Thanks
Comment 2 Christophe Marin 2009-07-18 16:37:22 UTC
*** Bug 200636 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2009-07-22 20:38:39 UTC
*** Bug 201137 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-08-11 00:03:42 UTC
*** Bug 203369 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-08-11 15:04:31 UTC
*** Bug 203415 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2009-08-15 23:31:47 UTC
*** Bug 203730 has been marked as a duplicate of this bug. ***
Comment 7 Christophe Marin 2009-09-06 14:58:24 UTC
*** Bug 206497 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2009-09-11 09:36:14 UTC
*** Bug 207042 has been marked as a duplicate of this bug. ***
Comment 9 Christophe Marin 2009-09-19 14:32:15 UTC
*** Bug 207883 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2009-09-19 18:47:31 UTC
*** Bug 207745 has been marked as a duplicate of this bug. ***
Comment 11 Allen Winter 2009-09-21 14:57:42 UTC
SVN commit 1026321 by winterz:

use qobject_cast instead of dynamic_cast where possible
check for invalid start/end dates
check for incidence=0
in general, a bunch of little changes for guarding against crashes in Month view.
BUG: 197507
MERGE: 4.3


 M  +32 -7     monthitem.cpp  
 M  +6 -5      monthscene.cpp  
 M  +13 -8     monthview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1026321
Comment 12 Allen Winter 2009-09-21 20:26:45 UTC
SVN commit 1026400 by winterz:

Backport r1026321 by winterz from trunk to the 4.3 branch:

use qobject_cast instead of dynamic_cast where possible
check for invalid start/end dates
check for incidence=0
in general, a bunch of little changes for guarding against crashes in Month view.
CCBUG: 197507
MERGE: 4.3



 M  +32 -7     monthitem.cpp  
 M  +6 -5      monthscene.cpp  
 M  +13 -8     monthview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1026400
Comment 13 Christophe Marin 2009-09-22 09:11:03 UTC
*** Bug 208150 has been marked as a duplicate of this bug. ***
Comment 14 Christophe Marin 2009-09-23 12:49:24 UTC
*** Bug 208236 has been marked as a duplicate of this bug. ***
Comment 15 Christophe Marin 2009-10-02 12:31:18 UTC
*** Bug 209179 has been marked as a duplicate of this bug. ***
Comment 16 Dario Andres 2009-10-21 14:57:58 UTC
@Allen: bug 211291 seems related to this but in 4.3.2; I checked your commit date and the fix should be included in that release. Is bug 211291 a different one or the issue was not properly fixed ? Regards
Comment 17 Dario Andres 2009-10-21 15:00:36 UTC
*** Bug 195357 has been marked as a duplicate of this bug. ***
Comment 18 Jonathan Thomas 2009-11-10 02:22:46 UTC
*** Bug 213539 has been marked as a duplicate of this bug. ***
Comment 19 DomLen 2010-09-03 02:40:48 UTC
Created attachment 51253 [details]
New crash information added by DrKonqi

KOrganizer crashed when I reloaded an agenda. I have 2 agendas, plus the default.

Also, all the events in the agenda are shown twice on the calendar view. (If I change any of the two instances of the event, both are changed.)