Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

nCrunch exit code
Rattle
#1 Posted : Saturday, September 28, 2013 9:28:03 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/28/2013(UTC)
Posts: 2
Location: Ireland


I have a particular test which crashes the ncrunch process nCrunch.TestHost.x86.exe to terminate with exit code 3. Is there any documentation on what different exit codes mean?


Remco
#2 Posted : Saturday, September 28, 2013 12:56:37 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Rattle -

NCrunch tries to handle every exception it can, with the intention of reporting more detailed information as part of the test result. Because of this, any exit codes returned from the testhost process are indicative of a system error that NCrunch isn't able to handle or accurately report... so I'm afraid that error code 3 is unknown to me. I recommend trying to run the offending test with a debugger attached to see if this will give you more information.

Two common errors that are known to crash the testhost process in a way NCrunch cannot control are:
- Stack overflow
- Out of memory
Rattle
#3 Posted : Saturday, September 28, 2013 2:59:34 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/28/2013(UTC)
Posts: 2
Location: Ireland

Thanks, the offending code caused a stack overflow error. I had tried to run in debug mode but that crashed out silently too.
Remco
#4 Posted : Saturday, September 28, 2013 10:25:45 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Great to hear you isolated the issue. NCrunch V2 is expected to bring improved handling of stack overflows. It's a tricky area, as a stack overflow generally causes the CLR to completely annihilate the process with no chance of recovery.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download