Powertoys: Settings Form is Frozen

Created on 21 May 2020  Â·  35Comments  Â·  Source: microsoft/PowerToys

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.836]
Dotnet version: 3.1.300 (I have installed the SDK - so the runtime is included also)
PowerToys version: v0.18.0
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce


After starting the PowerToys app, just right click the icon in the system tray, then select Settings

Expected behavior


A working form, that will allow me to change the settings

Actual behavior


The form is shown, but is freezing (the title is changing after a while from PowerToys Settings to PowerToys Settings (Not Responding) )

Screenshots

More Details

I installed first the version 0.17 using choco. Had a similar behavior. Uninstalled using choco, installed by using the msi - same behavior. Tryied to run it without elevation, with elevation of rights. Seen Today that an update was available(from Windows Notifications), I installed, tried again with/without elevation. Uninstalled using the Add/Remove Programs. Deleted the folder from ~/AppData/Local/Microsoft/PowerToys (checked also that /Program Files/PowerToys does not exists). Made a last attempt using choco this time - same behavior.

Also on my system when I use Alt + Space and type >win the app is freezing

Issue-Bug Priority-0 Product-Settings Status-Blocked Tracking-External

All 35 comments

Hi @MecuSorin
a few steps to try:

I updated the previous post with the dotnet version.

Followed your indications but is having the same behavior (freezing Settings form)

  • I followed your indications: uninstalled via choco(since last time was installed using choco)
  • verified that it is not appearing anymore in Apps & features
  • removed the config files(from appdata/local...), (the Program Files/PowerToys was removed by uninstall)
  • installed the .NET Core 3.1 Desktop Runtime
  • installed PowerToys from the link provided (used that link in the past also)
  • repeated Settings tests with/without elevation - no success.

Thanks for your time

possible to get a screenshot? xref #3447 as a possible same issue

possible to get a screenshot?

If you want we can have a skype call and show you everything. My id is mecu.sorin
image

And as admin
image

Error 22-May-20 9:57:48 Application Hang 1002 (101)
The program Microsoft.PowerToys.Settings.UI.Runner.exe version 0.15.2.0 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel.
Process ID: 1214
Start Time: 01d630056a3a4488
Termination Time: 3
Application Path: C:\Program Files\PowerToys\SettingsUIRunner\Microsoft.PowerToys.Settings.UI.Runner.exe
Report Id: c0a979fe-bdaa-47b0-88db-84efaece5722
Faulting package full name:
Faulting package-relative application ID:
Hang type: Unknown

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Application Hang" /> 
  <EventID Qualifiers="0">1002</EventID> 
  <Level>2</Level> 
  <Task>101</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2020-05-22T06:57:48.722524400Z" /> 
  <EventRecordID>24966</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>Cetus</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>Microsoft.PowerToys.Settings.UI.Runner.exe</Data> 
  <Data>0.15.2.0</Data> 
  <Data>1214</Data> 
  <Data>01d630056a3a4488</Data> 
  <Data>3</Data> 
  <Data>C:\Program Files\PowerToys\SettingsUIRunner\Microsoft.PowerToys.Settings.UI.Runner.exe</Data> 
  <Data>c0a979fe-bdaa-47b0-88db-84efaece5722</Data> 
  <Data /> 
  <Data /> 
  <Data>Unknown</Data> 
  <Binary>55006E006B006E006F0077006E0000000000</Binary> 
  </EventData>
  </Event>

@MecuSorin
can you try these steps?

  • exit PowerToys (right click on the PowerToys tray icon and select Exit)
  • go to C:\Users\%USERNAME%\AppData\Local\Microsoft
  • move the PowerToys folder from C:\Users\%USERNAME%\AppData\Local\Microsoft to your desktop
  • restart PowerToys

Does the problem still happen?

Is still happening. I have attached an archive with original settings, then the settings generated on every run (with admin, without admin rights)
PowerToys - settings.zip

Noticed something that seems off in the event viewer log I pasted earlier: Microsoft.PowerToys.Settings.UI.Runner.exe version 0.15.2.0

Microsoft.PowerToys.Settings.UI.Runner.exe version 0.15.2.0

Thanks for point it out, but it's just that the project for that binary is not using the global version number.

