Bug 115892 - quickly deleting to-do tasks crashes korganizer
Summary: quickly deleting to-do tasks crashes korganizer
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 135114 200970 203207 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-08 04:09 UTC by Mohd Asif Ali Rizwaan
Modified: 2009-08-26 01:32 UTC (History)
5 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 Mohd Asif Ali Rizwaan 2005-11-08 04:09:40 UTC
Version:           3.5 beta1 (using KDE 3.4.92 (beta2, >= 20051010), compiled sources)
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.6.11.7

how to reproduce:

1. add some tasks say about 20 aaa,bbb,ccc,ddd,eee,fff,ggg etc. to xyz
2. now click on 1 task then keep pressing "delete" and "spacebar" alternatively and fast.
3. after deleting some todo entries, korganizer crashes.

Here is the crash output:
-------------------------
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 7309)]
[KCrash handler]
#5  0x00000000 in ?? ()
#6  0x4010b9ce in KOTodoViewItem::construct ()
   from /opt/kde/lib/libkorganizer.so.1
#7  0x401086bc in KOTodoView::setNewPercentage ()
   from /opt/kde/lib/libkorganizer.so.1
#8  0x40109081 in KOTodoView::processDelayedNewPercentage ()
   from /opt/kde/lib/libkorganizer.so.1
#9  0x401028ff in KOTodoView::qt_invoke () from /opt/kde/lib/libkorganizer.so.1
#10 0x414ea5d3 in QObject::activate_signal ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#11 0x4180fe67 in QSignal::signal () from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#12 0x41502fb4 in QSignal::activate () from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#13 0x4150a3bc in QSingleShotTimer::event ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#14 0x4148f69d in QApplication::internalNotify ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#15 0x4148ec7d in QApplication::notify ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#16 0x4100a06b in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#17 0x4147ecce in QEventLoop::activateTimers ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#18 0x4143b377 in QEventLoop::processEvents ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#19 0x414a0c3b in QEventLoop::enterLoop ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#20 0x414a0ae4 in QEventLoop::exec () from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#21 0x4148f8f0 in QApplication::exec ()
   from /usr/lib/qt-3.3.6/lib/libqt-mt.so.3
#22 0x080509cf in main ()

----------------------------------------------

Expected Behavior:

1. multiple task could be deleted (unable to select multiple todo tasks for deletion).
Comment 1 Bram Schoenmakers 2006-10-28 20:36:01 UTC
*** Bug 135114 has been marked as a duplicate of this bug. ***
Comment 2 Reinhold Kainhofer 2006-11-02 19:17:04 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 3 Sergio Martins 2008-12-04 00:21:16 UTC
Bug still present in kde-4.1.3, i have a feeling this is better reproduced with a new user account, i tried several times with mine without success.

This backtrace is different from the above one.

#0  KOTodoModel::getModelIndex (this=0x81b42a0, node=0x0) at /usr/include/qt4/QtCore/qabstractitemmodel.h:361
361	    : r(arow), c(acolumn), p(adata), m(amodel) {}
(gdb) bt full
#0  KOTodoModel::getModelIndex (this=0x81b42a0, node=0x0) at /usr/include/qt4/QtCore/qabstractitemmodel.h:361
No locals.
#1  0xb79e6d4a in KOTodoModel::moveIfParentChanged (this=0x81b42a0, curNode=0x0, todo=0x81c8090, addParentIfMissing=false)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/views/todoview/kotodomodel.cpp:366
	miChanged = (QModelIndex &) @0xbf95dc6c: {r = -1213095948, c = 136085648, p = 0x257512, m = 0x257518}
	ttOldParent = (KOTodoModel::TodoTreeNode *) 0xb6a2b6d9
	newParent = <value optimized out>
#2  0xb79e87d2 in KOTodoModel::processChange (this=0x81b42a0, incidence=0x81c8090, action=1)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/views/todoview/kotodomodel.cpp:270
	ttTodo = <value optimized out>
	miChanged = {r = -1213095948, c = 136085648, p = 0x257512, m = 0x257518}
#3  0xb79eeb6e in KOTodoView::changeIncidenceDisplay (this=0x81d44b0, incidence=0x81c8090, action=1)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/views/todoview/kotodoview.cpp:322
No locals.
#4  0xb79f9ed8 in CalendarView::changeIncidenceDisplay (this=0x8130068, incidence=0x81c8090, action=1)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/calendarview.cpp:766
No locals.
#5  0xb7a018eb in CalendarView::incidenceChanged (this=0x8130068, oldIncidence=0x83c7308, newIncidence=0x81c8090, what=1)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/calendarview.cpp:708
	tmp = <value optimized out>
