-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Awake CLI Exceptions related to Tray Icon wtih --time-limit #35222
Comments
I am trying to repro this locally and I can't get it to error out - it works as expected: If I try to repeatedly launch the app after expiration, I can get it into an error state but that seems like a limited scenario: Looks like I need to implement some additional edge case detection for icon changes, thank you for the report @lylebrown. At the very least, I can add some retry logic to try and set the icon several times before completely erroring out. |
I did try running it multiple times in a row (closing each instance first) in an attempt to reproduce the error, so maybe that in itself is the issue. I will say my background implementation is working correctly. I effectively just run However, doing it this way, I also am not seeing that CLI window, so it could be showing this exception in the background. I would argue this is low priority, at least for executing PowerToys Awake standalone (disabled in PowerToys Settings/Dashboard). But #35250 suggests it may be an issue for those who have it enabled in PowerToys Settings. |
There may be more to this issue than just the exception. Using the implementation I mentioned above, I've noticed that sometimes the tray shows the timer/time remaining, other times it's just the static "Awake" icon. And when it's static, I don't believe the timer has been applied. This might be related to terminating the process and then restarting it. To be clear, every time I start Awake, I'm doing so with the argument for the same timer duration (1800 seconds). I think I've isolated the relevant debug log section for this.
|
The root cause is addressed in #35250. |
Microsoft PowerToys version
0.85.0
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Awake
Steps to reproduce
If I run Awake from the PowerShell CLI with the following command I get the output in the console log below:
.\PowerToys.Awake.exe --time-limit 180
I also get the same output if I combine arguments:
``.\PowerToys.Awake.exe --display-on false --time-limit 180`
Other arguments seem to work.
While reproducing, there were a couple of isolated times it did work without showing this exception.
I have Awake disabled in PowerToys and am using the CLI only.
May be related to issues #34809 #34616 #34148 and PR #34717
Bug Report / Console Log
✔️ Expected Behavior
Awake CLI window should appear with no exceptions.
❌ Actual Behavior
Exception listed in the Steps to Reproduce appears in the Awake CLI window.
Other Software
No response
The text was updated successfully, but these errors were encountered: