Skip to content
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

The Icon of Awake Is Gone #34148

Open
Tracked by #34717 ...
Emmm2333doge opened this issue Aug 4, 2024 · 40 comments
Open
Tracked by #34717 ...

The Icon of Awake Is Gone #34148

Emmm2333doge opened this issue Aug 4, 2024 · 40 comments
Assignees
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Product-Awake Issues regarding the PowerToys Awake utility

Comments

@Emmm2333doge
Copy link

Microsoft PowerToys version

0.83.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Awake

Steps to reproduce

The taskbar notification area icon of Awake is gone.

✔️ Expected Behavior

There's an icon of Awake in the taskbar notification area.

❌ Actual Behavior

I cannot find the icon and I have to open PowerToys settings just to change my settings, which is very inconvenient.

Other Software

No response

@Emmm2333doge Emmm2333doge added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 4, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@crutkas
Copy link
Member

crutkas commented Aug 4, 2024

/reportbug

@crutkas
Copy link
Member

crutkas commented Aug 4, 2024

we did a lot of heavy refactors, the icon could be hide a ^ symbol in system tray
image
image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 4, 2024
@mmitchel
Copy link

mmitchel commented Aug 5, 2024

This is a thing; and it is not in the tray overflow until toggled off then on again. Some could confuse the new icon for something else, but I hover over till I don't find it.

@dend dend self-assigned this Aug 5, 2024
@dend dend added Product-Awake Issues regarding the PowerToys Awake utility and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 5, 2024
@dend
Copy link
Collaborator

dend commented Aug 8, 2024

@Emmm2333doge @mmitchel was this after the upgrade? Can you please share the Awake logs on this thread to see if there were any errors launching the app?

@PraneshBalasubramaniam
Copy link

I too have similar issue. The System tray icon disappears sometime and only appears after turning off and on the awake feature.
This is my logs.
awake-log_2024-08-09.txt
awake-log_2024-08-08.txt
awake-log_2024-08-07.txt

@eldair
Copy link

eldair commented Aug 9, 2024

Same here and it doesn't reappear after the module is turned off/on, I have to restart powertoys for it to come back. Started happening after the latest version update.

Edit: it usually happens after screen was off for a while
Edit 2: here are some errors from event viewer (not sure if they preceded icon disappearing or they happened when I tried to turn awake off/on)

image
image

@dend
Copy link
Collaborator

dend commented Aug 9, 2024

I too have similar issue. The System tray icon disappears sometime and only appears after turning off and on the awake feature. This is my logs. awake-log_2024-08-09.txt awake-log_2024-08-08.txt awake-log_2024-08-07.txt

Thanks @PraneshBalasubramaniam - can you please also provide the native Awake logs (that are detached from PT)? They should be in the same folder.

@dend
Copy link
Collaborator

dend commented Aug 9, 2024

Same here and it doesn't reappear after the module is turned off/on, I have to restart powertoys for it to come back. Started happening after the latest version update.

Edit: it usually happens after screen was off for a while Edit 2: here are some errors from event viewer (not sure if they preceded icon disappearing or they happened when I tried to turn awake off/on)

image image

This snapshot is actually immensely helpful, thank you @eldair!

@Emmm2333doge
Copy link
Author

Now I realize that I might came to a wrong place... I found something else in my system tray **also keep disappearing! ** Maybe It's **Windows 11's bug! ** I might just go to Windows 11's Feedback Hub...

@Emmm2333doge Emmm2333doge closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
@PraneshBalasubramaniam
Copy link

I too have similar issue. The System tray icon disappears sometime and only appears after turning off and on the awake feature. This is my logs. awake-log_2024-08-09.txt awake-log_2024-08-08.txt awake-log_2024-08-07.txt

Thanks @PraneshBalasubramaniam - can you please also provide the native Awake logs (that are detached from PT)? They should be in the same folder.

Thanks for the replay. I have attached the log you have requested. I found these logs inside 0.83.0.0 folder under the same folder.
Log_2024-08-01.txt
Log_2024-08-02.txt
Log_2024-08-03.txt
Log_2024-08-04.txt
Log_2024-08-05.txt
Log_2024-08-06.txt
Log_2024-08-07.txt
Log_2024-08-08.txt
Log_2024-08-09.txt
Log_2024-08-10.txt
0e239396-000e-4d07-9cd5-19982408ed0cLog_2024-08-06.txt

And can we please keep this issue open, the issue is not resolved yet.

@morganicist
Copy link

I'm having the same issue. Awake icon is missing, toggling on/off in PowerToys settings will make it appear, but it will disappear again after a reboot.

@eldair
Copy link

eldair commented Aug 12, 2024

@dend Hi, can you please reopen this issue, it might not be what the OPs problem was but the issue is real

@dend dend reopened this Aug 12, 2024
@dend
Copy link
Collaborator

dend commented Aug 12, 2024

Reopening as I need to investigate the root cause. It's possible that it's an Awake issue and not necessarily a Windows issue. The log from @eldair is actually pointing to a potential error path that I am working on.

@o-l-a-v
Copy link

o-l-a-v commented Aug 14, 2024

I read the following in the logs located at %LOCALAPPDATA%\Microsoft\PowerToys\Awake\Logs:

...
[07:24:18.6596052] [Info] Program::HandleCommandLineArguments
    Reading configuration file: C:\Users\olav.birkeland\AppData\Local\Microsoft\PowerToys\Awake\settings.json
[07:24:18.7887929] [Info] Program::ProcessSettings
    Identified custom time shortcuts for the tray: 0
[07:24:18.8023681] [Info] Manager::CancelExistingThread
    Attempting to ensure that the thread is properly cleaned up...
[07:24:18.8035111] [Info] Manager::CancelExistingThread
    Instantiating of new token source and thread token completed.
[07:24:18.8040981] [Error] Program::ProcessSettings
    There was a problem reading the configuration file. Error: System.ComponentModel.Win32Exception Failed to change tray icon. Action: Update and error code: 0
...

I then disabled Awake from PowerToys menu, deleted %LOCALAPPDATA%\Microsoft\PowerToys\Awake\settings.json, enabled Awake, and tray icon appeared.


I first tried to uninstall PowerToys. It did not remove %LOCALAPPDATA%\Microsoft\PowerToys, thus the seemingly broken %LOCALAPPDATA%\Microsoft\PowerToys\Awake\settings.json was left behind too.

@mmitchel
Copy link

mmitchel commented Aug 14, 2024

Not a Windows 11 bug; previous version worked. It showed up with 0.83 and the new icons. Running with or without elevated privileges also seems to have no impact on the occurrence of the issue.

@dend dend closed this as completed Sep 4, 2024
@mendhak
Copy link

mendhak commented Sep 4, 2024

Thanks for your efforts!

@huythach83
Copy link

I am afraid that the problem with Awake still exists. After updating to PowerToys v0.84.0, Awake is working for a while and after a restart, its icon is nowhere to be found. Try to disable/enable it a few times; if I am lucky, the Awake icon will reappear, and I can use it.

If you want me to provide anything to help with debugging, I will happily provide it.

@anton-hystrix
Copy link

anton-hystrix commented Sep 6, 2024

I second this. Just started using Awake in version 0.84 and the icon was shown yesterday but froze and then disappeared today.

@cmdntfnd
Copy link

cmdntfnd commented Sep 6, 2024

I can confirm it's still crashing. Here are the logs.
048cb40c-44ba-4aa4-afc1-1642900fec6bLog_2024-09-06.txt
Log_2024-09-06.txt

Program::AwakeUnhandledExceptionCatcher
System.ComponentModel.Win32Exception (0x80004005): Failed to change tray icon. Action: Update and error code: -2147467259
at Awake.Core.TrayHelper.SetShellIcon(IntPtr hWnd, String text, Icon icon, TrayIconAction action)

@dend dend added Needs-Team-Response An issue author responded so the team needs to follow up and removed Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. labels Sep 8, 2024
@dend dend reopened this Sep 8, 2024
@SoCalDude
Copy link

SoCalDude commented Sep 8, 2024

More details here in this related ticket. . .

@dend
Copy link
Collaborator

dend commented Sep 8, 2024

I can confirm it's still crashing. Here are the logs. 048cb40c-44ba-4aa4-afc1-1642900fec6bLog_2024-09-06.txt Log_2024-09-06.txt

Program::AwakeUnhandledExceptionCatcher System.ComponentModel.Win32Exception (0x80004005): Failed to change tray icon. Action: Update and error code: -2147467259 at Awake.Core.TrayHelper.SetShellIcon(IntPtr hWnd, String text, Icon icon, TrayIconAction action)

This is helpful - I see the potential issue:

[17:06:56.0905399] [Info] Program::Exit
    Awake is already running! Exiting the application.
[17:06:56.4336981] [Info] Manager::SetPassiveKeepAwake
    Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled.