The offer remains, if you want to test something, call me on Skype

same for me, it's freezing all the time, I have to force close it and open again. If it makes any difference when I click on tray icon it doesn't do anything (both primary and secondary mouse button)

Version v0.21.1 solves the issue for me. If @oswaldofreitas confrim that is no longer a problem for him too, then I will close the issue

Actually it does not. I left the setting window stay for a while open, then found it frozen:
image

More details:

  • updated using choco
  • when the setting form was responsive I disabled all the toys except the launcher one(PowerToys Run).
  • now, after restart, if I reopen the settings is freezing from the start.

Can you try installing via the exe installer instead on choco?

Uninstalled from choco.
Restarted the pc with shutdown /r /t 0
Removed the settings from c:\Users\Sorin\AppData\Local\Microsoft\
Installed version 0.21.1 ( PowerToysSetup-0.21.1-x64.exe ).
The Settings freezed from start.
One question about the notification from Windows about an update to PowerToys ???
image

@ryanbodrug-microsoft we should have someone look at this for 20.10

We should check if this is another case of the weird PToyD2DPopup issue https://github.com/microsoft/PowerToys/issues/5944

@enricogior how do we do that? Both settings and Terminal are XAML Islands

Using currently the Windows Terminal(installed with chocolatey), but no issues with it. (Dual monitor setup)

@crutkas
using the Steps Recorder that comes with Windows.
It's very simple:

  • start Steps Recorder
  • press the Start Record button
  • reproduce the bug
  • press the Stop Record button
  • press the Save button
  • a .zip file will be created and it can be uploaded to github.

@MecuSorin
thank you for posting the recordings.

I don't see the PToyD2DPopup class so it doesn't seem to be the same issue as https://github.com/microsoft/PowerToys/issues/5944

This is the full session:

Recording Session: ‎29-‎Sep-‎20 10:40:49 - 10:42:06

Recorded Steps: 19, Missed Steps: 4, Other Errors: 0

Operating System: 19041.1.amd64fre.vb_release.191206-1406 10.0.0.0.2.48

Step 1: User left click on "Start (button)"
Program: Windows Explorer, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, EXPLORER.EXE, EXPLORER.EXE
UI Elements: Start, Start, Taskbar, Shell_TrayWnd

Step 2: User left click on "PowerToys (Preview), New (list item)" in "Start"
Program: STARTMENUEXPERIENCEHOST.EXE -SERVERNAME:APP.APPXYWBRABMSEK0GM3TKWPR5KWZBS55TKQAY.MCA, STARTMENUEXPERIENCEHOST.EXE
UI Elements: PowerToys (Preview), New, ListViewItem, Recently added, ListViewItem, All apps, ListView, All apps, SemanticZoom, Start, Windows.UI.Core.CoreWindow

Step 3: User right click on "PowerToys v0.21.1 (button)"
Program: Windows Explorer, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, EXPLORER.EXE, EXPLORER.EXE
UI Elements: PowerToys v0.21.1, User Promoted Notification Area, ToolbarWindow32, SysPager, TrayNotifyWnd, Taskbar, Shell_TrayWnd

Step 4: User left click on "Settings (menu item)"
Program: PowerToys Runner, 0.21.1.0, Microsoft Corporation, POWERTOYS.EXE, POWERTOYS.EXE
UI Elements: Settings, Context, #32768

Step 5: User mouse drag start on "Settings Form is Frozen · Issue #3407 · microsoft/PowerToys - Google Chrome (pane)" in "PowerToys Settings"
Program: Microsoft.PowerToys.Settings.UI.Runner, 0.21.1.0, Microsoft Corporation, MICROSOFT.POWERTOYS.SETTINGS.UI.RUNNER.EXE \\.\PIPE\POWERTOYS_RUNNER_C355A365-1F78-4F6B-879B-64485FD4DFD5 \\.\PIPE\POWERTOYS_SETTINGS_C355A365-1F78-4F6B-879B-64485FD4DFD5 8852 SYSTEM FALSE TRUE, MICROSOFT.POWERTOYS.SETTINGS.UI.RUNNER.EXE
UI Elements: Chrome_RenderWidgetHostHWND, Settings Form is Frozen · Issue #3407 · microsoft/PowerToys - Google Chrome, Chrome_WidgetWin_1

