Bug 481715

Summary: plasma-kcminit-phase1.service crashes on startup
Product: [Plasma] plasmashell Reporter: Bruno Pitrus <brunopitrus>
Component: Startup processAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: kde, nate, sitter
Priority: NOR Keywords: qt6
Version First Reported In: 5.93.0   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bruno Pitrus 2024-02-23 10:32:50 UTC
SUMMARY
The process `/usr/bin/kcminit kcm_mouse_init kcm_touchpad_init` always crashes on launch which causes the plasma-kcminit-phase1.service unit to fail to start.

plasma6-desktop and plasma6-workspace are at version 5.93.0

Backtrace:
#0  kcminit () at /usr/src/debug/plasma-desktop-5.93.0/kcms/mouse/kcm/configcontainer.cpp:20
#1  0x00005585df67e4d0 in KCMInit::runModule (this=<optimized out>, data=...) at /usr/src/debug/plasma-workspace-5.93.0/startkde/kcminit/main.cpp:63
#2  KCMInit::runModules (this=this@entry=0x7fff1ade3c50, phase=phase@entry=-1) at /usr/src/debug/plasma-workspace-5.93.0/startkde/kcminit/main.cpp:82
#3  0x00005585df67c588 in KCMInit::KCMInit (args=..., this=0x7fff1ade3c50) at /usr/src/debug/plasma-workspace-5.93.0/startkde/kcminit/main.cpp:134
#4  main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace-5.93.0/startkde/kcminit/main.cpp:182



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20240221
(available in About System)
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.2
Comment 1 Harald Sitter 2024-02-23 10:51:36 UTC
What's the journal output when that happens?

The crash looks like InputBackend::implementation returns a nullptr which shouldn't generally happen unless something is going wrong with the platform detection.
Comment 2 Bruno Pitrus 2024-02-23 11:00:21 UTC
(In reply to Harald Sitter from comment #1)
> What's the journal output when that happens?
> 
> The crash looks like InputBackend::implementation returns a nullptr which
> shouldn't generally happen unless something is going wrong with the platform
> detection.

$ journalctl --user -u plasma-kcminit-phase1.service
-- Boot e5b4ff55ae964175b7bde9621e382f2d --
lut 09 10:49:46 bruno-beit systemd[5698]: Starting KDE Configuration Module Initialization (Phase 1)...
lut 09 10:49:46 bruno-beit qdbus[5882]: Service 'org.kde.kcminit' does not exist.
lut 09 10:49:46 bruno-beit systemd[5698]: plasma-kcminit-phase1.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
lut 09 10:49:46 bruno-beit systemd[5698]: plasma-kcminit-phase1.service: Failed with result 'exit-code'.
lut 09 10:49:46 bruno-beit systemd[5698]: Failed to start KDE Configuration Module Initialization (Phase 1).
Comment 3 Harald Sitter 2024-02-23 13:00:39 UTC
You'll have to check the command, not the unit, the unit just dbus invokes the command that falls on the nose.

something like 

journalctl --user _COMM=kcminit -b 0
Comment 4 Bruno Pitrus 2024-02-23 15:31:23 UTC
(In reply to Harald Sitter from comment #3)
> You'll have to check the command, not the unit, the unit just dbus invokes
> the command that falls on the nose.
> 
> something like 
> 
> journalctl --user _COMM=kcminit -b 0

Then the only entry is

lut 23 16:28:57 bruno-beit kcminit[80522]: Initializing  "/usr/lib64/qt6/plugins/plasma/kcms/systemsettings/kcm_mouse.so"

repeated multiple times
Comment 5 Nate Graham 2025-04-05 21:15:00 UTC
Can I ask you to please check to see if it's still an issue with Plasma 6.3? Thanks!
Comment 6 Bruno Pitrus 2025-04-08 09:00:28 UTC
Have not seen this crash in months.