Respondida MTM crashes when I try to Run a test

  • miércoles, 18 de julio de 2012 19:25
     
     

    I am having trouble being able to run tests in Test manager. When I try to run any test MTM.exe crashes.
    It throws a series of errors in the event log but none of them make any sense to me.

    I have tried uninstalling and re-installing all of VS2010.

    I have installed KB2387011.

    It looks

    from the errors like it can not find a module. but i do not know what module it is looking for.

    These is a manual (non-automated) test.

    Here are the messages from the Event Viewer:

    Event 1:
    Faulting application name: mtm.exe, version: 10.0.40219.1, time stamp: 0x4d5f3e9b
    Faulting module name: KERNELBASE.dll, version: 6.1.7600.16850, time stamp: 0x4e211485
    Exception code: 0xe0434352
    Fault offset: 0x0000b9bc
    Faulting process id: 0xd58
    Faulting application start time: 0x01cd651902ee836d
    Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mtm.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: 4b3c5a19-d10c-11e1-b5d2-00219b765eaa

    Event 2:
    Application: mtm.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.FileNotFoundException
    Stack:
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at System.Threading.ExecutionContext.runTryCode(System.Object)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Application.RunDispatcher(System.Object)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run(System.Windows.Window)
       at Microsoft.TeamFoundation.TestManagement.Shells.WpfShell.SingleInstanceWrapper.Launch(System.String[], Boolean)
       at Microsoft.VisualStudio.TestTools.Common.SingleInstance.SingleInstanceApplicationManager.Run(System.String, System.String, LaunchAction, System.String[])
       at Microsoft.TeamFoundation.TestManagement.Shells.WpfShell.SingleInstanceWrapper.Main(System.String[])

    Event 3:
    The description for Event ID 0 from source Microsoft Test Manager cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    The specified module could not be found. (Exception from HRESULT: 0x8007007E)Stack Trace ==>   at System.Management.ThreadDispatch.Start()
       at System.Management.ManagementScope.Initialize()
       at System.Management.ManagementObjectSearcher.Initialize()
       at System.Management.ManagementObjectSearcher.Get()
       at Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.GetManagementObjectFromQuery(SelectQuery query)
       at Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.GetOSInfo(String propertyName)
       at Microsoft.VisualStudio.TestTools.UITest.Recorder.RecorderUtilities.CheckIfRebootRequired()
       at Microsoft.VisualStudio.TestTools.ManualTest.Common.AFNRecorder.CheckIfRebootRequired(Boolean isAutomateSharedStep)
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.StartMTRIntegratedActivity(TfsTeamProjectCollection server, ITestManagementTeamProject project, ITestRun Run, ITestEnvironment environment)
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.CreateManualTestRun(TestPointCollection manualPoints)
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.CreateTestRuns()
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.Perform()
       at Microsoft.TeamFoundation.TestManagement.Activities.TestPointsWorksheetView.OnContextMenuItemClick(Object sender, RoutedEventArgs e)
       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 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext 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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(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.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.TeamFoundation.TestManagement.Shells.WpfShell.SingleInstanceWrapper.Launch(String[] args, Boolean isFirstInstance)
       at Microsoft.VisualStudio.TestTools.Common.SingleInstance.SingleInstanceApplicationManager.Run(String appId, String applicationTitle, LaunchAction action, String[] args)
       at Microsoft.TeamFoundation.TestManagement.Shells.WpfShell.SingleInstanceWrapper.Main(String[] args)


    the message resource is present but the message is not found in the string/message table

     

    the message resource is present but the message is not found in the string/message table

    Event 4:

    The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    (mtm.exe, PID 3416, Thread 1) The specified module could not be found. (Exception from HRESULT: 0x8007007E)Stack Trace ==>   at System.Management.ThreadDispatch.Start()
       at System.Management.ManagementScope.Initialize()
       at System.Management.ManagementObjectSearcher.Initialize()
       at System.Management.ManagementObjectSearcher.Get()
       at Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.GetManagementObjectFromQuery(SelectQuery query)
       at Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.GetOSInfo(String propertyName)
       at Microsoft.VisualStudio.TestTools.UITest.Recorder.RecorderUtilities.CheckIfRebootRequired()
       at Microsoft.VisualStudio.TestTools.ManualTest.Common.AFNRecorder.CheckIfRebootRequired(Boolean isAutomateSharedStep)
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.StartMTRIntegratedActivity(TfsTeamProjectCollection server, ITestManagementTeamProject project, ITestRun Run, ITestEnvironment environment)
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.CreateManualTestRun(TestPointCollection manualPoints)
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.CreateTestRuns()
       at Microsoft.TeamFoundation.TestManagement.Activities.ExecuteManualTestAction.Perform()
       at Microsoft.TeamFoundation.TestManagement.Activities.TestPointsWorksheetView.OnContextMenuItemClick(Object sender, RoutedEventArgs e)
       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 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext 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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(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.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.TeamFoundation.TestManagement.Shells.WpfShell.SingleInstanceWrapper.Launch(String[] args, Boolean isFirstInstance)
       at Microsoft.VisualStudio.TestTools.Common.SingleInstance.SingleInstanceApplicationManager.Run(String appId, String applicationTitle, LaunchAction action, String[] args)
       at Microsoft.TeamFoundation.TestManagement.Shells.WpfShell.SingleInstanceWrapper.Main(String[] args)


    the message resource is present but the message is not found in the string/message table


    Error 5:
    The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event
    is not installed on your local computer or the installation is corrupted. You can install or repair the component on the
    local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    (mtm.exe, PID 3416, Thread 4) Error in IsLabConfigured. Error=TF259194: System Center Virtual Machine Manager 2008 R2
    Admin Console is not installed on following machine : xxxxxxxxx001. Please make sure it is installed properly before performing any Lab Management operation..

    the message resource is present but the message is not found in the string/message table

    This last one is particularly disturbing because we are not using Lab maanager.

    Has anyone got any idea what is wrong?

    thanks,
    Kevin

Todas las respuestas

  • jueves, 19 de julio de 2012 5:39
    Moderador
     
     

    Hi Kevin,

    From the log, i notive "TF259194: System Center Virtual Machine Manager 2008 R2 Admin Console is not installed on following machine : "

    Can you provide more information about the test case, a manual one or a automated one?

    Which part of the test case use vs lab?

    What's result after install SCVMM? About SCVMM, you can refer to Using a Virtual Lab for Your Application Lifecycle.

    Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

  • jueves, 19 de julio de 2012 13:06
     
     

    It is a manual test. In fact it is just a simple place holder test. It has 1 step which is simply to have the user start the browser.

    I should not be using Lab Manager at all.

    I did not install SCVMM. I had this working previously without this so I have not installed it.

    Is it now a requirement to have SCVMM or have I accidently turned something on that requires this?

  • viernes, 20 de julio de 2012 6:02
    Moderador
     
     

    Hi Kevin,

    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Best regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

  • viernes, 20 de julio de 2012 8:50
    Moderador
     
     

    Kevin,

    KB2387011 is released on Oct 2010 which is early.  We have VS 2010 SP1 and a number of new updates since then.  If you haven't apply these, you'll need to:

    1. VS 2010 SP1
    2. TFS and VS 2010 SP1 Cumulative Update 2, on top of VS 2010 SP1.

    Please let me know if the above updates could resolve theissue.

    thanks,


    Forrest Guo | MSDN Community Support | Feedback to manager

  • viernes, 20 de julio de 2012 12:54
     
     

    These were already applied. They had no effect.

    A little more information. This appears to only be on my PC. I can run he tests on our TFS Build server and it all runs fine. I have not conducted any research on the rest of our team but it appears to be a local problem rather than anything with the TFS server.

    My PC is Windows 7 Enterprise with all of the latest patches installed.

    Visual Studio is the ultimate version 10 also with all the latest versions installed.

    thanks,

    Kevin

  • lunes, 23 de julio de 2012 2:05
    Moderador
     
     Respondida

    Faulting module name: KERNELBASE.dll, version: 6.1.7600.16850, time stamp: 0x4e211485

    From the KERNELBASE.DLL version, I suspect Windows 7 SP1 is not applied correctly.  Or you might have this file overwriten somehow. My suggestion is that you reapply Windows 7 SP1, and reapply Visual Studio 2010 SP1.

    After Win 7 SP1 applied, the file version should be 6.1.7601.17651.

    Thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager


  • jueves, 26 de julio de 2012 1:27
    Moderador
     
     

    Kevin,

    Are you able to get the file version match?

    Thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager

  • viernes, 27 de julio de 2012 1:44
    Moderador
     
     

    I temparaly mark the reply as answer. Please report back if you still need assistance.

    Another hint is that: we shall always install Microsoft update from "official" site.

    thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager