8
Vote

Win32Exception: The operation completed successfully

description

When CanAutoHide = True, then the program will crash a few seconds after I hover over an auto hidden pane. I can simulate it always, problem is that it's a big project so I can't just give a part of the solution. But this is the stacktrace:

at MS.Win32.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent, HwndWrapperHook[] hooks)
at System.Windows.Window.EnsureHiddenWindow()
at System.Windows.Window.SetTaskbarStatus()
at System.Windows.Window.CreateAllStyle()
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.ShowHelper(Object booleanBox)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.Adorners.AdornerLayerWindow.ShowImpl()
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.Adorners.AdornerLayerWindow..ctor(HwndSource targetSource, IAdornerLayerHost host, IHitTestHelper hitTestHelper, IInputEventHelper inputEventHelper, IUserOptions userOptions)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.Adorners.AdornerLayerProvider.GetAdornerLayer(Visual visual, Boolean createIfMissing)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.Adorners.AdornerService.UpdateAdornerLayerForRoot(UIElement rootElement, AdornerLayerStates state)
at Microsoft.XamlDiagnostics.WpfTap.Utility.DispatcherUtility.SafeInvokeActionForElementAsync[T](DispatcherPriority priority, T element, Action1 action)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.Adorners.AdornerService.AttachToVisualTreeRoot(DependencyObject root)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.VisualTree.VisualTreeContext.RegisterRoot(IVisualTreeRoot root, Boolean isInitializing)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.VisualTree.VisualTreeContext.ProcessVisualTreeChanges(WpfVisualTreeChangeArgs change)
at System.EventHandler
1.Invoke(Object sender, TEventArgs e)
at Microsoft.XamlDiagnostics.WpfTap.WpfVisualTreeService.VisualTree.WpfVisualDiagnostics.OnWpfVisualTreeChanged(Object sender, VisualTreeChangeEventArgs args)
at System.Windows.Diagnostics.VisualDiagnostics.OnVisualChildChanged(DependencyObject parent, DependencyObject child, Boolean isAdded)
at System.Windows.FrameworkElement.set_TemplateChild(UIElement value)
at System.Windows.Controls.ContentPresenter.UseContentTemplate.BuildVisualTree(FrameworkElement container)
at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField
1 templateDataField, FrameworkElement container)
at System.Windows.FrameworkElement.ApplyTemplate()
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Interop.HwndSource.LayoutFilterMessage(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.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

file attachments

comments

FodderZone wrote May 17, 2016 at 4:42 PM

I experience the same issue when switching from Visual Studio 2013 to 2015. Any resolution yet?

wrote May 27, 2016 at 6:54 PM

lucas_baruffi wrote May 27, 2016 at 6:54 PM

Same here with vs 2015, LayoutAutoHideWindowControl at line 125

wrote May 27, 2016 at 6:56 PM

wrote Jun 10, 2016 at 12:56 AM

wrote Sep 4, 2016 at 3:55 PM

Shujee wrote Oct 7, 2016 at 6:32 PM

Any update on this one? I'm facing the same thing on some of the machines, while not on others. Very strange indeed.

Shujee wrote Oct 7, 2016 at 6:41 PM

Just a piece of help if someone is going to look into it. This error goes away if we turn off the following option in VS2015:

Tools –> Options –> Debugging –> General –> Enable UI Debugging Tools for XAML

wrote Oct 19, 2016 at 6:13 PM

wrote Jan 17 at 9:39 AM

wrote Jan 31 at 10:36 PM

wrote Aug 1 at 5:34 PM