locked
devenv.exe crashes running webtest RRS feed

  • Question

  • I have been unable to find a solution to my problem online. Thanks in advance for any help.

    System:  Windows 8.1 Enterprise running VS2013 12.0.30723.00 Update 3.

    I'm running a webtest in a loop.  After making over 100 successful webtest HTTP requests, the devenv.exe suddenly crashes and restarts.  I'm unable to complete my webtest run.  I now know that this crash is related to VS2013 SP3.  After installing SP3 my crash now happens on a second machine.

    Event logs first show:

    WebLoadTestAdapter: Failed to invert icons

    This error is followed by a .NET runtime exception:

    Application: devenv.exe
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.ArgumentException

    Full WebLoadTestAdapter event log error:

    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:

    (devenv.exe, PID 5376, Thread 1) WebLoadTestAdapter: Failed to invert icons

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

    Full devenv.exe event log error:

    Application: devenv.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.ArgumentException
    Stack:
       at System.Drawing.Graphics.GetHdc()
       at System.Windows.Forms.ImageList.GetBitmap(Int32)
       at System.Windows.Forms.ImageList+ImageCollection.get_Item(Int32)
       at Microsoft.VisualStudio.TestTools.TestCaseManagement.ResultsToolWindow.PerformUpdateRollupInfo()
       at Microsoft.VisualStudio.TestTools.TestCaseManagement.ResultsToolWindow.UpdateRollupInfoTimerProc(System.Object, System.EventArgs)
       at System.Windows.Forms.Timer.OnTick(System.EventArgs)
       at System.Windows.Forms.Timer+TimerNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.SafeNativeMethods.MessageBox(System.Runtime.InteropServices.HandleRef, System.String, System.String, Int32)
       at System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window, System.String, System.String, System.Windows.Forms.MessageBoxButtons, System.Windows.Forms.MessageBoxIcon, System.Windows.Forms.MessageBoxDefaultButton, System.Windows.Forms.MessageBoxOptions, Boolean)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.DisplayException(System.IServiceProvider, System.Exception)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.DisplayException(System.Exception)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.TestTools.Vsip.VirtualTreeControlWithMenuService.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
       at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WmOwnerDraw(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WmDrawItem(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Application+ParkingWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl._WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.TestTools.Vsip.VirtualTreeControlWithMenuService.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.SafeNativeMethods.MessageBox(System.Runtime.InteropServices.HandleRef, System.String, System.String, Int32)
       at System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window, System.String, System.String, System.Windows.Forms.MessageBoxButtons, System.Windows.Forms.MessageBoxIcon, System.Windows.Forms.MessageBoxDefaultButton, System.Windows.Forms.MessageBoxOptions, Boolean)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.DisplayException(System.IServiceProvider, System.Exception)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.DisplayException(System.Exception)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.TestTools.Vsip.VirtualTreeControlWithMenuService.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
       at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WmOwnerDraw(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WmDrawItem(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Application+ParkingWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl._WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.TestTools.Vsip.VirtualTreeControlWithMenuService.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl._WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.WndProc(System.Windows.Forms.Message ByRef)
       at Microsoft.VisualStudio.TestTools.Vsip.VirtualTreeControlWithMenuService.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
       at Microsoft.VisualStudio.VirtualTreeGrid.NativeMethods.SendMessage(IntPtr, Int32, Int32, Int32)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.set_TopIndex(Int32)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.ScrollVertIntoView(Int32)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.set_CaretIndex(Int32)
       at Microsoft.VisualStudio.VirtualTreeGrid.VirtualTreeControl.set_CurrentIndex(Int32)
       at Microsoft.VisualStudio.TestTools.WebStress.WebTestResultTreeGrid.SelectItem(Microsoft.VisualStudio.VirtualTreeGrid.IBranch, System.Object)
       at Microsoft.VisualStudio.TestTools.WebStress.WebTestResultTreeGrid.AddedPage(Microsoft.VisualStudio.TestTools.WebTesting.WebTestResultPage)
       at Microsoft.VisualStudio.TestTools.WebStress.WebTestResultTreeGrid.UpdateTree(System.Collections.Generic.List`1<Modification>)
       at Microsoft.VisualStudio.TestTools.WebStress.WebTestPlaybackControl.UpdateUiFromResult(Microsoft.VisualStudio.TestTools.WebStress.WebTestResult)
       at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
       at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
       at System.Delegate.DynamicInvokeImpl(System.Object[])
       at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
       at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       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.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
       at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)

    Wednesday, November 12, 2014 8:03 PM

Answers

  • This was a problem with my webtest scripts for weeks.  I'm running a simple loop that loops 30 times with a parameter list.  The result is a webtest script that makes 200-300 requests total.  That doesn't seem unusual or excessive to me.  Typically VS would shut down partway through the 7th loop.  

    I have fixed the problem by installing VS2013 SP4 (Update 4) which just came out this week.  My problem is gone.  Thank goodness.


    • Marked as answer by Tina-Shi Monday, November 17, 2014 9:55 AM
    Friday, November 14, 2014 9:45 PM

All replies

  • Hi Silent,

    >>I now know that this crash is related to VS2013 SP3.  After installing SP3 my crash now happens on a second machine.

    Do you mean that after you install the VS2013 Update, when you run webtest project, you encountered this devenv.exe crashes issue?

    If yes, since I try to create and run a web test project in VS2013 update 3, it works fine in my side. Therefore, I suggest you could try to repair or re-install VS2013 update 3 and then check it again.

    If you still get the devenv.exe crashes issue, I think that the issue may be not related to the VS2013 Update 3 itself issue.

    To further help you narrow download the devenv.exe crashes issue, I suggest you could try the following suggestions to troubleshooting the devenv.exe crashes issue.

    Could you please tell me how many loop times when you are running a webtest?

    Step1: I suggest you could try to reduce the loop times for the web request in the webtest or re-create a simple web test project and then check if it still occurs the devenv.exe crashes issue.

    Step2: If the devenv.exe did not occur the crashes issue, I think that maybe there are too many loop times for web requests or your original webtest project too large impact the devenv.exe crashes issue. In addition, you could also clean your VS cache check it again.

    Step3: If the devenv.exe still occurs the crashes issue, I suggest you run your web test in VS safe mode and then check the devenv.exe crashes issue again.

    Reference:

    http://msdn.microsoft.com/en-us/library/ms241278.aspx

    (1)If you could run your webtest in VS safe mode, I doubt that if you install the third-party package or Add-ins impact the devenv.exe crashes issue. Threefore, I suggest try to disable or un-install these third-party package or Add-ins.

    (2)If you could not run your webtest in VS safe mode, I suggest you try the devenv.exe /resetsettings and devenv.exe /resetuserdata commands to check this issue.

    Step4: I suggest you’d better close some processes on the Task Manager and then run web test again. In addition, please close the Anti-virus software or the firewall or other tools in your machine.

    Step5: I think you may clean your machine to improve the CPU or Memory storage. If you run your windows with a long time, maybe restart your machine would be better.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Tina-Shi Thursday, November 13, 2014 8:29 AM
    Thursday, November 13, 2014 8:29 AM
  • This was a problem with my webtest scripts for weeks.  I'm running a simple loop that loops 30 times with a parameter list.  The result is a webtest script that makes 200-300 requests total.  That doesn't seem unusual or excessive to me.  Typically VS would shut down partway through the 7th loop.  

    I have fixed the problem by installing VS2013 SP4 (Update 4) which just came out this week.  My problem is gone.  Thank goodness.


    • Marked as answer by Tina-Shi Monday, November 17, 2014 9:55 AM
    Friday, November 14, 2014 9:45 PM
  • Hi Silent,

    I am glad that you have solved the problem and thanks for your share us the solution here, so it would be helpful for other members who get the same issue and we will close this case.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 17, 2014 1:39 AM