Bug 443214

Summary: KOrganizer segmentation fault when creating new caldendar event with multiple reminders
Product: [Applications] korganizer Reporter: James Beddek <telans>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bugrprt21882, dvratil, gjditchfield
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description James Beddek 2021-10-02 02:28:56 UTC
Application: korganizer (5.18.1 (21.08.1))
 (Compiled from sources)
Qt Version: 5.15.2
Frameworks Version: 5.86.0
Operating System: Linux 5.14.6-tkg-cfs-llvm x86_64
Windowing System: X11
Distribution: Gentoo/Linux
DrKonqi: 5.22.90 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
1. Double-clicked an empty timeslot to create a new event.
2. Add multiple meeting reminders (5, 2, 1 days before start) etc.
3. Click to modify the reminder, close without changing anything.
4. Click "Apply". Notice the "Okay" button goes dull and application crashes.

I cannot reproduce this every single time, it seems to be a 10% chance at hitting this for me.
I believe I've generated a semi-useful trace report but I still see a few unknown symbols in there so I'll try get that updated.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault

[KCrash Handler]
#4  QVector<int>::size (this=0x0) at ../../include/QtCore/../../../qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/tools/qvector.h:88
#5  QSortFilterProxyModelPrivate::proxy_to_source (this=0x25bdf40, proxy_index=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qsortfilterproxymodel.cpp:572
#6  QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qsortfilterproxymodel.cpp:3171
#7  0x00007f4b9cd4e504 in QSortFilterProxyModel::flags (this=0x25bdf40, index=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qsortfilterproxymodel.cpp:2548
#8  0x00007f4b9cd3380b in indexesFromRange<QVector<QPersistentModelIndex> > (range=..., result=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qitemselectionmodel.cpp:352
#9  qSelectionIndexes<QVector<QPersistentModelIndex> > (selection=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qitemselectionmodel.cpp:365
#10 0x00007f4b9cd33251 in QItemSelectionModelPrivate::_q_layoutAboutToBeChanged (this=0x29c0f20, hint=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qitemselectionmodel.cpp:922
#11 0x00007f4b9cda1dae in doActivate<false> (sender=0x1a921f0, signal_index=9, argv=0x7ffe481f0ca0) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#12 0x00007f4b9cd2b796 in QAbstractItemModel::layoutAboutToBeChanged (this=0x0, _t1=..., _t2=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:578
#13 0x00007f4b9cd4b9ec in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x25bdf40, sourceParents=..., hint=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1635
#14 0x00007f4b9cda1dae in doActivate<false> (sender=0x29bbf70, signal_index=9, argv=0x7ffe481f0e00) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#15 0x00007f4b9cd2b796 in QAbstractItemModel::layoutAboutToBeChanged (this=0x0, _t1=..., _t2=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:578
#16 0x00007f4b9c5591d4 in IncidenceEditorNG::AttendeeTableModel::setAttendees (this=0x29bbf70, attendees=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/attendeetablemodel.cpp:212
#17 0x00007f4b9c58b700 in IncidenceEditorNG::IncidenceAttendee::load (this=0x29bb810, incidence=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/incidenceattendee.cpp:186
#18 0x00007f4b9c576225 in IncidenceEditorNG::CombinedIncidenceEditor::load (this=0x2507e30, incidence=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/combinedincidenceeditor.cpp:83
#19 0x00007f4b9c5f8f73 in IncidenceEditorNG::IncidenceDialogPrivate::handleItemSaveFinish (this=0x24d3a50, saveAction=IncidenceEditorNG::EditorItemManager::Modify) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/incidencedialog.cpp:478
#20 0x00007f4b9c5fc305 in IncidenceEditorNG::IncidenceDialog::qt_static_metacall (_o=0x2104340, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7ffe481f1390) at src/KF5IncidenceEditor_autogen/include/moc_incidencedialog.cpp:156
#21 0x00007f4b9cda1dae in doActivate<false> (sender=0x1cbd930, signal_index=3, argv=0x7ffe481f1390) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#22 0x00007f4b9c56fd92 in IncidenceEditorNG::EditorItemManager::itemSaveFinished (this=0x1cbd930, _t1=IncidenceEditorNG::EditorItemManager::Modify) at src/KF5IncidenceEditor_autogen/include/moc_editoritemmanager.cpp:267
#23 0x00007f4b9c570298 in IncidenceEditorNG::ItemEditorPrivate::onModifyFinished (this=0x1caf000, item=..., resultCode=Akonadi::IncidenceChanger::ResultCodeSuccess, errorString=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/editoritemmanager.cpp:170
#24 0x00007f4b9c571b76 in IncidenceEditorNG::EditorItemManager::qt_static_metacall (_o=0x1cbd930, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7ffe481f1650) at src/KF5IncidenceEditor_autogen/include/moc_editoritemmanager.cpp:133
#25 0x00007f4b9cda1dae in doActivate<false> (sender=0x16c9e70, signal_index=4, argv=0x7ffe481f1650) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#26 0x00007f4b9c1559f1 in ?? () from /usr/lib64/libKF5AkonadiCalendar.so.5
#27 0x00007f4b9cd966fa in QObject::event (this=0x16c9e70, e=0x24b01a0) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:1314
#28 0x00007f4b9d729720 in QApplicationPrivate::notify_helper (this=<optimized out>, this@entry=0x161e450, receiver=receiver@entry=0x16c9e70, e=e@entry=0x24b01a0) at /usr/src/debug/dev-qt/qtwidgets-5.15.2-r11/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/widgets/kernel/qapplication.cpp:3632
#29 0x00007f4b9d72aa9f in QApplication::notify (this=<optimized out>, receiver=0x16c9e70, e=0x24b01a0) at /usr/src/debug/dev-qt/qtwidgets-5.15.2-r11/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/widgets/kernel/qapplication.cpp:2971
#30 0x00007f4b9cd6e68f in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x16c9e70, event=<optimized out>, event@entry=0x24b01a0) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1064
#31 0x00007f4b9cd6f587 in QCoreApplication::sendEvent (receiver=0x16c9e70, event=0x24b01a0) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1462
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=<optimized out>, event_type=0, data=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1821
#33 0x00007f4b9cdc0c03 in postEventSourceDispatch (s=0x166af40) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#34 0x00007f4b9a377e80 in g_main_dispatch (context=<optimized out>) at ../glib-2.70.0/glib/gmain.c:3381
#35 g_main_context_dispatch (context=context@entry=0x7f4b90005000) at ../glib-2.70.0/glib/gmain.c:4099
#36 0x00007f4b9a3781d2 in g_main_context_iterate (context=context@entry=0x7f4b90005000, block=<optimized out>, block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.70.0/glib/gmain.c:4175
#37 0x00007f4b9a378280 in g_main_context_iteration (context=0x7f4b90005000, may_block=1) at ../glib-2.70.0/glib/gmain.c:4240
#38 0x00007f4b9cdc06e8 in QEventDispatcherGlib::processEvents (this=0x166dbc0, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#39 0x00007f4b9cd6adf6 in QEventLoop::processEvents (this=0x7ffe481f1c60, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventloop.cpp:139
#40 QEventLoop::exec (this=0x7ffe481f1c60, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventloop.cpp:232
#41 0x00007f4b9cd6ec31 in QCoreApplication::exec () at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1375
#42 0x000000000020e8df in main (argc=1, argv=0x7ffe481f1e68) at /usr/src/debug/kde-apps/korganizer-21.08.1/korganizer-21.08.1/src/main.cpp:63
[Inferior 1 (process 1148316) detached]

