Bug 387923 - Calendar from DAVGroupware resource crashes KOrganizer
Summary: Calendar from DAVGroupware resource crashes KOrganizer
Status: RESOLVED DUPLICATE of bug 384075
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 388418 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-15 09:00 UTC by Metko
Modified: 2018-01-31 13:45 UTC (History)
3 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 Metko 2017-12-15 09:00:34 UTC
Application: korganizer (5.6.90 rc)

Qt Version: 5.9.3
Frameworks Version: 5.40.0
Operating System: Linux 4.4.92-31-default x86_64
Distribution: "openSUSE Leap 42.3"

-- Information about the crash:
- What I was doing when the application crashed:
Creating a DAVGroupware resource in KOrganizer and linking it to an owncloud calendar works fine as long the application runs. Upon restartimg KOrganizer though, it crashes. When removing the resource using akonadiconsole, KOrganizer starts normally, and the whole cycle can be repeated.

The crash can be reproduced every time.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f78c3958940 (LWP 4290))]

Thread 5 (Thread 0x7f7897fff700 (LWP 4296)):
#0  0x00007f78b56a6899 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f78b5664b51 in g_main_context_query () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f78b566527f in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f78b566542c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f78bfd3721b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f78bfce445b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f78bfb27e4a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#7  0x00007f78bfb2c70d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f78b71fa744 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f78bf221aad in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f789cee4700 (LWP 4293)):
#0  0x00007f78b7201a7c in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007f78b71fc7fb in pthread_mutex_lock () from /lib64/libpthread.so.0
#2  0x00007f78b6c69e4c in ?? () from /usr/X11R6/lib64/libGL.so.1
#3  0x00007f78b6c6ed81 in ?? () from /usr/X11R6/lib64/libGL.so.1
#4  0x00007f78b6c6f23b in ?? () from /usr/X11R6/lib64/libGL.so.1
#5  0x00007f78af58a0f1 in ?? () from /usr/lib64/tls/libnvidia-tls.so.384.98
#6  0x00007f78b56a5750 in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f78b5664e49 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f78b56652a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f78b566542c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f78bfd3721b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f78bfce445b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#12 0x00007f78bfb27e4a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#13 0x00007f78bfb2c70d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#14 0x00007f78b71fa744 in start_thread () from /lib64/libpthread.so.0
#15 0x00007f78bf221aad in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f789e578700 (LWP 4292)):
#0  0x00007f78bf21920d in poll () from /lib64/libc.so.6
#1  0x00007f78b5665314 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f78b566542c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f78bfd3721b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f78bfce445b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f78bfb27e4a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f78be7127c5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f78bfb2c70d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f78b71fa744 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f78bf221aad in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f78a53d6700 (LWP 4291)):
#0  0x00007f78bf21920d in poll () from /lib64/libc.so.6
#1  0x00007f78b51ff3e2 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f78b5200fcf in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f78a7d62a19 in QXcbEventReader::run() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f78bfb2c70d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f78b71fa744 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f78bf221aad in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f78c3958940 (LWP 4290)):
[KCrash Handler]
#6  0x00007f78bd869dd3 in greaterThan (node1=..., node2=...) at /usr/src/debug/eventviews-17.11.90/src/todo/incidencetreemodel.cpp:48
#7  0x00007f78bd872ec1 in std::__unguarded_partition<QList<QSharedPointer<PreNode> >::iterator, QSharedPointer<PreNode>, bool (*)(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)> (__comp=0x7f78bd869dd0 <greaterThan(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)>, __pivot=..., __last=..., __first=...) at /usr/include/c++/4.8/bits/stl_algo.h:2263
#8  std::__unguarded_partition_pivot<QList<QSharedPointer<PreNode> >::iterator, bool (*)(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)> (__comp=0x7f78bd869dd0 <greaterThan(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)>, __last=..., __first=...) at /usr/include/c++/4.8/bits/stl_algo.h:2296
#9  std::__introsort_loop<QList<QSharedPointer<PreNode> >::iterator, int, bool (*)(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)> (__first=..., __last=..., __depth_limit=11, __depth_limit@entry=13, __comp=__comp@entry=0x7f78bd869dd0 <greaterThan(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)>) at /usr/include/c++/4.8/bits/stl_algo.h:2337
#10 0x00007f78bd872fb4 in std::__introsort_loop<QList<QSharedPointer<PreNode> >::iterator, int, bool (*)(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)> (__first=..., __last=..., __depth_limit=13, __depth_limit@entry=14, __comp=__comp@entry=0x7f78bd869dd0 <greaterThan(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)>) at /usr/include/c++/4.8/bits/stl_algo.h:2338
#11 0x00007f78bd86e659 in std::sort<QList<QSharedPointer<PreNode> >::iterator, bool (*)(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)> (__comp=0x7f78bd869dd0 <greaterThan(QSharedPointer<PreNode> const&, QSharedPointer<PreNode> const&)>, __last=..., __first=...) at /usr/include/c++/4.8/bits/stl_algo.h:5498
#12 sortedPrenodes (nodes=...) at /usr/src/debug/eventviews-17.11.90/src/todo/incidencetreemodel.cpp:84
#13 IncidenceTreeModel::Private::onRowsInserted (this=0x18757e0, parent=..., begin=71, end=1340) at /usr/src/debug/eventviews-17.11.90/src/todo/incidencetreemodel.cpp:318
#14 0x00007f78bfd0f61f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#15 0x00007f78bfc902be in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#16 0x00007f78bfc97a2a in QAbstractItemModel::endInsertRows() () from /usr/lib64/libQt5Core.so.5
#17 0x00007f78bfcb2231 in QSortFilterProxyModelPrivate::insert_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) [clone .constprop.115] () from /usr/lib64/libQt5Core.so.5
#18 0x00007f78bfcb8b67 in QSortFilterProxyModelPrivate::_q_sourceRowsInserted(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5
#19 0x00007f78bfcb9659 in QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Core.so.5
#20 0x00007f78bfd0f61f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#21 0x00007f78bfc902be in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#22 0x00007f78bfc97a2a in QAbstractItemModel::endInsertRows() () from /usr/lib64/libQt5Core.so.5
#23 0x00007f78bfcb2231 in QSortFilterProxyModelPrivate::insert_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) [clone .constprop.115] () from /usr/lib64/libQt5Core.so.5
#24 0x00007f78bfcb8b67 in QSortFilterProxyModelPrivate::_q_sourceRowsInserted(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5
#25 0x00007f78bfcb9659 in QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Core.so.5
#26 0x00007f78bfd0f61f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#27 0x00007f78bfc902be in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#28 0x00007f78bfc97a2a in QAbstractItemModel::endInsertRows() () from /usr/lib64/libQt5Core.so.5
#29 0x00007f78bfcb2231 in QSortFilterProxyModelPrivate::insert_source_items(QVector<int>&, QVector<int>&, QVector<int> const&, QModelIndex const&, Qt::Orientation, bool) [clone .constprop.115] () from /usr/lib64/libQt5Core.so.5
#30 0x00007f78bfcb8b67 in QSortFilterProxyModelPrivate::_q_sourceRowsInserted(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5
#31 0x00007f78bfcb9659 in QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Core.so.5
#32 0x00007f78bfd0f61f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#33 0x00007f78bfc902be in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#34 0x00007f78bfc97a2a in QAbstractItemModel::endInsertRows() () from /usr/lib64/libQt5Core.so.5
#35 0x00007f78bbd594e9 in KSelectionProxyModelPrivate::insertSelectionIntoProxy (this=this@entry=0x154fd90, selection=...) at /usr/src/debug/kitemmodels-5.40.0/src/kselectionproxymodel.cpp:2002
#36 0x00007f78bbd5a329 in KSelectionProxyModelPrivate::selectionChanged (this=0x154fd90, _selected=..., _deselected=...) at /usr/src/debug/kitemmodels-5.40.0/src/kselectionproxymodel.cpp:1909
#37 0x00007f78bfd0f61f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#38 0x00007f78bfc9f3f7 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libQt5Core.so.5
#39 0x00007f78bfca20e0 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libQt5Core.so.5
#40 0x00007f78bfca300a in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib64/libQt5Core.so.5
#41 0x00007f78bbd39c82 in KCheckableProxyModel::select (this=this@entry=0x15124a0, selection=..., command=..., command@entry=...) at /usr/src/debug/kitemmodels-5.40.0/src/kcheckableproxymodel.cpp:132
#42 0x00007f78bbd3a290 in KCheckableProxyModel::setData (this=0x15124a0, index=..., value=..., role=<optimized out>) at /usr/src/debug/kitemmodels-5.40.0/src/kcheckableproxymodel.cpp:105
#43 0x00007f78bfcb0494 in QSortFilterProxyModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib64/libQt5Core.so.5
#44 0x00007f78c32eb8fd in ReparentingModel::setData (this=0x1947520, index=..., value=..., role=10) at /usr/src/debug/korganizer-17.11.90/src/views/collectionview/reparentingmodel.cpp:777
#45 0x00007f78bfcb0494 in QSortFilterProxyModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib64/libQt5Core.so.5
#46 0x00007f78bfcb0494 in QSortFilterProxyModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib64/libQt5Core.so.5
#47 0x00007f78c32e205e in (anonymous namespace)::CalendarDelegateModel::setData (this=0x1781040, index=..., value=..., role=10) at /usr/src/debug/korganizer-17.11.90/src/akonadicollectionview.cpp:478
#48 0x00007f78bfcb0494 in QSortFilterProxyModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib64/libQt5Core.so.5
#49 0x00007f78bfcb0494 in QSortFilterProxyModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib64/libQt5Core.so.5
#50 0x00007f78c0ef977c in QStyledItemDelegate::editorEvent(QEvent*, QAbstractItemModel*, QStyleOptionViewItem const&, QModelIndex const&) () from /usr/lib64/libQt5Widgets.so.5
#51 0x00007f78c32fa2a3 in StyledCalendarDelegate::editorEvent (this=0x187bcb0, event=0x7ffe8870bc20, model=0x18390d0, option=..., index=...) at /usr/src/debug/korganizer-17.11.90/src/views/collectionview/calendardelegate.cpp:262
#52 0x00007f78c0ed868c in QAbstractItemViewPrivate::sendDelegateEvent(QModelIndex const&, QEvent*) const () from /usr/lib64/libQt5Widgets.so.5
#53 0x00007f78c0edc7db in QAbstractItemView::edit(QModelIndex const&, QAbstractItemView::EditTrigger, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#54 0x00007f78c0ed88a2 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#55 0x00007f78c0f46a2b in QTreeView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#56 0x00007f78c0ce1617 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#57 0x00007f78c0d8482e in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#58 0x00007f78c0edfa6b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#59 0x00007f78c0f46350 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#60 0x00007f78bfce6031 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#61 0x00007f78c0ca5c95 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#62 0x00007f78c0cad0ac in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007f78bfce6165 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#64 0x00007f78c0cabf29 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5
#65 0x00007f78c0cf9d61 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#66 0x00007f78c0cfc2c3 in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#67 0x00007f78c0ca5cbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#68 0x00007f78c0caca10 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#69 0x00007f78bfce6165 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#70 0x00007f78c05387ed in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#71 0x00007f78c053a3a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#72 0x00007f78c051888b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#73 0x00007f78a7db4770 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#74 0x00007f78b5665134 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#75 0x00007f78b5665388 in ?? () from /usr/lib64/libglib-2.0.so.0
#76 0x00007f78b566542c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#77 0x00007f78bfd371fc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#78 0x00007f78bfce445b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#79 0x00007f78bfceca24 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#80 0x0000000000409229 in main (argc=1, argv=0x7ffe8870c688) at /usr/src/debug/korganizer-17.11.90/src/main.cpp:64

Reported using DrKonqi
Comment 1 Metko 2017-12-15 12:36:02 UTC
Solved the problem by exporting all calendar entries and importing them to a newly created (CalDav-owncloud-) calendar.
Comment 2 Metko 2017-12-18 08:40:38 UTC
(In reply to Metko from comment #1)
> Solved the problem by exporting all calendar entries and importing them to a
> newly created (CalDav-owncloud-) calendar.

Beware! Korganizer's import function does not import todos!
Comment 3 Laurent Montel 2017-12-18 09:26:34 UTC
Could you provide some testcase please ?
Comment 4 Metko 2017-12-18 11:58:45 UTC
I'd love to, but it's hard to imagine how. One would need a copy of my calendar in owncloud, which should be imported to an owncloud account in the test setup. Would you be able to do this? Some observations that may help instead:

1) As I wrote above, exporting and re-importing the calendar solved the crashing behavior. However, todos were not imported (due to a malfunction of the import function), so the calendar contents is not identical. Interestingly, if you look at the stack trace above, you see that thread 1 crashed upon displaying a todo.

2) Previously I found a temporary solution by running the current version of korganizer with the (old) 17.04 version of libKF5eventview. The most recent korganizer version is not compatible with that version though, which is why this solution stopped working (and which made me file this bug). But it's another indication that the bug most likely is in the code for viewing an event.
Comment 5 Metko 2017-12-28 15:23:20 UTC
Purged finished todos from the DAVGroupware resource and there are nor more crashes. I tried to bisect the list of finished todos to track down the item that caused the crash, but didn't succeed. Apparently the crash occurs only when the list is sufficiently long.
Comment 6 kde-bugs 2018-01-01 08:58:34 UTC
*** Bug 388418 has been marked as a duplicate of this bug. ***
Comment 7 kde-bugs 2018-01-01 09:00:54 UTC
I'm facing a similar effect (described in bug 387923). KOrganizer already crashes as soon as selecting the calendar.
Comment 8 Denis Kurz 2018-01-31 13:45:43 UTC

*** This bug has been marked as a duplicate of bug 384075 ***