Powertoys continue working.
Powertoys hangs in an infinite loop.
My guess is that it is somehow related to fancy zones, as it only starts hanging as I actually move the task manager.
@treo
just to make sure, can you go to the Task Manager Details tab and take a screen shot showing the PowerToys.exe CPU usage?
Thanks.
before moving it:

after moving it:

12% is what is about 100% of a single cpu core / hyperthread on this machine.
@treo
can you try opening the Settings and go to the FancyZones tab before the problem occurs, then after the problem happens, try to turn off FancyZones in the Settings, does it work?

I can disable it, but it stays in that loop.
OK thank you.
@treo
just to be 100% sure it's FancyZones that causes the problem, can you turn off all the other modules and reproduce the problem? Thanks.
Did that, and it still reproduces.
Also, it doesn't have to be task manager apparently other software that runs with admin privileges will trigger this too.
PowerToys is running with just user privileges though.
I'm having this same issue.
I don't know what should be happening in the code, but I did trace what is happening. The call below to WindowMoveHandlerPrivate::MoveSizeUpdate() which is inside WindowMoveHandlerPrivate::MoveSizeUpdate() is causing an infinite recursion:
In debug builds, it leads to a quick stack overflow. In release builds, it's a tail recursion which the compiler optimizes away, leading instead to an infinite loop.
I "fixed" it by adding a second check here:
else if (m_dragEnabled)
{
MoveSizeStart(m_windowMoveSize, monitor, ptScreen, zoneWindowMap);
if (m_dragEnabled)
{
MoveSizeUpdate(monitor, ptScreen, zoneWindowMap);
}
}
I quoted "fixed" because I have no idea what the correct way to fix this issue is, only that the above works for me. The call to MoveSizeStart() eventually calls WarnIfElevationIsRequired() which sets m_dragEnabled = false iff the window is elevated, and it apparently works, but there could be a better way.
@gurnec
thank you very much for debugging this.
This should be resolved in our 0.21.1 release of PowerToys. https://github.com/microsoft/PowerToys/releases/tag/v0.21.1 to download it.
Thanks. Can confirm that it now works as expected here.