Bug 464641 - Kalendar crashes when editing CalDAV events
Summary: Kalendar crashes when editing CalDAV events
Status: RESOLVED FIXED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (show other bugs)
Version: 22.12.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-01-22 11:01 UTC by Marcool
Modified: 2023-04-24 11:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.04.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcool 2023-01-22 11:01:04 UTC
Application: kalendar (22.12.1)
 (Compiled from sources)
Qt Version: 5.15.8
Frameworks Version: 5.101.0
Operating System: Linux 6.1.5-arch2-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
I have several CalDAV calendars that are synced to Kalendar, form my nextcloud server. Whenever I attempt to edit an existing event in any way (modify title, modify reminders, modify anything), or to delete it, on confirmation of changes, the application crashes. Interestingly, when I relaunch it, the modifications have in fact been committed.

The crash can be reproduced every time.

-- Backtrace:
Application: Kalendar (kalendar), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fd7727a0040 in QDateTime::operator=(QDateTime const&) () at /usr/lib/libQt5Core.so.5
#5  0x000056458913949e in IncidenceOccurrenceModel::Occurrence::operator=(IncidenceOccurrenceModel::Occurrence const&) (this=0x56458c00e118) at /usr/src/debug/kalendar/kalendar-22.12.1/src/models/incidenceoccurrencemodel.h:89
#6  QVector<IncidenceOccurrenceModel::Occurrence>::replace(int, IncidenceOccurrenceModel::Occurrence const&) (t=..., i=<optimized out>, this=0x56458b6d6790) at /usr/include/qt/QtCore/qvector.h:491
#7  IncidenceOccurrenceModel::slotSourceDataChanged(QModelIndex const&, QModelIndex const&) (this=0x56458b6d6720, upperLeft=..., bottomRight=<optimized out>) at /usr/src/debug/kalendar/kalendar-22.12.1/src/models/incidenceoccurrencemodel.cpp:225
#8  0x00007fd7728bda91 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007fd772845da1 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () at /usr/lib/libQt5Core.so.5
#10 0x00007fd77286c406 in  () at /usr/lib/libQt5Core.so.5
#11 0x00007fd7728bdc40 in  () at /usr/lib/libQt5Core.so.5
#12 0x00007fd772845da1 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () at /usr/lib/libQt5Core.so.5
#13 0x00007fd77286c406 in  () at /usr/lib/libQt5Core.so.5
#14 0x00007fd7728bdc40 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007fd772845da1 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () at /usr/lib/libQt5Core.so.5
#16 0x00007fd77286c406 in  () at /usr/lib/libQt5Core.so.5
#17 0x00007fd7728bdc40 in  () at /usr/lib/libQt5Core.so.5
#18 0x00007fd772845da1 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () at /usr/lib/libQt5Core.so.5
#19 0x00007fd774b4769b in  () at /usr/lib/libKF5ItemModels.so.5
#20 0x00007fd7728bda91 in  () at /usr/lib/libQt5Core.so.5
#21 0x00007fd772845da1 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () at /usr/lib/libQt5Core.so.5
#22 0x00007fd774e8661c in Akonadi::EntityTreeModelPrivate::dataChanged(QModelIndex const&, QModelIndex const&) [clone .isra.0] (top=..., bottom=<optimized out>, this=<optimized out>) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/models/entitytreemodel_p.cpp:1618
#23 0x00007fd774e679eb in Akonadi::EntityTreeModelPrivate::monitoredItemChanged(Akonadi::Item const&, QSet<QByteArray> const&) (item=..., this=0x56458ab91240) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/models/entitytreemodel_p.cpp:1117
#24 Akonadi::EntityTreeModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/akonadi/build/src/core/KF5AkonadiCore_autogen/include/moc_entitytreemodel.cpp:227
#25 0x00007fd7728bdc40 in  () at /usr/lib/libQt5Core.so.5
#26 0x00007fd774de7d6c in Akonadi::Monitor::itemChanged(Akonadi::Item const&, QSet<QByteArray> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /usr/src/debug/akonadi/build/src/core/KF5AkonadiCore_autogen/include/moc_monitor.cpp:864
#27 0x00007fd774dfc4a1 in Akonadi::MonitorPrivate::emitToListeners<void (Akonadi::Monitor::*)(Akonadi::Item const&, QSet<QByteArray> const&), Akonadi::Item, QSet<QByteArray> >(void (Akonadi::Monitor::*)(Akonadi::Item const&, QSet<QByteArray> const&), Akonadi::Item, QSet<QByteArray>) (signal=<optimized out>, this=0x56458a8c65d0) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/monitor_p.h:395
#28 Akonadi::MonitorPrivate::emitItemsNotification(Akonadi::Protocol::ItemChangeNotification const&, QVector<Akonadi::Item> const&, Akonadi::Collection const&, Akonadi::Collection const&) (this=0x56458a8c65d0, msg=<optimized out>, items=..., collection=<optimized out>, collectionDest=<optimized out>) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/monitor_p.cpp:1056
#29 0x00007fd774df6b74 in Akonadi::MonitorPrivate::emitNotification(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) (this=0x56458a8c65d0, msg=<optimized out>) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/monitor_p.cpp:544
#30 0x00007fd774df5ca5 in Akonadi::MonitorPrivate::flushPipeline() (this=0x56458a8c65d0) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/monitor_p.cpp:969
#31 0x00007fd774df665e in Akonadi::MonitorPrivate::dataAvailable() (this=0x56458a8c65d0) at /usr/src/debug/akonadi/akonadi-22.12.1/src/core/monitor_p.cpp:978
#32 0x00007fd7728bda91 in  () at /usr/lib/libQt5Core.so.5
#33 0x00007fd7728bdc40 in  () at /usr/lib/libQt5Core.so.5
#34 0x00007fd7741a75ea in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib/libKF5CoreAddons.so.5
#35 0x00007fd7741ad84c in KJob::finishJob(bool) () at /usr/lib/libKF5CoreAddons.so.5
#36 0x00007fd7728b0bd0 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#37 0x00007fd773578b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#38 0x00007fd77288cf98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#39 0x00007fd77288daa3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#40 0x00007fd7728d3ea8 in  () at /usr/lib/libQt5Core.so.5
#41 0x00007fd770a6d87b in g_main_dispatch (context=0x7fd768005010) at ../glib/glib/gmain.c:3454
#42 g_main_context_dispatch (context=0x7fd768005010) at ../glib/glib/gmain.c:4172
#43 0x00007fd770ac4c89 in g_main_context_iterate.constprop.0 (context=0x7fd768005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#44 0x00007fd770a6c132 in g_main_context_iteration (context=0x7fd768005010, may_block=1) at ../glib/glib/gmain.c:4313
#45 0x00007fd7728d7c8c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#46 0x00007fd77288574c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#47 0x00007fd772890269 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#48 0x000056458910dee4 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kalendar/kalendar-22.12.1/src/main.cpp:188
[Inferior 1 (process 567619) detached]

The reporter indicates this bug may be a duplicate of or related to bug 464083, bug 464347, bug 464553, bug 463262.

Reported using DrKonqi
Comment 1 Claudio Cambra 2023-02-07 17:59:07 UTC
*** This bug has been marked as a duplicate of bug 464347 ***
Comment 2 stphnhmltn26 2023-03-01 16:46:18 UTC
I should also note that the event is a recurring event. I tell Kalendar to delete just the event that I right clicked on, and it crashes. When I bring Kalendar back up, the event is still there.
Comment 3 Carl Schwan 2023-04-24 11:58:04 UTC
This was fixed yesterday and the fix will be available with 23.04.1 which will be released this week