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 crashing right after computer slept #19644

Closed
giggio opened this issue Jul 28, 2022 · 1 comment
Closed

Awake crashing right after computer slept #19644

giggio opened this issue Jul 28, 2022 · 1 comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Awake Issues regarding the PowerToys Awake utility

Comments

@giggio
Copy link

giggio commented Jul 28, 2022

Microsoft PowerToys version

0.60.1

Running as admin

  • No

Area(s) with issue?

Awake

Steps to reproduce

I can't reproduce it. What I know is that it crashed after it computer slept, and it was set to keep awake temporarily for 2 hours. It crashed almost imediately after the sleep.
I generated the log file and inspected the logs, got this error, right after I left the computer:

[2022-07-27 19:08:00.3330 ERROR Awake.Core.TrayHelper] An error occurred initializing the tray. Unable to find the specified file.
[2022-07-27 19:08:00.6219 ERROR Awake.Core.TrayHelper]    at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.GetSettings[T](String powertoy, String fileName)
   at Awake.Core.TrayMessageFilter.PreFilterMessage(Message& m)
   at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
   at System.Windows.Forms.Application.ThreadContext.Interop.Mso.IMsoComponent.FPreTranslateMessage(MSG* msg)
   at System.Windows.Forms.Application.ComponentManager.Interop.Mso.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run()
   at Awake.Core.TrayHelper.<>c__DisplayClass10_0.<InitializeTray>b__0(Object tray)

Settings are:

{"properties":{"awake_keep_display_on":false,"awake_mode":0,"awake_hours":0,"awake_minutes":0,"tray_times":{}},"name":"Awake","version":"1.0"}

✔️ Expected Behavior

No crash.

❌ Actual Behavior

Crashed.

Other Software

N/A.

@giggio giggio added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jul 28, 2022
@davidegiacometti davidegiacometti added the Product-Awake Issues regarding the PowerToys Awake utility label Jul 29, 2022
@dend
Copy link
Collaborator

dend commented Feb 20, 2023

I believe this should be addressed by #22679 and there is already a PR pending review that will fix it (#24183).

@dend dend closed this as completed Feb 20, 2023
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-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Awake Issues regarding the PowerToys Awake utility
Projects
None yet
Development

No branches or pull requests

3 participants