microsoft / PowerToys

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

Unable to edit Fancy Zone Editor Bug Report #11854

Closed silenThunderr closed 3 years ago

silenThunderr commented 3 years ago

Microsoft PowerToys version

0.37.2

Running as admin

Area(s) with issue?

FancyZones

Steps to reproduce

Exception

System.TypeLoadException: Could not load type 'ModernWpf.ResourceAccessor' from assembly 'ModernWpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   Source: ModernWpf.Controls
   TargetAssembly: ModernWpf.Controls, Version=0.9.4.0, Culture=neutral, PublicKeyToken=null
   TargetModule: ModernWpf.Controls.dll
   TargetSite: Void .cctor()
   at ModernWpf.Controls.NumberBox..cctor()

System.TypeInitializationException: The type initializer for 'ModernWpf.Controls.NumberBox' threw an exception.
   Source: ModernWpf.Controls
   TargetAssembly: ModernWpf.Controls, Version=0.9.4.0, Culture=neutral, PublicKeyToken=null
   TargetModule: ModernWpf.Controls.dll
   TargetSite: Void .ctor()
   at ModernWpf.Controls.NumberBox..ctor()

System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'ModernWpf.Controls.NumberBox' that matches the specified binding constraints threw an exception.
   Source: PresentationFramework
   TargetAssembly: PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
   TargetModule: PresentationFramework.dll
   TargetSite: Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at FancyZonesEditor.MainWindow.InitializeComponent()
   at FancyZonesEditor.MainWindow..ctor(Boolean spanZonesAcrossMonitors, Rect workArea)
   at FancyZonesEditor.Overlay.OpenMainWindow()
   at FancyZonesEditor.Overlay.Show()
   at FancyZonesEditor.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run()
   at FancyZonesEditor.App.Main()

Environment

✔️ Expected Behavior

Launch layout editior

❌ Actual Behavior

Unexpected error Bug report created and pasted

image

Other Software

No response

crutkas commented 3 years ago

Tracked in #11565