Bug 463225

Summary: Akonadi server crashed when switching user
Product: [Frameworks and Libraries] Akonadi Reporter: Ondřej Mach <ondrej.mach>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: crash CC: bettale, danderson.steven, hodekondrej, racka.akreme, raedkit, rarsa
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
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
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Ondřej Mach 2022-12-19 08:16:21 UTC
Application: akonadiserver (5.21.3 (22.08.3))

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

-- Information about the crash:
I switched the user and after I switched back, the crash report appeared. The computer was also suspended in the mean time (probably irrelevant).

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Akonadi Server (akonadiserver), signal: Segmentation fault

[KCrash Handler]
#4  0x00005571a6ca929b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007fd3064d2ec4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007fd3064a825b in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007fd3064ab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007fd3064f9897 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#9  0x00007fd304719cbf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#10 0x00007fd30476f598 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#11 0x00007fd304716f40 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#12 0x00007fd3064f938a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#13 0x00007fd3064a6cca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#14 0x00007fd3064aed92 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#15 0x00005571a6c9f058 in main ()
[Inferior 1 (process 3655) detached]

Reported using DrKonqi
Comment 1 hodekondrej 2023-01-04 10:56:24 UTC
Created attachment 155018 [details]
New crash information added by DrKonqi

akonadiserver (5.22.0 (22.12.0)) using Qt 5.15.7

After suspend only one functioning desktop (laptop w external monitor), laptop monitor was black showing only cursor moving. Attempted reload KDE ("kquitapp5 plasmashell && kstart5 plasmashell"), unsuccessfull, then attempted "kwin --replace" which resulted in crash.
The only one screen issue is after almost every suspend, 'solvable' by logout or reboot

-- Backtrace (Reduced):
#4  0x0000556b7042129b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007fd5ac6d2ec4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007fd5ac6a825b in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007fd5ac6ab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007fd5ac6f9897 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 2 daniel 2023-02-13 18:56:07 UTC
Created attachment 156202 [details]
New crash information added by DrKonqi

akonadiserver (5.22.2 (22.12.2)) using Qt 5.15.8

I was surfin the web with firefox and I'm using an external monitor through a dock.

-- Backtrace (Reduced):
#4  0x00005639deab629b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007f7b4b4d2ec4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007f7b4b4a825b in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f7b4b4ab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007f7b4b4f9897 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 3 racka.akreme 2023-02-24 17:33:38 UTC
Created attachment 156681 [details]
New crash information added by DrKonqi

akonadiserver (5.22.2 (22.12.2)) using Qt 5.15.8

Doing nothing out of the ordinary, at least in my view. Unplugged the dock as I have done before many times and when the laptop screen started again the server had crashed, first time this happens.

-- Backtrace (Reduced):
#4  0x000055f13c11729b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007f7d684c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007f7d6849d4cb in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f7d684a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007f7d684eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 4 Steven Danderson 2023-02-26 02:00:05 UTC
Created attachment 156740 [details]
New crash information added by DrKonqi

akonadiserver (5.22.2 (22.12.2)) using Qt 5.15.8

I was closing KPatience.  The screen went totally black.  The the desktop returned; first the wallpaper, then the taskbar.

-- Backtrace (Reduced):
#4  0x000055a901bac29b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007f32594c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007f325949d4cb in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f32594a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007f32594eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 5 bettale 2023-03-02 06:26:35 UTC
Created attachment 156908 [details]
New crash information added by DrKonqi

akonadiserver (5.22.2 (22.12.2)) using Qt 5.15.8

Crashing on boot after a plasma upgrade

-- Backtrace (Reduced):
#4  0x000056051757e29b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007f43732c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007f437329d4cb in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f43732a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007f43732eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 6 Raed 2023-03-26 09:19:54 UTC
Created attachment 157585 [details]
New crash information added by DrKonqi

akonadiserver (5.22.3 (22.12.3)) using Qt 5.15.8

Hi, this bug happens to me the PC goes to suspend mode

-- Backtrace (Reduced):
#4  0x000055dfb97ca29b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007f16f86c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007f16f869d4cb in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f16f86a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007f16f86eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 7 rarsa 2023-03-26 23:14:52 UTC
Created attachment 157605 [details]
New crash information added by DrKonqi

akonadiserver (5.22.3 (22.12.3)) using Qt 5.15.8

After booting, my desktop was showing in just about 1/4 of the screen,  the Display parameters said that I only had a 1024x768 resolution available. inxi showed the same. when I tried to log out, I got the crash report.

I rebooted and the same happened. It only happened in Wayland. If I log in to KDE with X I don't have a problem.

Also, when the screen showed scaled to 1/4 of the laptop's monitor, the touchpad didn't detect taps or clicks and when I went to the settings it said that it hadn't detected any touch pad

-- Backtrace (Reduced):
#4  0x000055d613a8b29b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007fd6376c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007fd63769d4cb in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007fd6376a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007fd6376eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
Comment 8 rarsa 2023-03-26 23:17:31 UTC
After the crash, the screen went back to using the full monitor and the touchpad started working. When I was writing the crash report, everything was working OK, however, if I log out and log back in, the same happens again.
Comment 9 rarsa 2023-03-29 03:54:50 UTC
I don't know if this will help someone else but for me the error didn't have anything to do with KDE.
I normally use fish shell and I copied the configuration (config.fish) from a different system without a display manager.
Given that fish is the default shell, I was executing "startx" inside that file. That was causing the problem.

At least my problem can be marked as "resolved".
Comment 10 racka.akreme 2023-03-29 08:06:12 UTC
Created attachment 157683 [details]
New crash information added by DrKonqi

akonadiserver (5.22.3 (22.12.3)) using Qt 5.15.8

I unplugged my dell wd19 thunderbolt dock.

-- Backtrace (Reduced):
#4  0x000055736342529b in Akonadi::Server::AkonadiServer::connectionDisconnected() ()
#5  0x00007f9c6b2c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#6  0x00007f9c6b29d4cb in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f9c6b2a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#8  0x00007f9c6b2eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5