divyang4481 / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Icarus GUI Test Runner crashes when attempting to debug NUnit tests with Visual Studio 2010 #878

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a project in Visual Studio with NUnit tests
2. Build project in Visual Studio
3. Add the test assembly to the Icarus GUI Test Runner
4. Select a test and click the [Debug] button

What is the expected output? What do you see instead?
I get an "Icarus has stopped working" error, with an option to either debug, or 
close the program.

What version of the product are you using? On what operating system?
Gallio 3.3.458
Nunit 2.5.10.11092
Visual Studio 2010 10.0.30319.1 RTMRel
Windows 7 Professional

Please provide any additional information below.
The user account under which I develop (and run Visual Studio, Icarus, etc) is 
not an administrator account.

Original issue reported on code.google.com by sendtoj...@gmail.com on 1 Feb 2012 at 10:44

GoogleCodeExporter commented 8 years ago
x86 or 64?

If you debug, can you get the exception/callstack?

Original comment by grahamr...@gmail.com on 2 Feb 2012 at 9:03

GoogleCodeExporter commented 8 years ago
x86. I used Visual Studio 2010 to debug and got the following:
"Unhandled exception at 0x77cb33bb in Gallio.Icarus.exe: 0xC0000374: A heap has 
been corrupted."

The call stack is unfortunately, just full of pointers:
>   ntdll.dll!77cb33bb()    
    [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 
    ntdll.dll!77cb42eb()    
    ole32.dll!76834102()    
    ole32.dll!7683411e()    
    rpcrt4.dll!76c50224()   
        ...

It goes on for some 35 or so lines, if you'd like the full call stack, or if 
I've posted the wrong thing, let me know. Thanks!

Original comment by sendtoj...@gmail.com on 2 Feb 2012 at 1:51

GoogleCodeExporter commented 8 years ago
Heap corruption, oh dear!

At this point I'd normally recommend re-installing something: Gallio, Visual 
Studio,... Windows :)

We can get to the bottom of what's causing the crash, if you don't mind 
creating a dump of the process. But there's a good chance that won't really 
help.

Before any of that though, let me try and reproduce it, just in case it's not 
your machine.

Original comment by grahamr...@gmail.com on 2 Feb 2012 at 2:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm getting the same error using the same configuration.

Unhandled exception at 0x772a380b in Gallio.Icarus.exe: 0xC0000374: A heap has 
been corrupted.

Original comment by j...@miguel.ms on 9 Feb 2012 at 2:13

GoogleCodeExporter commented 8 years ago
I can't reproduce this, I'm afraid. Does it happen with every project?

Original comment by grahamr...@gmail.com on 12 Feb 2012 at 10:15

GoogleCodeExporter commented 8 years ago
Yea, I special made a new project to make sure it wasn't anything to do with a 
particular setup I had.

Original comment by sendtoj...@gmail.com on 13 Feb 2012 at 11:10

GoogleCodeExporter commented 8 years ago
Could you attach the project? I don't think it will help, but just in case.

Original comment by grahamr...@gmail.com on 15 Feb 2012 at 8:50

GoogleCodeExporter commented 8 years ago
Here you go :)

Original comment by sendtoj...@gmail.com on 15 Feb 2012 at 3:46

Attachments:

GoogleCodeExporter commented 8 years ago
Eww, VB. Just kidding :)

It works as expected on my machine, I'm afraid. No crash.

I realise it's a bit of a cop out, but I'd reinstall VS SP1.

Can you debug using the nunit gui?

Original comment by grahamr...@gmail.com on 15 Feb 2012 at 8:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Unfortunately I'm in a corporate environment and can't really re-install VS. 

I can debug with NUnit's GUI by first attaching to its process from VS. I 
didn't attach to Gallio from VS previously... is that a crucial step that I'm 
missing here? (However, attaching to Gallio.Icarus.exe didn't seem to help 
either).

Original comment by sendtoj...@gmail.com on 17 Feb 2012 at 10:07

GoogleCodeExporter commented 8 years ago
I'm getting the same issue. Attached is the result after saying I want to debug 
the crash

Original comment by mult1t...@gmail.com on 6 May 2012 at 1:11

Attachments: