0
Fixed
Anonymous 6 months ago in Studio • updated by Gandalf 6 months ago 16
Server Version : 0.0.6254.19655 Studio Version : 0.0.6254.19667 Email Address : BB Steps to follow : Closing Test Editor from outside of studio position at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.RoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at Infragistics.Windows.DockManager.ContentPane.OnClosing(PaneClosingEventArgs args) at Infragistics.Windows.DockManager.ContentPane.RaiseClosing(PaneClosingEventArgs args) at Infragistics.Windows.DockManager.XamDockManager.ClosePaneHelperImpl(ContentPane pane, PaneCloseAction closeAction, Boolean raiseEvents, Boolean removeFromCurrentContainer) at Infragistics.Windows.DockManager.XamDockManager.ClosePaneHelper(ContentPane pane, PaneCloseAction closeAction, Boolean raiseEvents, Boolean removeFromCurrentContainer) at Infragistics.Windows.DockManager.XamDockManager.ClosePaneHelper(ContentPane pane, PaneCloseAction closeAction, Boolean raiseEvents) at Infragistics.Windows.DockManager.XamDockManager.ClosePanes(IList`1 panes) at Infragistics.Windows.DockManager.PaneToolWindow.OnClosing(CancelEventArgs e) at Infragistics.Windows.Controls.ToolWindow.OnClosingInternal(CancelEventArgs e) at Infragistics.Windows.Controls.ToolWindowHostWindow.OnClosing(CancelEventArgs e) at System.Windows.Window.WmClose() at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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) Warewolf Studio log file : at System.Windows.Window.Close() at Infragistics.Windows.Controls.ToolWindowHostWindow.CloseHelperImpl() at Infragistics.Windows.Controls.ToolWindowHostWindow.CloseHelper() at Infragistics.Windows.Controls.ToolWindowHostWindow.Infragistics.Windows.Controls.IToolWindowHost.Close() at Infragistics.Windows.Controls.ToolWindow.CloseOverride() at Infragistics.Windows.DockManager.PaneToolWindow.CloseOverride() at Infragistics.Windows.Controls.ToolWindow.Close() at Dev2.ViewModels.StudioTestViewModel.CloseView() at Dev2.Studio.ViewModels.WorksurfaceContextManager.CloseWorkSurfaceContext(WorkSurfaceContextViewModel context, PaneClosingEventArgs e, Boolean dontPrompt) at Dev2.Studio.ViewModels.MainViewModel.DeactivateItem(WorkSurfaceContextViewModel item, Boolean close) at Caliburn.Micro.ConductorBase`1.Caliburn.Micro.IConductor.DeactivateItem(Object item, Boolean close) in c:\Projects\caliburnmicro\src\Caliburn.Micro.Silverlight\ConductorBase.cs:line 27 at Caliburn.Micro.Screen.<>c__DisplayClass1a.b__14() in c:\Projects\caliburnmicro\src\Caliburn.Micro.Silverlight\Screen.cs:line 191 at Caliburn.Micro.Screen.b__21() in c:\Projects\caliburnmicro\src\Caliburn.Micro.Silverlight\Screen.cs:line 236 at Caliburn.Micro.Execute.<>c__DisplayClass1.b__0(Action action) in c:\Projects\caliburnmicro\src\Caliburn.Micro.Silverlight\INPC.cs:line 100 at Caliburn.Micro.Execute.OnUIThread(Action action) in c:\Projects\caliburnmicro\src\Caliburn.Micro.Silverlight\INPC.cs:line 126 Warewolf Server log file : 2017-02-14 13:41:48,403 [4] INFO - Process Memory Usage(mb): 60 Number of Requests: 194 Time Taken(Ms): 227986 Uptime: 02:46:00.8796375 2017-02-14 13:42:48,404 [4] INFO - Process Memory Usage(mb): 60 Number of Requests: 194 Time Taken(Ms): 227986 Uptime: 02:47:00.8802077
Pieter via Jira 6 months ago

Branch name: 2506-CloseUnpinnedPaneToolWindowException

Pieter via Jira 6 months ago

Issue occurred when trying to close the unpinned window from the taskbar. There is a background call that occurs that tries to close the window twice. This is valid when you right-click the unpinned window and select hide, as this causes a deactivate to occur before the close window gets called. This has been resolved and logging has been added to catch this exception and show as information that the exception is handled in the background.

Genie via Jira 6 months ago

CR:

  1. How is this tested to ensure that we do not have a repeat of the issue?
  2. Are there other places that require this code?
Pieter via Jira 6 months ago

We are unable to put a test down for this as we cannot map the taskbar items to close it. But the code was found to cause a duplicate close call which was removed.

Pieter via Jira 6 months ago

Ran the coded ui tests around the area where the code was removed from. Found and resolved a bug that was picked up on the coded ui when trying to run the Rull All Tests and then opening the Tests view. All coded ui tests around this area are passing.

Pieter via Jira 6 months ago

Added more tests and upped the coverage.

Pieter via Jira 6 months ago

Added more test coverage. There is also CodedUI tests in place and coverage for those areas affected