#6  0xb7a0754e in CalendarView::qt_metacall (this=0x8130068, _c=QMetaObject::InvokeMetaMethod, _id=119, _a=0xbf95df54)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer_build/korganizer/calendarview.moc:479
No locals.
#7  0xb7e732ab in QMetaObject::activate (sender=0x8085460, from_signal_index=<value optimized out>, to_signal_index=5, 
    argv=<value optimized out>) at kernel/qobject.cpp:3028
	c = <value optimized out>
	method = 119
	currentSender = {sender = 0x8085460, signal = 5, ref = 1}
	previousSender = (QObjectPrivate::Sender * const) 0x0
	connectionList = (const QList<QObjectPrivate::Connection> &) @0x817c68c: {{p = {static shared_null = {ref = {_q_value = 12582}, 
        alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x820c300}, d = 0x820c300}}
	count = 2
	signal = 5
	empty_argv = {0x0}
	locker = {{mtx = 0x8055334, val = 134566708}}
	currentThreadData = (QThreadData *) 0x8055300
	connectionLists = (QObjectConnectionListVector *) 0x8090188
#8  0xb7e73914 in QMetaObject::activate (sender=0x8085460, m=0xb7341e0c, local_signal_index=1, argv=0xbf95df54) at kernel/qobject.cpp:3098
	signal_index = 0
#9  0xb733f2f0 in KOrg::IncidenceChangerBase::incidenceChanged (this=0x8085460, _t1=0x83c7308, _t2=0x81c8090, _t3=1)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer_build/korganizer/interfaces/korganizer/incidencechangerbase.moc:99
	_a = {0x0, 0xbf95df74, 0xbf95df78, 0xbf95df7c}
#10 0xb7aa4f87 in IncidenceChanger::changeIncidence (this=0x8085460, oldinc=0x83c7308, newinc=0x81c8090, action=1, counter=false)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/incidencechanger.cpp:305
	tmp = <value optimized out>
	scheduler = {<KCal::IMIPScheduler> = {<KCal::Scheduler> = {_vptr.Scheduler = 0x1, mCalendar = 0xbf95dff8, mFormat = 0xb771b0cf, 
      d = 0x83d6130}, d = 0x83b9d40}, mEventMap = {{d = 0x83d6130, e = 0x83d6130}}}
	__PRETTY_FUNCTION__ = "virtual bool IncidenceChanger::changeIncidence(KCal::Incidence*, KCal::Incidence*, int, bool)"
#11 0xb79e5b16 in KOTodoModel::setData (this=0x81b42a0, index=@0xbf95e0dc, value=@0xbf95e1cc, role=10)
    at /var/tmp/portage/kde-base/korganizer-4.1.3/work/korganizer-4.1.3/korganizer/views/todoview/kotodomodel.cpp:833
	oldTodo = (class KCal::Todo *) 0x83c7308
	modified = <value optimized out>
	todo = (class KCal::Todo *) 0x81c8090
#12 0xb70cb3db in QSortFilterProxyModel::setData (this=0x81e00f0, index=@0xbf95e2b0, value=@0xbf95e1cc, role=10)
    at itemviews/qsortfilterproxymodel.cpp:1523
	source_index = {r = 17, c = 0, p = 0x81b53d0, m = 0x81b42a0}
#13 0xb70ee6dc in QStyledItemDelegate::editorEvent (this=0x81c18d0, event=0xbf95eba4, model=0x81e00f0, option=@0xbf95e230, 
    index=@0xbf95e2b0) at itemviews/qstyleditemdelegate.cpp:738
	flags = {i = 63}
	value = {d = {data = {c = 0 '\0', i = 0, u = 0, b = false, d = 5.2347170926878397e-270, ll = 578184442938392576, 
      ull = 578184442938392576, ptr = 0x0, shared = 0x0}, type = 2, is_shared = 0, is_null = 0}, static handler = 0xb731b9c0}
	widget = (const class QWidget *) 0x81e0200
	style = (class QStyle *) 0x8085ec8
