Bug 462889

Summary: Crashes when editing an event.
Product: [Applications] korganizer Reporter: Frixur <frixur>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: winter
Priority: NOR Keywords: drkonqi
Version: 5.21.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frixur 2022-12-11 08:01:37 UTC
Application: korganizer (5.21.3 (22.08.3))

Qt Version: 5.15.7
Frameworks Version: 5.100.0
Operating System: Linux 6.0.12-300.fc37.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 37 (Workstation Edition)
DrKonqi: 5.26.4 [KCrashBackend]

-- Information about the crash:
The drop occurs when the end date of the event changes.

The sequence of actions:

1) View -> Event List
2) New event
3) 
Calendar: Personal Calendar
Summary: ABC
Start: 12.12.2022 11.00 (Start time should be the current day. But the time has not come yet)
End: 12.12.2022 12.00
Genearal: Some text

4) Switch tab Reminder
5) Add default reninder: 5 minutes before start  (+Add)
6) Switch general tab
7) Click OK
8) In the list of events, double-click on the created event.
9) Change end date year. 12.12.2026 12.00 (You need to add a couple of years to the end date of the event.)
10) Click OK and crashes

The crash can be reproduced sometimes.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Aborted

[KCrash Handler]
#4  0x00007f2cedeafe7c in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007f2cede5faa6 in raise () from /lib64/libc.so.6
#6  0x00007f2cede497fc in abort () from /lib64/libc.so.6
#7  0x00007f2cee0a2b97 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /lib64/libstdc++.so.6
#8  0x00007f2cee0ae48c in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6
#9  0x00007f2cee0ae4f7 in std::terminate() () from /lib64/libstdc++.so.6
#10 0x00007f2cee0ae758 in __cxa_throw () from /lib64/libstdc++.so.6
#11 0x00007f2ceff16eea in Akonadi::Item::throwPayloadException(int, int) const [clone .cold] () from /lib64/libKF5AkonadiCore.so.5
#12 0x00007f2ceff6ae17 in Akonadi::DefaultItemSerializerPlugin::serialize(Akonadi::Item const&, QByteArray const&, QIODevice&, int&) () from /lib64/libKF5AkonadiCore.so.5
#13 0x00007f2ceff6ebd3 in Akonadi::ItemSerializerPlugin::apply(Akonadi::Item&, Akonadi::Item const&) () from /lib64/libKF5AkonadiCore.so.5
#14 0x00007f2ceff69011 in Akonadi::Item::apply(Akonadi::Item const&) () from /lib64/libKF5AkonadiCore.so.5
#15 0x00007f2ceff69269 in Akonadi::ItemMonitorPrivate::slotItemChanged(Akonadi::Item const&, QSet<QByteArray> const&) () from /lib64/libKF5AkonadiCore.so.5
#16 0x00007f2cee6dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#17 0x00007f2ceff6b8ab in Akonadi::Monitor::itemChanged(Akonadi::Item const&, QSet<QByteArray> const&) () from /lib64/libKF5AkonadiCore.so.5
#18 0x00007f2ceff82516 in Akonadi::MonitorPrivate::emitItemsNotification(Akonadi::Protocol::ItemChangeNotification const&, QVector<Akonadi::Item> const&, Akonadi::Collection const&, Akonadi::Collection const&) () from /lib64/libKF5AkonadiCore.so.5
#19 0x00007f2ceff7a8ba in Akonadi::MonitorPrivate::emitNotification(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) () from /lib64/libKF5AkonadiCore.so.5
#20 0x00007f2ceff7df5c in Akonadi::MonitorPrivate::dispatchNotifications() () from /lib64/libKF5AkonadiCore.so.5
#21 0x00007f2ceff79385 in Akonadi::MonitorPrivate::slotNotify(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) () from /lib64/libKF5AkonadiCore.so.5
#22 0x00007f2ceff7600e in Akonadi::MonitorPrivate::handleCommands() () from /lib64/libKF5AkonadiCore.so.5
#23 0x00007f2cee6d2ec4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#24 0x00007f2cef3aed12 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#25 0x00007f2cee6a8278 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#26 0x00007f2cee6ab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#27 0x00007f2cee6f9897 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#28 0x00007f2cec1d8cbf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#29 0x00007f2cec22e598 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#30 0x00007f2cec1d5f40 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#31 0x00007f2cee6f938a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#32 0x00007f2cee6a6cca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#33 0x00007f2cee6aed92 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#34 0x00005572af64efba in main ()
[Inferior 1 (process 14762) detached]

Reported using DrKonqi
Comment 1 Frixur 2022-12-11 08:18:27 UTC
I also checked on version 5.22.40. It also crashes.
Comment 2 Allen Winter 2025-01-30 17:16:28 UTC
2 years later...

I tried to reproduce the crash and failed.

let's close it.  re-open if it still happens please