PowerToys: [Hosts File Editor] App is crashing and keeps runnning
Microsoft PowerToys version
0.1.0 (pre-built of 0.64.0)
Running as admin
- Yes
Area(s) with issue?
General
Steps to reproduce
Unfortunately, I can’t find a way to safely reproduce the bug.
✔️ Expected Behavior
Every time I close the window, the app is really closed and can be reopened.
❌ Actual Behavior
Sometimes the window is closed but the app keeps running in background with high cpu and ram activity. Then you can’t reopen it again as the new instance detects the old one.
Workaround: Killing process of PowerToys.Hosts.exe in Task manager.
Other Software
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 42
I think if this is common we’ll likely get more reports. Let’s see if a pattern emerges. At this point I don’t think we’ll work it out until release without being able to repro.
@davidegiacometti , @jaimecbernardo Should we close this as no one run into the crash after the final release of the utility?
If it’s of any help, I also have this issue on 22H2, but only when the option ‘Show a warning at startup’ (userSettings.ShowStartupWarning) is disabled in PowerToys Settings. With that option disabled, it never closes fully, and instead stays open in the background with higher-than-expected CPU usage. With that option enabled, it closes every time.
Worst case, it’s hotfix material if we can figure it out.
Thanks! I have FINALLY been able to reproduce the issue adding a sleep inside the thread that is used to cleanup backups. I am going to open a PR.
Win10 21H2. Nothing useful in the log files. Only the information that the new instance found the crashed one and exits.