Repository: PowerToys
Issue: Trying to open Either the Settings or the Quick access from the Icon causes a crash
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

v0.8.01

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

System tray interaction

### Steps to reproduce

Right click the tray.
Choose either Settings or Quick Access.


### ✔️ Expected Behavior

Settings or Quick access opens

### ❌ Actual Behavior


The window for either will then open.  
    -  Quick access an empty black box in the right place
    -  A window as an empty box with all the settings visible.
    -      or
    - A settings window.  This window will work but if you try to move the window the window will freeze and close

The item will pause for about 10 seconds, while not allowing any interactions.  
Then close.

NOTE: Even though this happens the underlying functionality from PowerToys seems to work perfectly.  I have not seen any issue despite continually getting the above error, simply because I use them and have not needed the settings.  I encountered it this time as I wanted to specifically look at the settings for FancyZones, which I have not changed for some time.

Reviewing the Event log there a 328 Application errors noted over the last 3 months.  These are as follows:

 System 

  - Provider 

   [ Name]  Application Error 
   [ Guid]  {a0e9b465-b939-57d7-b27d-95d8e925ff57} 
 
   EventID 1000 
 
   Version 0 
 
   Level 2 
 
   Task 100 
 
   Opcode 0 
 
   Keywords 0x8000000000000000 
 
  - TimeCreated 

   [ SystemTime]  2024-06-25T09:56:29.2180529Z 
 
   EventRecordID 86587 
 
   Correlation 
 
  - Execution 

   [ ProcessID]  28592 
   [ ThreadID]  23868 
 
   Channel Application 
 
   Computer Larch1.larch 
 
  - Security 

   [ UserID]  S-1-5-21-1909302428-3991017576-737829279-1022 
 

- EventData 

  AppName PowerToys.Settings.exe 
  AppVersion 0.80.1.0 
  AppTimeStamp 65f90000 
  ModuleName Microsoft.UI.Input.dll 
  ModuleVersion 10.0.26078.1000 
  ModuleTimeStamp 728c6b9d 
  ExceptionCode c0000602 
  FaultingOffset 000000000003d395 
  ProcessId 0x6af0 
  ProcessCreationTime 0x1dac6e5f2a2ab4b 
  AppPath C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe 
  ModulePath C:\Program Files\PowerToys\WinUI3Apps\Microsoft.UI.Input.dll 
  IntegratorReportId 5b75f4b2-0787-4c40-9e7a-48e65e62893a 
  PackageFullName  
  PackageRelativeAppId  


I have done an SFC /scannow.
I have unistalled PowerToys (removing any registry entries) and reinstalling from Microsoft store.  After the reinstall it opened with the settings window.  Once closed, it reverted back to the previous behaviour and will not start.   It also added a new eventlog entry the same as the above.




### Other Software

I do not believe this is interaction with other software.  I have tried closing all applications in the system tray but the issue still occurs.

I have seen a similar issue in the past with the photos app closing in this way in an unexplained manner.  Once I have sent this I will disable all start apps but PowerToys and reboot and see if this changes the issue.