Possible duplicates by query: bug 440125, bug 434282, bug 428888, bug 413978, bug 412439.

Reported using DrKonqi
Comment 1 James Beddek 2021-10-02 02:35:15 UTC
Note: Application and all libraries are compiled with Clang v12.0.1 with flags "-march=znver2 -O3 -glldb -pipe"

Updated trace:

Application: KOrganizer (korganizer), signal: Segmentation fault

[KCrash Handler]
#4  QSortFilterProxyModel::parent (this=0x2200af0, child=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qsortfilterproxymodel.cpp:2219
#5  0x00007fef10e0274e in QModelIndex::parent (this=0x7ffed5f2ecd0) at .moc/../../../../qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qabstractitemmodel.h:443
#6  QPersistentModelIndex::parent (this=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qabstractitemmodel.cpp:378
#7  0x00007fef10e14ee8 in QItemSelectionRange::parent (this=0x7ffed5f2ed38) at .moc/../../../../qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qitemselectionmodel.h:88
#8  QItemSelectionModelPrivate::_q_layoutAboutToBeChanged (this=0x3271cb0, hint=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qitemselectionmodel.cpp:897
#9  0x00007fef10e83dae in doActivate<false> (sender=0x2200af0, signal_index=9, argv=0x7ffed5f2ee50) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#10 0x00007fef10e0d796 in QAbstractItemModel::layoutAboutToBeChanged (this=0x7ffed5f2ece8, _t1=..., _t2=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:578
#11 0x00007fef10e2d9ec in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x2e6e760, sourceParents=..., hint=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1635
#12 0x00007fef10e83dae in doActivate<false> (sender=0x326cda0, signal_index=9, argv=0x7ffed5f2efb0) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#13 0x00007fef10e0d796 in QAbstractItemModel::layoutAboutToBeChanged (this=0x7ffed5f2ece8, _t1=..., _t2=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:578
#14 0x00007fef1063b1d4 in IncidenceEditorNG::AttendeeTableModel::setAttendees (this=0x326cda0, attendees=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/attendeetablemodel.cpp:212
#15 0x00007fef1066d700 in IncidenceEditorNG::IncidenceAttendee::load (this=0x326a950, incidence=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/incidenceattendee.cpp:186
#16 0x00007fef10658225 in IncidenceEditorNG::CombinedIncidenceEditor::load (this=0x2dc02c0, incidence=...) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/combinedincidenceeditor.cpp:83
#17 0x00007fef106daf73 in IncidenceEditorNG::IncidenceDialogPrivate::handleItemSaveFinish (this=0x2dbd180, saveAction=IncidenceEditorNG::EditorItemManager::Create) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/incidencedialog.cpp:478
#18 0x00007fef106de305 in IncidenceEditorNG::IncidenceDialog::qt_static_metacall (_o=0x2dc0ca0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7ffed5f2f540) at src/KF5IncidenceEditor_autogen/include/moc_incidencedialog.cpp:156
#19 0x00007fef10e83dae in doActivate<false> (sender=0x2daab30, signal_index=3, argv=0x7ffed5f2f540) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#20 0x00007fef10651d92 in IncidenceEditorNG::EditorItemManager::itemSaveFinished (this=0x2daab30, _t1=IncidenceEditorNG::EditorItemManager::Create) at src/KF5IncidenceEditor_autogen/include/moc_editoritemmanager.cpp:267
#21 0x00007fef10651c22 in IncidenceEditorNG::ItemEditorPrivate::itemFetchResult (this=0x2dbcf30, job=0x2f264d0) at /usr/src/debug/kde-apps/incidenceeditor-21.08.1/incidenceeditor-21.08.1/src/editoritemmanager.cpp:123
#22 0x00007fef10653b23 in IncidenceEditorNG::EditorItemManager::qt_static_metacall (_o=0x2daab30, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7ffed5f2f780) at src/KF5IncidenceEditor_autogen/include/moc_editoritemmanager.cpp:131
#23 0x00007fef10e83dae in doActivate<false> (sender=0x2f264d0, signal_index=6, argv=0x7ffed5f2f780) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:3898
#24 0x00007fef11d9ea63 in KJob::result (this=0x2f264d0, _t1=0x2f264d0, _t2=...) at src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:631
#25 0x00007fef11d9e9eb in KJob::finishJob (this=0x2f264d0, emitResult=true) at /usr/src/debug/kde-frameworks/kcoreaddons-5.86.0/kcoreaddons-5.86.0/src/lib/jobs/kjob.cpp:97
#26 0x00007fef11d9f801 in KJob::emitResult (this=0x2f264d0) at /usr/src/debug/kde-frameworks/kcoreaddons-5.86.0/kcoreaddons-5.86.0/src/lib/jobs/kjob.cpp:310
#27 0x00007fef10e786fa in QObject::event (this=0x2f264d0, e=0x7feef807e910) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qobject.cpp:1314
#28 0x00007fef1180b720 in QApplicationPrivate::notify_helper (this=<optimized out>, this@entry=0x1f51450, receiver=receiver@entry=0x2f264d0, e=e@entry=0x7feef807e910) at /usr/src/debug/dev-qt/qtwidgets-5.15.2-r11/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/widgets/kernel/qapplication.cpp:3632
#29 0x00007fef1180ca9f in QApplication::notify (this=<optimized out>, receiver=0x2f264d0, e=0x7feef807e910) at /usr/src/debug/dev-qt/qtwidgets-5.15.2-r11/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/widgets/kernel/qapplication.cpp:2971
#30 0x00007fef10e5068f in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x2f264d0, event=<optimized out>, event@entry=0x7feef807e910) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1064
#31 0x00007fef10e51587 in QCoreApplication::sendEvent (receiver=0x2f264d0, event=0x7feef807e910) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1462
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=<optimized out>, event_type=0, data=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1821
#33 0x00007fef10ea2c03 in postEventSourceDispatch (s=0x1f964e0) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#34 0x00007fef0e404e80 in g_main_dispatch (context=<optimized out>) at ../glib-2.70.0/glib/gmain.c:3381
#35 g_main_context_dispatch (context=context@entry=0x7fef04005000) at ../glib-2.70.0/glib/gmain.c:4099
#36 0x00007fef0e4051d2 in g_main_context_iterate (context=context@entry=0x7fef04005000, block=<optimized out>, block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.70.0/glib/gmain.c:4175
#37 0x00007fef0e405280 in g_main_context_iteration (context=0x7fef04005000, may_block=1) at ../glib-2.70.0/glib/gmain.c:4240
#38 0x00007fef10ea26e8 in QEventDispatcherGlib::processEvents (this=0x1fa0bb0, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#39 0x00007fef10e4cdf6 in QEventLoop::processEvents (this=0x7ffed5f2fdf0, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventloop.cpp:139
#40 QEventLoop::exec (this=0x7ffed5f2fdf0, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qeventloop.cpp:232
#41 0x00007fef10e50c31 in QCoreApplication::exec () at /usr/src/debug/dev-qt/qtcore-5.15.2-r10/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619/src/corelib/kernel/qcoreapplication.cpp:1375
#42 0x000000000020e8df in main (argc=1, argv=0x7ffed5f2fff8) at /usr/src/debug/kde-apps/korganizer-21.08.1/korganizer-21.08.1/src/main.cpp:63
[Inferior 1 (process 1152806) detached]
Comment 2 gjditchfield 2021-10-25 20:59:18 UTC
This is hard to reproduce, of course.  I have a few questions.

