https://bugs.kde.org/show_bug.cgi?id=528088

            Bug ID: 528088
           Summary: plasmashell main thread spins at 100% and the panel
                    freezes when the automatic day/night global theme
                    switches
    Classification: Plasma
           Product: plasmashell
      Version First 6.8.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Day/night schedule
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

DESCRIPTION
At sunset, automatic day/night global theme switching flips between light and
dark more than once, then plasmashell's main thread spins at 100% CPU. The
panel, clock, pager and activities freeze. The desktop can be left on the light
theme even though it is already dark outside. Windows and KWin keep working.

This happened on Plasma 6.7 and again on 6.8.0. It happens with the stock
Breeze and Breeze Dark global themes, not only with a third-party Plasma style.

STEPS TO REPRODUCE
1. System Settings → Colors & Themes → Global Theme: enable "Switch between
light and dark mode automatically". Light theme: Breeze
(org.kde.breeze.desktop). Dark theme: Breeze Dark (org.kde.breezedark.desktop).
Schedule is location-based, not a fixed clock time.
2. In ~/.config/kdeglobals, AutomaticLookAndFeelOnIdle=false. In
~/.config/knighttimerc, TransitionDuration=60 (kcfg default is 1800).
3. Leave the session running until local sunset.

OBSERVED RESULT
On 2026-10-30, local sunset was about 17:25. The whole desktop swapped between
dark and light several times and ended on the light theme. The panel clock
stopped. Activities and the panel stopped accepting input.

kded logged three xsettingsd reloads, not one:
  17:25:46
  17:26:00
  17:31:18

plasmashell (pid 5299, up for 12 days) had its main thread in state R at ~100%
CPU. The other 114 threads were sleeping. A few minutes later kdeglobals said
ColorScheme=BreezeDark, icon theme breeze-dark, and
LookAndFeelPackage=org.kde.breezedark.desktop, but the frozen shell never
repainted, so the screen stayed light.

The same freeze happened the week before on 6.7, and again on 6.8 with custom
global themes (Win11Dark/Win11Light, Plasma style Win11OS-dark/light) before I
switched the automatic themes to stock Breeze.

systemctl --user restart plasma-plasmashell brings the panel back and applies
the theme that was already saved. Setting AutomaticLookAndFeel=false stops it
coming back.

I could not get a backtrace: kernel.yama.ptrace_scope=1. This is a hang, not a
crash.

EXPECTED RESULT
One switch, to the dark global theme, at the scheduled time. The panel keeps
updating and stays usable.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.8.0
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
Kernel Version: 7.2.10-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen AI 7 PRO 360 w/ Radeon 880M
Memory: 64 GiB of RAM (61.9 GiB usable)
Graphics Processor: AMD Radeon 880M Graphics
Mesa: 26.2.4

ADDITIONAL INFORMATION
See also bug 514461 (evening bounce, closed WORKSFORME). That report does not
mention the frozen panel or the 100% CPU thread. This is not bug 511740 or bug
509885.

I can turn the switch back on with lookandfeelautoswitcher debug logging, or
attach gdb, if that would help.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to