Step 6: User mouse drag end in "PowerToys Settings"
Program: Microsoft.PowerToys.Settings.UI.Runner, 0.21.1.0, Microsoft Corporation, MICROSOFT.POWERTOYS.SETTINGS.UI.RUNNER.EXE \\.\PIPE\POWERTOYS_RUNNER_C355A365-1F78-4F6B-879B-64485FD4DFD5 \\.\PIPE\POWERTOYS_SETTINGS_C355A365-1F78-4F6B-879B-64485FD4DFD5 8852 SYSTEM FALSE TRUE, MICROSOFT.POWERTOYS.SETTINGS.UI.RUNNER.EXE
UI Elements: 

Step 7: User right click on "PowerToys v0.21.1 (button)"
Program: Windows Explorer, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, EXPLORER.EXE, EXPLORER.EXE
UI Elements: PowerToys v0.21.1, User Promoted Notification Area, ToolbarWindow32, SysPager, TrayNotifyWnd, Taskbar, Shell_TrayWnd

Step 8: User left click on "Exit (menu item)"
Program: PowerToys Runner, 0.21.1.0, Microsoft Corporation, POWERTOYS.EXE, POWERTOYS.EXE
UI Elements: Exit, Context, #32768

Step 9: User left click on "Start (button)"
Program: Windows Explorer, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, EXPLORER.EXE, EXPLORER.EXE
UI Elements: Start, Start, Taskbar, Shell_TrayWnd

Step 10: User right click on "PowerToys (Preview), New (list item)" in "Start"
Program: STARTMENUEXPERIENCEHOST.EXE -SERVERNAME:APP.APPXYWBRABMSEK0GM3TKWPR5KWZBS55TKQAY.MCA, STARTMENUEXPERIENCEHOST.EXE
UI Elements: PowerToys (Preview), New, ListViewItem, Recently added, ListViewItem, All apps, ListView, All apps, SemanticZoom, Start, Windows.UI.Core.CoreWindow

Step 11: User left click on "More (text)" in "PopupHost"
Program: STARTMENUEXPERIENCEHOST.EXE -SERVERNAME:APP.APPXYWBRABMSEK0GM3TKWPR5KWZBS55TKQAY.MCA, STARTMENUEXPERIENCEHOST.EXE
UI Elements: More, TextBlock, More, MenuFlyoutSubItem, MenuFlyout, Popup, Popup, PopupHost, Xaml_WindowedPopupClass, Start, Windows.UI.Core.CoreWindow

Step 12: User left click on "Run as administrator (text)" in "PopupHost"
Program: STARTMENUEXPERIENCEHOST.EXE -SERVERNAME:APP.APPXYWBRABMSEK0GM3TKWPR5KWZBS55TKQAY.MCA, STARTMENUEXPERIENCEHOST.EXE
UI Elements: Run as administrator, TextBlock, Run as administrator, MenuFlyoutItem, MenuFlyout, Popup, Popup, PopupHost, Xaml_WindowedPopupClass, Start, Windows.UI.Core.CoreWindow

Step 13: User right click on "PowerToys v0.21.1 (button)"
Program: Windows Explorer, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, EXPLORER.EXE, EXPLORER.EXE
UI Elements: PowerToys v0.21.1, User Promoted Notification Area, ToolbarWindow32, SysPager, TrayNotifyWnd, Taskbar, Shell_TrayWnd

Step 14: User left click on "Settings (menu item)"
Program: PowerToys Runner, 0.21.1.0, Microsoft Corporation, POWERTOYS.EXE, POWERTOYS.EXE
UI Elements: Settings, Context, #32768

Step 15: User left click in "PowerToys Settings"
Program: Microsoft.PowerToys.Settings.UI.Runner, 0.21.1.0, Microsoft Corporation, MICROSOFT.POWERTOYS.SETTINGS.UI.RUNNER.EXE \\.\PIPE\POWERTOYS_RUNNER_4B49D2AE-6296-4A7D-9CA2-76F8A58D8DD3 \\.\PIPE\POWERTOYS_SETTINGS_4B49D2AE-6296-4A7D-9CA2-76F8A58D8DD3 7184 SYSTEM TRUE TRUE, MICROSOFT.POWERTOYS.SETTINGS.UI.RUNNER.EXE
UI Elements: 

