https://bugs.kde.org/show_bug.cgi?id=465150
Bug ID: 465150 Summary: Kalendar crashes when deleting an already deleted event sync from Google Calendar Classification: Applications Product: kalendar Version: 22.12.1 Platform: Archlinux OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: claudio.cam...@kde.org Reporter: tuantran1632...@gmail.com CC: c...@carlschwan.eu Target Milestone: --- Application: kalendar (22.12.1) Qt Version: 5.15.8 Frameworks Version: 5.102.0 Operating System: Linux 6.1.8-zen1-1-zen x86_64 Windowing System: X11 Distribution: "Arch Linux" DrKonqi: 5.26.5 [KCrashBackend] -- Information about the crash: I have events on Google Calendar that repeat weekly but skip some weeks. Kalendar doesn't seem to pick up on this, still shows the events even in those skipped weeks. Upon attempting to delete those skipped events cause the crash occured. The crash can be reproduced every time. -- Backtrace: Application: Kalendar (kalendar), signal: Segmentation fault [KCrash Handler] #4 std::__atomic_base<int>::operator--() (this=0x24) at /usr/include/c++/12.2.0/bits/atomic_base.h:392 #5 QAtomicOps<int>::deref<int>(std::atomic<int>&) (_q_value=<error reading variable: Cannot access memory at address 0x24>) at /usr/include/qt/QtCore/qatomic_cxx11.h:289 #6 QBasicAtomicInteger<int>::deref() (this=0x24) at /usr/include/qt/QtCore/qbasicatomic.h:119 #7 QSharedPointer<KCalendarCore::Incidence>::deref(QtSharedPointer::ExternalRefCountData*) (dd=0x20) at /usr/include/qt/QtCore/qsharedpointer_impl.h:457 #8 QSharedPointer<KCalendarCore::Incidence>::deref(QtSharedPointer::ExternalRefCountData*) (dd=0x20, dd=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:454 #9 QSharedPointer<KCalendarCore::Incidence>::deref() (this=<synthetic pointer>, this=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:453 #10 QSharedPointer<KCalendarCore::Incidence>::~QSharedPointer() (this=<synthetic pointer>, this=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:310 #11 QSharedPointer<KCalendarCore::Incidence>::operator=(QSharedPointer<KCalendarCore::Incidence> const&) (other=..., this=0x56232bbcaa88) at /usr/include/qt/QtCore/qsharedpointer_impl.h:333 #12 IncidenceOccurrenceModel::Occurrence::operator=(IncidenceOccurrenceModel::Occurrence const&) (this=0x56232bbcaa78) at /usr/src/debug/kalendar/kalendar-22.12.1/src/models/incidenceoccurrencemodel.h:89 #13 QVector<IncidenceOccurrenceModel::Occurrence>::replace(int, IncidenceOccurrenceModel::Occurrence const&) (t=..., i=<optimized out>, this=0x56232cc226e0) at /usr/include/qt/QtCore/qvector.h:491 #14 IncidenceOccurrenceModel::slotSourceDataChanged(QModelIndex const&, QModelIndex const&) (this=0x56232cc22670, upperLeft=..., bottomRight=<optimized out>) at /usr/src/debug/kalendar/kalendar-22.12.1/src/models/incidenceoccurrencemodel.cpp:225 #15 0x00007fc8404be931 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffc5c6294f0, r=<optimized out>, this=0x56232b7b3740, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #16 doActivate<false>(QObject*, int, void**) (sender=0x56232803ff20, signal_index=3, argv=0x7ffc5c6294f0) at kernel/qobject.cpp:3923 #17 0x00007fc840446b91 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557 #18 0x00007fc84046d266 in QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x56232805cd00, source_top_left=<optimized out>, source_bottom_right=<optimized out>, roles=...) at itemmodels/qsortfilterproxymodel.cpp:1539 #19 0x00007fc8404beae0 in doActivate<false>(QObject*, int, void**) (sender=0x562328039240, signal_index=3, argv=0x7ffc5c6297e0) at kernel/qobject.cpp:3935 #20 0x00007fc840446b91 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557 #21 0x00007fc84046d266 in QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x56232803ab00, source_top_left=<optimized out>, source_bottom_right=<optimized out>, roles=...) at itemmodels/qsortfilterproxymodel.cpp:1539 #22 0x00007fc8404beae0 in doActivate<false>(QObject*, int, void**) (sender=0x562328039030, signal_index=3, argv=0x7ffc5c629ad0) at kernel/qobject.cpp:3935 #23 0x00007fc840446b91 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557 #24 0x00007fc84046d266 in QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x562328039c80, source_top_left=<optimized out>, source_bottom_right=<optimized out>, roles=...) at itemmodels/qsortfilterproxymodel.cpp:1539 #25 0x00007fc8404beae0 in doActivate<false>(QObject*, int, void**) (sender=0x5623280383c0, signal_index=3, argv=0x7ffc5c629dc0) at kernel/qobject.cpp:3935 #26 0x00007fc840446b91 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557 #27 0x00007fc8427b169b in () at /usr/lib/libKF5ItemModels.so.5 #28 0x00007fc8404be931 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffc5c62a020, r=<optimized out>, this=0x562328039710, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #29 doActivate<false>(QObject*, int, void**) (sender=0x562328043f50, signal_index=3, argv=0x7ffc5c62a020) at kernel/qobject.cpp:3923 #30 0x00007fc840446b91 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:557 #31 0x00007fc842af361c in () at /usr/lib/libKF5AkonadiCore.so.5 #32 0x00007fc842ad49eb in () at /usr/lib/libKF5AkonadiCore.so.5 #33 0x00007fc8404beae0 in doActivate<false>(QObject*, int, void**) (sender=0x562327fe1260, signal_index=3, argv=0x7ffc5c62a2c0) at kernel/qobject.cpp:3935 #34 0x00007fc842a54d6c in Akonadi::Monitor::itemChanged(Akonadi::Item const&, QSet<QByteArray> const&) () at /usr/lib/libKF5AkonadiCore.so.5 #35 0x00007fc842a694a1 in Akonadi::MonitorPrivate::emitItemsNotification(Akonadi::Protocol::ItemChangeNotification const&, QVector<Akonadi::Item> const&, Akonadi::Collection const&, Akonadi::Collection const&) () at /usr/lib/libKF5AkonadiCore.so.5 #36 0x00007fc842a63b74 in Akonadi::MonitorPrivate::emitNotification(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) () at /usr/lib/libKF5AkonadiCore.so.5 #37 0x00007fc842a62ca5 in Akonadi::MonitorPrivate::flushPipeline() () at /usr/lib/libKF5AkonadiCore.so.5 #38 0x00007fc842a6365e in Akonadi::MonitorPrivate::dataAvailable() () at /usr/lib/libKF5AkonadiCore.so.5 #39 0x00007fc8404be931 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffc5c62a5b0, r=<optimized out>, this=0x56232803bf20, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #40 doActivate<false>(QObject*, int, void**) (sender=0x7fc8340215b0, signal_index=3, argv=0x7ffc5c62a5b0) at kernel/qobject.cpp:3923 #41 0x00007fc8404beae0 in doActivate<false>(QObject*, int, void**) (sender=0x562329512f80, signal_index=6, argv=0x7ffc5c62a6e0) at kernel/qobject.cpp:3935 #42 0x00007fc841da742a in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib/libKF5CoreAddons.so.5 #43 0x00007fc841dad52c in KJob::finishJob(bool) () at /usr/lib/libKF5CoreAddons.so.5 #44 0x00007fc8404b1a70 in QObject::event(QEvent*) (this=0x562329512f80, e=0x562329558360) at kernel/qobject.cpp:1347 #45 0x00007fc841178b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x562329512f80, e=0x562329558360) at kernel/qapplication.cpp:3640 #46 0x00007fc84048de08 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x562329512f80, event=0x562329558360) at kernel/qcoreapplication.cpp:1064 #47 0x00007fc84048e913 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x56232775a0d0) at kernel/qcoreapplication.cpp:1821 #48 0x00007fc8404d4d48 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x56232781e8a0) at kernel/qeventdispatcher_glib.cpp:277 #49 0x00007fc83e66e82b in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #50 0x00007fc83e6c5cc9 in () at /usr/lib/libglib-2.0.so.0 #51 0x00007fc83e66d0e2 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #52 0x00007fc8404d8b2c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x56232781d610, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #53 0x00007fc8404865ac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffc5c62ab60, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #54 0x00007fc8404910d9 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #55 0x00007fc840939fe2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870 #56 0x00007fc841176f2a in QApplication::exec() () at kernel/qapplication.cpp:2832 #57 0x00005623263bcee4 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 1705926) detached] Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.