systeminformer: Slow loading with "Enable start as admin" enabled
Brief description of your issue
Having “Enable start as admin” enabled, System Informer will load very slowly. Triggering the actual task in Task Scheduler will load the program normally as fast as it should but when clicking on the icon, the load of the program is very slow.
Steps to reproduce (optional)
No response
Expected behavior (optional)
No response
Actual behavior (optional)
No response
Environment (optional)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (15 by maintainers)
I added some tracing and I believe I know what’s happening. Previously a mutant was used which guaranteed that one process wins the race and is designated as the “previous instance”. With the changes in the commit mentioned previously two instances can both race to start the “previous instance” but neither of them has created their initial window yet. So the logic above never finds the window and always waits for 5 seconds.