Step 16: User left click in "PowerToys Settings (Not Responding)"
Program: 
UI Elements: 

Step 17: User left click on "Close the program (button)" in "Microsoft.PowerToys.Settings.UI.Runner"
Program: Windows Problem Reporting, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, WERFAULT.EXE /H /SHARED GLOBAL\5637BC2EFECA4946BDD29783717D0489 /T 18328 /P 1652, WERFAULT.EXE
UI Elements: Close the program, Button, CtrlNotifySink, Microsoft.PowerToys.Settings.UI.Runner, TaskDialog, Microsoft.PowerToys.Settings.UI.Runner, #32770, PowerToys Settings (Not Responding), Ghost

Step 18: User right click on "PowerToys v0.21.1 (button)"
Program: Windows Explorer, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, EXPLORER.EXE, EXPLORER.EXE
UI Elements: PowerToys v0.21.1, User Promoted Notification Area, ToolbarWindow32, SysPager, TrayNotifyWnd, Taskbar, Shell_TrayWnd

Step 19: User left click on "Exit (menu item)"
Program: PowerToys Runner, 0.21.1.0, Microsoft Corporation, POWERTOYS.EXE, POWERTOYS.EXE
UI Elements: Exit, Context, #32768

The important part is:

Step 16: User left click in "PowerToys Settings (Not Responding)"
Program: 
UI Elements: 

Step 17: User left click on "Close the program (button)" in "Microsoft.PowerToys.Settings.UI.Runner"
Program: Windows Problem Reporting, 10.0.19041.1 (WinBuild.160101.0800), Microsoft Corporation, WERFAULT.EXE /H /SHARED GLOBAL\5637BC2EFECA4946BDD29783717D0489 /T 18328 /P 1652, WERFAULT.EXE
UI Elements: Close the program, Button, CtrlNotifySink, Microsoft.PowerToys.Settings.UI.Runner, TaskDialog, Microsoft.PowerToys.Settings.UI.Runner, #32770, PowerToys Settings (Not Responding), Ghost

@MecuSorin what is your graphic card?

NVIDIA GeForce RTX 2080 Ti

DxDiag.txt

@mecusorin, can you try and see if https://github.com/microsoft/Xaml-Islands-Samples WPF sample works for you? I'm trying to eliminate XAML Islands from the equation

@crutkas Give me an executable to run.

Tried to use a docker image to build the thing like this https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019, but got _image operating system "windows" cannot be used on this platform_ . Don't want to pollute my machine with tools I will not use myself.

Run WPF_XAMLIslands_v1.exe

netcoreapp3.1.zip

Downloaded, unblocked, unzipped, ran _c:\Users\Sorin\Downloads\netcoreapp3.1\WPF_XAMLIslands_v1.exe_ and went through every tab (from left to right), systematically interacting with everything I could in those tabs until the Media tab. There the app froze.
Started again, the app froze from beginning.
Recorded a session with the app freezing on the 3rd run:
XAMLIslandsFreezing.zip

Ok, that means we have a xaml island problem then ... again. Thanks for verifying.

@mecusorin, sorry for having to bother you again here. We know it is a XAML Island quirk somewhere, lets see if it may be a WPF vs Win32 style issue. Before what i handed you was a WPF application as that is what we use there.

SampleCppApp.exe is the app, a msg dialog will come up and after you press it an app will load. complied version of https://github.com/microsoft/Xaml-Islands-Samples Native app.

SampleCppApp - Copy.zip

@crutkas SampleCppApp seems to work:
SampleCppAppWorking.zip

Thanks, you confirmed my theory.

I still need to get a chipset to recreate this locally

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WesleyM77 picture WesleyM77  Â·  50Comments

carlosmatioli picture carlosmatioli  Â·  45Comments

ukidabek picture ukidabek  Â·  45Comments

0xabu picture 0xabu  Â·  43Comments

Gadgetgeek2000 picture Gadgetgeek2000  Â·  52Comments