-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Open
Labels
Issue-BugSomething isn't workingSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsFor issues raised to be triaged and prioritized by internal Microsoft teamsPriority-0Bugs that we consider release-blocking/recall-class (P0)Bugs that we consider release-blocking/recall-class (P0)Product-LightSwitch
Description
Microsoft PowerToys version
0.95.1
Installation method
Microsoft Store
Area(s) with issue?
Light Switch
Steps to reproduce
- Enable Light Switch tool in Power Toys.
- Set theme switch schedule to fixed times (e.g., 6:00 AM and 6:00 PM).
- Perform a few manual theme switches to test responsiveness.
- Leave the tool running overnight.
- Log in the next morning and observe disk usage.
✔️ Expected Behavior
Light Switch should switch themes at scheduled times without excessive logging or disk usage.
❌ Actual Behavior
- Upon logging in the next morning, I discovered ~300GB of disk space had been consumed.
- Investigation revealed two massive log files at:
~\AppData\Local\Microsoft\PowerToys\LightSwitch\Service\Logs\v0.95.1 - The logs contained repeated entries every few milliseconds, suggesting a runaway logging loop.
Example snippet from the log:
[2025-10-27 23:05:01.662420] [p-30304] [t-23424] [info] [LightSwitchService] Manual override received while schedule OFF.
[2025-10-27 23:05:01.662427] [p-30304] [t-23424] [info] [LightSwitchService] Manual override received while schedule OFF.
...
(repeated hundreds of times per second)
- I had to disable Light Switch and manually delete one log file to reclaim space.
Additional Information
- OS: Windows 11 Pro
- .NET version: 9.0.302
- System Language: English (India)
- Running as Admin: Yes
Other Software
None interacting directly with Light Switch
shuaiyuanxx, badcodebuilder, Yue-Sui, kylorey, asimms6 and 1 moremoooyo, shuaiyuanxx, Jay-o-Way, Yue-Sui and asimms6
Metadata
Metadata
Assignees
Labels
Issue-BugSomething isn't workingSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsFor issues raised to be triaged and prioritized by internal Microsoft teamsPriority-0Bugs that we consider release-blocking/recall-class (P0)Bugs that we consider release-blocking/recall-class (P0)Product-LightSwitch