- Step 3:  do you close by clicking OK, or Cancel, or ... ?
- "10% chance":  is that 10% of event creations, or of reminder modifications?
- The crash seems to start with a call to IncidenceEditorNG::AttendeeTableModel::setAttendees.  Did your events have any attendees?

(Note: bug 428888 and bug 413978 also have setAttendees in their stack traces.)
Comment 3 James Beddek 2021-10-27 06:46:41 UTC
> - Step 3:  do you close by clicking OK, or Cancel, or ... ?

I thought it was through OK, but I just replicated it with "Cancel" so I assume it's that

> - "10% chance":  is that 10% of event creations, or of reminder modifications?

I should have clarified, a 10% chance of the application crashing, although the event is still created with all reminders in place.

> - The crash seems to start with a call to IncidenceEditorNG::AttendeeTableModel::setAttendees.  Did your events have any attendees?

I haven't added any attendees, however this crash seems very reproducible just by clicking on the "Status" and "Response" selections for a blank attendee without changing anything. Perhaps try this before adding the reminders?

Cheers
Comment 4 gjditchfield 2021-10-27 15:53:40 UTC
(In reply to James Beddek from comment #3)
> ... however this crash seems very reproducible
> just by clicking on the "Status" and "Response" selections for a blank
> attendee without changing anything. Perhaps try this before adding the
> reminders?

Crash on my first try.  Progress, of a sort!
Comment 5 gjditchfield 2021-12-02 16:23:40 UTC
Bug 446378 is another setAttendees() crash.
Comment 6 Don Curtis 2022-11-15 16:28:47 UTC
Created attachment 153767 [details]
New crash information added by DrKonqi

kontact (5.19.3 (21.12.3)) using Qt 5.15.2

- What I was doing when the application crashed:

Adding a meeting member as Leader of the meeting.
 * Possibly the instability is affected by IncidenceEditorNG::AttendeeTableModel::setAttendees

-- Backtrace (Reduced):
#6  0x00007f9e372769c2 in QSortFilterProxyModel::parent(QModelIndex const&) const (this=0x558d9332c3b0, child=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:2219
#7  0x00007f9e3724877f in QModelIndex::parent() const (this=<optimized out>) at itemmodels/qabstractitemmodel.h:443
#8  QPersistentModelIndex::parent() const (this=this@entry=0x7ffc19c9b0d0) at itemmodels/qabstractitemmodel.cpp:378
#9  0x00007f9e3725833f in mergeIndexes(QVector<QPersistentModelIndex> const&) (indexes=...) at itemmodels/qitemselectionmodel.cpp:980
#10 0x00007f9e3725e2a8 in QItemSelectionModelPrivate::_q_layoutChanged(QList<QPersistentModelIndex> const&, QAbstractItemModel::LayoutChangeHint) (this=0x558d9b006a70, hint=<optimized out>) at itemmodels/qitemselectionmodel.cpp:1088
Comment 7 Daniel Vrátil 2023-10-14 08:57:29 UTC

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