how to avoid the StackOverFlowException?

6 posts, 0 answers
  1. Feng
    Feng avatar
    10 posts
    Member since:
    Nov 2011

    Posted 17 Sep 2012 Link to this post

    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

  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 20 Sep 2012 Link to this post

    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
  3. Feng
    Feng avatar
    10 posts
    Member since:
    Nov 2011

    Posted 20 Sep 2012 Link to this post

    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.
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 25 Sep 2012 Link to this post

    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
  5. Feng
    Feng avatar
    10 posts
    Member since:
    Nov 2011

    Posted 09 Oct 2012 Link to this post

    I had tried,but the problem still existed.
  6. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 10 Oct 2012 Link to this post

    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
Back to Top