Bug 462169

Summary: KOrganizer crashes right after running
Product: [Applications] korganizer Reporter: coolvita4
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: f.alexander.wilms, jpalecek, lauriej, sjlopezb, teles.ltds, wo_kdebugs
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
Screenshot of KOrganizer right before crash
New crash information added by DrKonqi

Description coolvita4 2022-11-23 13:51:40 UTC
Application: korganizer (5.21.1 (22.08.1))

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.19.0-23-generic x86_64
Windowing System: Wayland
Distribution: Ubuntu 22.10
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
The app crashes few seconds after starting. No changes were made in the app settings, I tried to use it for the first time.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f3bbf201004 in KJob::setError(int) () from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#5  0x00007f3bbf515f6c in Akonadi::SessionPrivate::serverStateChanged(Akonadi::ServerManager::State) () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
#6  0x00007f3bbdef36ff in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f3bbf510c45 in Akonadi::ServerManager::stateChanged(Akonadi::ServerManager::State) () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
#8  0x00007f3bbf512c94 in ?? () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
#9  0x00007f3bbdee7b30 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f3bbeb6bf32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f3bbdebae38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f3bbdebdeb1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f3bbdf15427 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f3bbb8734f9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f3bbb8c8228 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f3bbb870cb0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f3bbdf14aea in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f3bbdeb97cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f3bbdec1c2a in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x000056483c29f149 in ?? ()
#21 0x00007f3bbd423510 in __libc_start_call_main (main=main@entry=0x56483c29eb90, argc=argc@entry=1, argv=argv@entry=0x7ffe3894d008) at ../sysdeps/nptl/libc_start_call_main.h:58
#22 0x00007f3bbd4235c9 in __libc_start_main_impl (main=0x56483c29eb90, argc=1, argv=0x7ffe3894d008, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe3894cff8) at ../csu/libc-start.c:381
#23 0x000056483c29f5a5 in ?? ()
[Inferior 1 (process 4146) detached]

The reporter indicates this bug may be a duplicate of or related to bug 460653.

Reported using DrKonqi
Comment 1 laurie jarden 2022-12-03 02:56:35 UTC
Created attachment 154256 [details]
New crash information added by DrKonqi

korganizer (5.21.3 (22.08.3)) using Qt 5.15.7

This crash occured on login, after reboot following the latest tumbleweed update notification.

-- Backtrace (Reduced):
#4  0x00007f559b12a7b0 in KJob::setError(int) () from /lib64/libKF5CoreAddons.so.5
#5  0x00007f559b55e744 in Akonadi::SessionPrivate::serverStateChanged(Akonadi::ServerManager::State) () from /lib64/libKF5AkonadiCore.so.5
[...]
#7  0x00007f559b555b41 in Akonadi::ServerManager::stateChanged(Akonadi::ServerManager::State) () from /lib64/libKF5AkonadiCore.so.5
[...]
#9  0x00007f5599d07c40 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#10 0x00007f559a9a53fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
Comment 2 Teles 2023-01-04 17:51:53 UTC
Created attachment 155028 [details]
New crash information added by DrKonqi

korganizer (5.22.0 (22.12.0)) using Qt 5.15.7

KOrganizer always crashes at start.

-- Backtrace (Reduced):
#6  KJob::setError (this=this@entry=0x0, errorCode=errorCode@entry=100) at /usr/src/debug/kcoreaddons/kcoreaddons-5.101.0/src/lib/jobs/kjob.cpp:254
#7  0x00007fddb97e046d in Akonadi::SessionPrivate::serverStateChanged (this=<optimized out>, state=<optimized out>) at /usr/src/debug/akonadi/akonadi-22.12.0/src/core/session.cpp:297
#8  0x00007fddb80bda51 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false> (sender=0x563e05830830, signal_index=5, argv=0x7ffd3b767ac0) at kernel/qobject.cpp:3919
#10 0x00007fddb97d6fd6 in Akonadi::ServerManager::stateChanged (this=<optimized out>, _t1=<optimized out>, _t1@entry=Akonadi::ServerManager::Broken) at /usr/src/debug/akonadi/build/src/core/KF5AkonadiCore_autogen/include/moc_servermanager.cpp:180
Comment 3 Santiago Jose Lopez Borrazas 2023-01-26 15:32:22 UTC
Created attachment 155669 [details]
New crash information added by DrKonqi

korganizer (5.22.0 (22.12.0)) using Qt 5.15.8

Crash only aperture aplication.

-- Backtrace (Reduced):
#4  0x00007fab2d294560 in KJob::setError(int) () from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#5  0x00007fab2d716da4 in Akonadi::SessionPrivate::serverStateChanged(Akonadi::ServerManager::State) () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
[...]
#7  0x00007fab2d711ce1 in Akonadi::ServerManager::stateChanged(Akonadi::ServerManager::State) () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
[...]
#9  0x00007fab2bedd6f0 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fab2cb62fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
Comment 4 Alexander Wilms 2023-02-02 01:43:25 UTC
Created attachment 155866 [details]
Screenshot of KOrganizer right before crash
Comment 5 Carl Schwan 2023-04-22 05:00:21 UTC
Git commit eca4fdbdf328883ae564b568c9ba13697cc90c4a by Carl Schwan, on behalf of Jiří Paleček.
Committed on 22/04/2023 at 04:54.
Pushed by carlschwan into branch 'master'.

Fix wrong for clause in Akonadi::Session
Related: bug 468343, bug 465245, bug 464275, bug 462213, bug 461131, bug 460653, bug 460586, bug 458497, bug 458315

M  +6    -3    src/core/session.cpp

https://invent.kde.org/pim/akonadi/commit/eca4fdbdf328883ae564b568c9ba13697cc90c4a
Comment 6 Carl Schwan 2023-04-22 05:05:47 UTC
Git commit 0ab418bacdaf8322771e41452a87d062a2449869 by Carl Schwan, on behalf of Jiří Paleček.
Committed on 22/04/2023 at 05:05.
Pushed by carlschwan into branch 'release/23.04'.

Fix wrong for clause in Akonadi::Session
Related: bug 468343, bug 465245, bug 464275, bug 462213, bug 461131, bug 460653, bug 460586, bug 458497, bug 458315
(cherry picked from commit eca4fdbdf328883ae564b568c9ba13697cc90c4a)

M  +6    -3    src/core/session.cpp

https://invent.kde.org/pim/akonadi/commit/0ab418bacdaf8322771e41452a87d062a2449869
Comment 7 Justin 2025-02-23 17:53:39 UTC
Created attachment 178777 [details]
New crash information added by DrKonqi

korganizer (5.22.3 (22.12.3)) using Qt 5.15.8

Firefox ESR 5 tabs open, Dophin 6 tabs open, Thuderbird, Chromium (1 tab) gwenview, kwrite, konsole (3 tabs), okular (2 docs). First time(s) opening Korganizer on a reasonably fresh install of Debian12 (~6 months, I belive).

-- Backtrace (Reduced):
#4  0x00007fd510379500 in KJob::setError(int) () from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#5  0x00007fd510716da4 in Akonadi::SessionPrivate::serverStateChanged(Akonadi::ServerManager::State) () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
[...]
#7  0x00007fd510711ce1 in Akonadi::ServerManager::stateChanged(Akonadi::ServerManager::State) () from /lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5abi2
[...]
#9  0x00007fd50eedd730 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fd50fb62fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5