Bug 468199

Summary: kactivitymanagerd crashes every time after log out due to uninitialized Qt platform plugin
Product: [Plasma] plasmashell Reporter: Christian Gruber <christian_gruber>
Component: Activities in generalAssignee: Ivan Čukić <ivan.cukic>
Status: RESOLVED FIXED    
Severity: crash CC: christian_gruber, ivan.cukic, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.27.0   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.3.4 or earlier
Sentry Crash Report:
Attachments: kactivitymanagerd coredump info

Description Christian Gruber 2023-04-06 10:13:52 UTC
Created attachment 157892 [details]
kactivitymanagerd coredump info

SUMMARY

The activity manager daemon crashed during startup after I have logged out from my system and logged in again. This does typically not happen and is not reproducible deterministically. But it could have something to do with the waiting time between log out and log in, which was quite short in the case of this reported crash.

I can see the following logs in my systemd journal:

Apr 04 09:08:37 maybach kactivitymanagerd[7416]:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, x>

Apr 04 09:08:37 maybach xdg-desktop-portal-kde[7442]:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-g>

Apr 04 09:08:37 maybach systemd-coredump[7469]:
[🡕] Process 7416 (kactivitymanage) of user 1026 dumped core.

Apr 04 09:08:37 maybach systemd[1336]:
Failed to start KActivityManager Activity manager Service.

Apr 04 09:08:37 maybach systemd[1336]:
Failed to start Xdg Desktop Portal For KDE.

Apr 04 09:08:37 maybach systemd-coredump[7470]:
[🡕] Process 7442 (xdg-desktop-por) of user 1026 dumped core.

See the attached core dump.

I could also provide a core dump for xdg-desktop-portal-kde, but it looks almost the same as for kactivitymanagerd. Therefore I did not attach it yet.


EXPECTED RESULT

I can imagine that this is just a follow-up error from an incomplete startup process. As the systemd journal log says, the "Qt platform plugin could [not] be initialized". But I guess at least the activity manager daemon should handle this situation without a crash.

SOFTWARE/OS VERSIONS

KDE-Plasma-Version: 5.27.3
KDE-Frameworks-Version: 5.104.0
Qt-Version: 5.15.8
Kernel-Version: 6.2.9-1-MANJARO (64-bit)
Grafik-Plattform: X11
Comment 1 Christian Gruber 2023-04-06 10:19:25 UTC
I could not upload the full coredump, because it's too large (10.8 MB). But I can provide it on request.
Comment 2 Christian Gruber 2023-06-19 07:56:23 UTC
After further investigation I realized, that kactivitymanagerd crashes every time, when I log out from my system. This is reproducible.

Therefore I changed the title of this bug report.
Comment 3 Nate Graham 2025-05-08 15:55:38 UTC
Thanks for the bug report, and sorry we were not able to get to it yet! A lot has changed since it was reported; can you check and see if it still happens on Plasma 6.3.4 or later? Thanks a lot!
Comment 4 Christian Gruber 2025-05-13 09:02:25 UTC
On my current system with Plasma 6.3.4, I could not observe any more crashes of kactivitymanagerd after logout. I have tried to log out and log in several times. The bug seems to be fixed.
Comment 5 Nate Graham 2025-05-13 15:39:56 UTC
That's great, thanks!