#14 0xb704fdac in QAbstractItemViewPrivate::sendDelegateEvent (this=0x81f6b80, index=@0xbf95e4e8, event=0xbf95eba4)
    at itemviews/qabstractitemview.cpp:3693
	q = <value optimized out>
	buddy = {r = 17, c = 0, p = 0x81b1d70, m = 0x81e00f0}
	options = {<QStyleOptionViewItemV3> = {<QStyleOptionViewItemV2> = {<QStyleOptionViewItem> = {<QStyleOption> = {version = 4, 
          type = 12, state = {i = 65793}, direction = Qt::LeftToRight, rect = {x1 = 20, y1 = 115, x2 = 99, y2 = 137}, fontMetrics = {
            d = 0x8068c28}, palette = {static staticMetaObject = {d = {superdata = 0x0, stringdata = 0xb71bbb40 "QPalette", 
                data = 0xb71bbc80, extradata = 0x0}}, d = 0x8097128, current_group = 0, resolve_mask = 0}}, displayAlignment = {i = 129}, 
        decorationAlignment = {i = 132}, textElideMode = Qt::ElideRight, decorationPosition = QStyleOptionViewItem::Left, decorationSize = {
          wd = 16, ht = 16}, font = {static staticMetaObject = {d = {superdata = 0x0, stringdata = 0xb71bc800 "QFont", data = 0xb71bc8c0, 
              extradata = 0x0}}, d = 0x8068c28, resolve_mask = 0}, showDecorationSelected = false}, features = {i = 0}}, locale = {
      static staticMetaObject = {d = {superdata = 0x0, stringdata = 0xb7efade0 "QLocale", data = 0xb7efbda0, extradata = 0x0}}, {
        v = 0x100e3, p = {index = 227, numberOptions = 1}}}, widget = 0x81e0200}, index = {r = -1, c = -1, p = 0x0, m = 0x0}, 
  checkState = Qt::Unchecked, icon = {d = 0x0}, text = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 9065}, 
      alloc = 0, size = 0, data = 0xb7f4441a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, 
      array = {0}}, static shared_empty = {ref = {_q_value = 325}, alloc = 0, size = 0, data = 0xb7f4442e, clean = 0, simpletext = 0, 
      righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb7f44408, static codecForCStrings = 0x0}, 
  viewItemPosition = QStyleOptionViewItemV4::Invalid, backgroundBrush = {d = 0x8085cb8}}
	delegate = (class QAbstractItemDelegate *) 0x81c18d0
#15 0xb7050118 in QAbstractItemView::edit (this=0x81e0200, index=@0xbf95e4e8, trigger=QAbstractItemView::AnyKeyPressed, event=0xbf95eba4)
    at itemviews/qabstractitemview.cpp:2268
	w = (class QWidget *) 0x8480330
#16 0xb704c645 in QAbstractItemView::keyPressEvent (this=0x81e0200, event=0xbf95eba4) at itemviews/qabstractitemview.cpp:2076
	rect = {x1 = -1080695768, y1 = -1232413446, x2 = -1231609568, y2 = 137893464}
	command = {i = 136184320}
	d = (QAbstractItemViewPrivate * const) 0x81f6b80
	newCurrent = {d = 0x0}
	oldCurrent = {d = 0x8480330}
#17 0xb708c673 in QTreeView::keyPressEvent (this=0x81e0200, event=0xbf95eba4) at itemviews/qtreeview.cpp:1877
	current = {r = 17, c = 0, p = 0x81b1d70, m = 0x81e00f0}
#18 0xb6be04d2 in QWidget::event (this=0x81e0200, event=0xbf95eba4) at kernel/qwidget.cpp:7204
	res = <value optimized out>
#19 0xb6f13393 in QFrame::event (this=0x81e0200, e=0xbf95eba4) at widgets/qframe.cpp:657
No locals.
#20 0xb6fa8d9f in QAbstractScrollArea::event (this=0x81e0200, e=0xbf95eba4) at widgets/qabstractscrollarea.cpp:905
	d = (QAbstractScrollAreaPrivate * const) 0x81f6b80
#21 0xb70453fc in QAbstractItemView::event (this=0x81e0200, event=0xbf95eba4) at itemviews/qabstractitemview.cpp:1373
No locals.
#22 0xb6b87f7f in QApplicationPrivate::notify_helper (this=0x80651b0, receiver=0x81e0200, e=0xbf95eba4) at kernel/qapplication.cpp:3809
	consumed = <value optimized out>
#23 0xb6b8d413 in QApplication::notify (this=0xbf95f3b0, receiver=0x81e0200, e=0xbf95eba4) at kernel/qapplication.cpp:3453
	w = (class QWidget *) 0x81e0200
	pw = {o = 0x81e0200}
	res = 182
Comment 4 Christophe Marin 2009-07-05 13:10:38 UTC
*** Bug 198895 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Marin 2009-07-21 11:14:02 UTC
*** Bug 200970 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2009-08-11 16:21:59 UTC
*** Bug 203207 has been marked as a duplicate of this bug. ***
Comment 7 Allen Winter 2009-08-26 01:32:54 UTC
Let's close this.
The original report is for a very old version.
The crash related to the updated backtrace has been fixed in the meantime.