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

Notification

Icon
Error

VS2008 crashes when debugging
sferencik
#1 Posted : Monday, April 22, 2013 9:09:46 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/4/2013(UTC)
Posts: 16
Location: Czech Republic

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
VS2008 sometimes crashes when I debug (NUnit) tests. This started happening after my recent installation of NCrunch, making NCrunch the prime suspect. The crash ("VS stopped working") happens as I trigger the debugging of the test. The debugger doesn't even get as far as the first line of the test. (There are no SetUp methods.)

Unfortunately, I haven't got a reproducible case yet. It happens about 1/3 times. I have had it crash on me from different tests.

How can I gather more information about the cause?

Thanks,
Sam
Remco
#2 Posted : Monday, April 22, 2013 9:57:16 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Sam -

Thanks for sharing this issue. Unfortunately, because of the number of components and variables involved, this may be a tough one to isolate. I'm wondering if you might be able to help by answering the following questions:

- Does this happen only when you debug using NCrunch? Or when you debug in general?
- Does this happen for a specific solution, or for all solutions on your machine?
- Do you have any colleagues or team members with a similar environment working on your project with NCrunch? If so, do they also experience this problem?
- Can you share some more details about the setup of your system? I.e. which O/S, CPU, amount of memory?
- Do you have any other VS plugins installed?


Thanks!

Remco
sferencik
#3 Posted : Tuesday, April 23, 2013 2:29:11 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/4/2013(UTC)
Posts: 16
Location: Czech Republic

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Hi Remco,

I use VS2008 with ReSharper 6.1 on Windows 7 64-bit. Intel Xeon X5650, 6 GB RAM. Admittedly, I went low on memory a couple of times over the past few days (the days when I had the crash). I'll try to watch out for a correlation.

I have seen this happen when triggering the debugger from both ReSharper (Ctrl-U, D) and from NCrunch (hitting the bug button in the NCrunch Tests pane). I haven't triggered debugging using VS's F5 for a while.

I'm only working on a single solution. I am the only one using NCrunch (evaluating it) at present. If things go well, I'm hoping to widen this to other users.

My plugins:
Intel® VTune™ Amplifier XE 2013 Update 3
JetBrains ReSharper 6.1 C# Edition build 6.1.1000.82 on 2012-02-15T15:14:48
JetBrains TeamCity Addin 7.1 build 7.1.664.137 on 2013-01-27T13:08:30
NCrunch

Is there some product or system log that I could consult for more info when the crash occurs?

Thanks,
Sam
Remco
#4 Posted : Tuesday, April 23, 2013 9:34:47 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Sam,

NCrunch itself doesn't tinker with the debugger outside of its own debug actions (i.e. when you instruct it to debug or break into a test), so as you've mentioned that this only started after NCrunch was installed, this leads me to suspect one of the following:

- The installation of NCrunch has triggered an unrelated configuration change or corruption issue within Visual Studio itself that causes the behaviour to appear randomly. VS plugins are usually installed with the "devenv.exe /setup" option, which causes a cascade of changes and refreshing of VS data that can sometimes surface problems if the setup operation didn't work correctly. Try executing "devenv.exe /setup", waiting for the process to complete, then restart your computer and see if this makes any difference.
- The usage of NCrunch has resulted in increased memory utilisation on your machine, thereby providing the tipping point beyond which the machine becomes unstable
- There is something else going on here with an unrelated piece of software that we haven't yet identified

I think it would be worth doing some experimentation to try and narrow down the issue. Does working without NCrunch installed make the issue go away? Or can you find a clear pattern around memory utilisation when the issue appears?


Cheers,

Remco
1 user thanked Remco for this useful post.
sferencik on 4/24/2013(UTC)
sferencik
#5 Posted : Wednesday, April 24, 2013 3:14:42 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/4/2013(UTC)
Posts: 16
Location: Czech Republic

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Thanks for the tips. I'm inclined to blame memory issues. I haven't had a crash for 2 days now. I will report back if/when I know more.

Thanks,
Sam
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.049 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download