Bug 492166 - KDE Plasma will freeze on startup if Night Light Mode is missing in kwinrc
Summary: KDE Plasma will freeze on startup if Night Light Mode is missing in kwinrc
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: night color (other bugs)
Version First Reported In: 6.1.4
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-25 14:32 UTC by andersenlim23
Modified: 2024-09-27 03:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andersenlim23 2024-08-25 14:32:42 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I was using night light since kde 5 and recently it caused my panel to freeze on startup for a minute or two. I am not sure when the issue appear but it probably come after kde 6.1 because i dont remember any issue prior that. I traced the issue to my kwinrc missing mode variable in night light setting. My guess is the mode variable are new or somehow the variable got lost. Adding the variable back will solve the freezing issue.

STEPS TO REPRODUCE
1. Have kwinrc with missing mode variable in nightlight
2. 
3. 

OBSERVED RESULT
KDE panel freeze at startup

EXPECTED RESULT
It shouldnt freeze for a missing variable, just disable it or something

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Bazzite Stable 40.20240822.0
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
bugged kwinrc setting (lat/lon are random, shouldnt be relevant anyway)
[NightColor]
Active=true
LatitudeAuto=24.12
LongitudeAuto=100.34

when the freezing stop it sometimes also give error popup saying Filesystem mounted at '/' is not responding.
Comment 1 Nate Graham 2024-08-27 21:01:52 UTC
What exact line is missing that causes the issue? My kwinrc file's [NightColor] section looks largely the same as yours and I don't experience this.
Comment 2 andersenlim23 2024-08-28 02:07:27 UTC
Oh i didnt realize i didnt explicitly mention the missing line. It is the mode variable line that looks like this 'Mode=Location'.
Comment 3 andersenlim23 2024-08-28 05:01:20 UTC
Welp, i tried in fresh vm and i couldnt reproduce the issue, i was reproducing the issue in my system using new user. I think there something else going wrong, i can setup nightlight at current location no problem in the vm but selecting that option freezes system setting in my host system. Any idea?
Comment 4 Vlad Zahorodnii 2024-08-28 13:03:10 UTC
(In reply to andersenlim23 from comment #3)
> Welp, i tried in fresh vm and i couldnt reproduce the issue, i was
> reproducing the issue in my system using new user. I think there something
> else going wrong, i can setup nightlight at current location no problem in
> the vm but selecting that option freezes system setting in my host system.
> Any idea?

Could get kwin's backtrace when it is frozen? You will need to ssh to your machine.
Comment 5 andersenlim23 2024-08-28 13:31:19 UTC
how can i get it? my system is not frozen completely i can still open terminal using shortcut
Comment 6 Vlad Zahorodnii 2024-08-28 13:55:28 UTC
https://community.kde.org/KWin/Debugging contains some details

Also, please check kwin logs `journalctl --user-unit --boot plasma-kwin_wayland`
Comment 7 Bug Janitor Service 2024-09-12 03:47:19 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2024-09-27 03:47:42 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.