microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.4k stars 6.56k forks source link

FancyZonesEditor Crashing on Exit, not saving Zones #13719

Closed JacqylFrost closed 3 years ago

JacqylFrost commented 3 years ago

Microsoft PowerToys version

0.47.0

Running as admin

Area(s) with issue?

FancyZones Editor

Steps to reproduce

image

Open FancyZone Editor, change zones, close program. It crashes, zones work as if they were saved for a while, but eventually revert to defaults.

Log:

Exception

System.ComponentModel.Win32Exception: Invalid window handle.
   Source: WindowsBase
   TargetAssembly: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
   TargetModule: WindowsBase.dll
   TargetSite: Void HookUpDefWindowProc(IntPtr)
   at MS.Win32.ManagedWndProcTracker.HookUpDefWindowProc(IntPtr hwnd)
   at MS.Win32.ManagedWndProcTracker.OnAppDomainProcessExit()
   at MS.Win32.ManagedWndProcTracker.ManagedWndProcTrackerShutDownListener.OnShutDown(Object target, Object sender, EventArgs e)
   at MS.Internal.ShutDownListener.HandleShutDown(Object sender, EventArgs e)
   at System.AppContext.OnProcessExit()

Environment

✔️ Expected Behavior

Saves zones, closes.

❌ Actual Behavior

Doesn't seem to save zones, crashes on close.

Other Software

No response

franky920920 commented 3 years ago

Duplicate of #13105

franky920920 commented 3 years ago

Thanks for reporting this. This issue is a duplicate. We'll track this in #13105 to centralize the discussion thread.