This is a migrated thread and some comments may be shown as answers.

how to avoid the StackOverFlowException?

5 Answers 533 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Feng
Top achievements
Rank 1
Feng asked on 17 Sep 2012, 02:57 PM

Hi

There is a testlist that contains some tests.If i run the testlist in VS,it will not execute all the tests due to the MSTest.exe fail to work.The report shows that "Process is terminated due to StackOverFlowException".So,i want to know how to cause the StackOverFlowException and how can i avoid the exception and solve the problem?

Thanks

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 20 Sep 2012, 08:33 AM
Hi Feng,

I am sorry to hear you are running into this problem. However, there is no way to determine why you are getting a StackOverFlowException exception without more information.  
  • How often does this occur? Everytime?
  • What version of .Net Framework you are working with?
  • Can you identify a test that this happens the most with or is it any test at random?
  • If you can identify a specific test where this crash happens, can you send us a copy of it, so we can try to reproduce the issue locally?

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Feng
Top achievements
Rank 1
answered on 20 Sep 2012, 03:08 PM
Hi

If a testlist contains more than 100 tests,the MSTest.exe ofen fails to work.So i observe the memory of MSTest.exe while the tests are running,i find that MSTest.exe is eating memory little by little and can not release memory,at last MSTest.exe fail to work.I don not be sure whether it is the root that causes the problem.I want to why the MSTest.exe is eating memory and don't release memory.And how can i release the memory of MSTest.exe while the tests are running?

Thanks for your answer.
0
Plamen
Telerik team
answered on 25 Sep 2012, 04:13 PM
Hi Feng,

I apologize for the delay in getting back to you. Please try the following:

1. In Visual Studio, go to Tools-->Options...
2. Expand the Test Tools node and select Test Execution.
3. Under Performance, uncheck the "Keep test execution engine running between test runs" checkbox.

Here's a video demonstrating the process. This should resolve the problem you are experiencing.

All the best,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Feng
Top achievements
Rank 1
answered on 09 Oct 2012, 02:04 PM
I had tried,but the problem still existed.
0
Plamen
Telerik team
answered on 10 Oct 2012, 12:44 PM
Hi Feng,

Unfortunately we do not have control over the MSTest.exe process. The MsTest runner comes with Visual Studio and it's a Microsoft's product. One thing you can try is to install Visual Studio 2012 and see if this is fixed in the new version. You can also break your test suite into multiple shorter lists in order to overcome the StackOverFlowException issue.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Feng
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Feng
Top achievements
Rank 1
Share this question
or