[17:06:56.4504114] [Info] Manager::CancelExistingThread
    Attempting to ensure that the thread is properly cleaned up...
[17:06:56.4534197] [Info] Manager::CancelExistingThread
    Instantiating of new token source and thread token completed.
[17:06:56.4697424] [Info] TrayHelper::SetShellIcon
    Setting the shell icon.
Text: PowerToys Awake [Passive]
Action: Update
[17:06:56.4741116] [Info] TrayHelper::SetShellIcon
    Adding or updating tray icon. HIcon handle is 262599
HWnd: 0

Looks like Awake tried to launch a second instance (which is not supported) and then things cascaded from there. I am working on adding some checks for this that should be released in the next version.

@ksbrar
Copy link

ksbrar commented Sep 9, 2024

Sidenote: This has been happening to me as well, and the workaround I have found has been to completely exit and restart PowerToys itself. That at least brings the icon (and correct behavior) back to the system tray for a while.

@HarryLesnar24
Copy link

Hi @dend,
Today I ran in to same issue the tray icon missing after when I updated system driver and restarted it gone from tray. version 0.83.0.0 if I manually try to disable awake and enable it means the icon get back but 0.84.1.0 I need to do twice not one time then only I got the icon back to tray

6f59a7b1-56fe-4dab-a773-306bf376499bLog_2024-09-10.txt
awake-log_2024-09-10.txt
Log_2024-09-10.txt

[17:04:44.5899879] [Info] Program::Exit Awake is already running! Exiting the application. [17:04:44.5996588] [Info] Manager::SetPassiveKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [17:04:44.6030391] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [17:04:44.6037498] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [17:04:44.6060835] [Info] TrayHelper::SetShellIcon Setting the shell icon. Text: PowerToys Awake [Passive] Action: Update [17:04:44.6068603] [Info] TrayHelper::SetShellIcon Adding or updating tray icon. HIcon handle is 589981 HWnd: 0 [17:04:44.6173800] [Error] Program::AwakeUnhandledExceptionCatcher System.ComponentModel.Win32Exception (0x80004005): Failed to change tray icon. Action: Update and error code: -2147467259 at Awake.Core.TrayHelper.SetShellIcon(IntPtr hWnd, String text, Icon icon, TrayIconAction action) at Awake.Core.Manager.SetPassiveKeepAwake(Boolean updateSettings) at Awake.Core.Manager.CompleteExit(Int32 exitCode) at Awake.Program.Exit(String message, Int32 exitCode) at Awake.Program.Main(String[] args) [17:04:44.6175098] [Error] Program::AwakeUnhandledExceptionCatcher at Awake.Core.TrayHelper.SetShellIcon(IntPtr hWnd, String text, Icon icon, TrayIconAction action) at Awake.Core.Manager.SetPassiveKeepAwake(Boolean updateSettings) at Awake.Core.Manager.CompleteExit(Int32 exitCode) at Awake.Program.Exit(String message, Int32 exitCode) at Awake.Program.Main(String[] args)

I attached Log file you can check it if any further details required ask me I can provide.

@stephanm74
Copy link

Ever since i updated to most recent version, it is even worse than before. This is old behavior: #34368 (comment)

New behavior is just that the tray icon is gone and even enabling and disabling awake in powertoys doesnt bring it back.

@ZZJHONS
Copy link

ZZJHONS commented Sep 12, 2024

It also happened to me that after updating from 83 to 84.1 the icon was missing, tried rebooting but it did not show up, also tried stopping Awake and running it gain and it also neither appeared, only after doing on/off a second time it does show up and is responsive.

@aprayiii
Copy link

Yes, still happening to me as well.

@HarryLesnar24
Copy link

Hi @dend,
Today I updated Windows Patch still same issue persist I need to start it manually to get back icon after rebooted the system below I attached log I believe it be helpful for you to trace down the root cause of problem
Log_2024-09-13.txt

@ElitePheonix2009
Copy link

Happening to me as well. When I updated from 0.83.0 to 0.84.1, the icon was missing, I had to restart powertoys to make it visible again.

@randomidiot2887
Copy link

Same for me, on 0.84.1. not a windows issue as i recently reinstalled windows and this happened on my old install as well.

@dend
Copy link
Collaborator

dend commented Sep 15, 2024

Latest update to PowerToys does not include my patch: #34717

Once the PR merges, the icon issue should be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Product-Awake Issues regarding the PowerToys Awake utility
Projects
Development

No branches or pull requests