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

Awake is failing to start due to an error when trying to set tray icon #34749

Closed
marck7jr opened this issue Sep 9, 2024 · 2 comments
Closed
Labels
Issue-Bug Something isn't working

Comments

@marck7jr
Copy link

marck7jr commented Sep 9, 2024

Microsoft PowerToys version

0.84.1

Installation method

WinGet

Running as admin

Yes

Area(s) with issue?

Awake

Steps to reproduce

  • Enable Awake
  • Try to interact with system tray icon

✔️ Expected Behavior

  • Icon with the selected mode is showing properly
  • Right-click in the icon should open a menu dialog with more options

❌ Actual Behavior

  • Nothing happens
  • Restarting PowerToys with Awake enable are not creating system tray icon dedicated to Awake
  • Event viewer is listing error items with the following contents:
Application: PowerToys.Awake.exe
CoreCLR Version: 8.0.824.36612
.NET Version: 8.0.8
Description: The process was terminated due to an unhandled exception.
Exception Info: 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)
Faulting application name: PowerToys.Awake.exe, version: 0.84.1.0, time stamp: 0x66960000
Faulting module name: KERNELBASE.dll, version: 10.0.22621.4111, time stamp: 0x03c619d0
Exception code: 0xe0434352
Fault offset: 0x000000000005fabc
Faulting process id: 0x0x2F64
Faulting application start time: 0x0x1DB030B11152279
Faulting application path: C:\Users\user\AppData\Local\PowerToys\PowerToys.Awake.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: c4c33807-238f-4ca7-9d44-ac94227debb0
Faulting package full name: 
Faulting package-relative application ID: 

Other Software

No response

@marck7jr marck7jr added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Sep 9, 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.

@marck7jr
Copy link
Author

marck7jr commented Sep 9, 2024

Closing this issue as it is identical to #34148

@marck7jr marck7jr closed this as completed Sep 9, 2024
@ethanfangg ethanfangg removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Sep 12, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants