#859 Exception when click "Run" button

2.5
closed-works-for-me
nobody
nunit-gui (245)
5
2009-12-20
2009-08-05
No

This was a one-time exception that I cannot reproduce. After closing NUnit GUI and immediately reopening and clicking "Run" again, it did not get an exception (same version of my test suite DLL both times):

Conditions when exception occurred:

1. Test suite had already been loaded and run and test results were showing in the Text Output tab.
2. Made a minor change in my own code.

When I clicked the "Run" button in the NUnit 2.5.1 GUI, I got the following .NET Exception dialog:

Title: "DocMan.NUnit.dll - NUnit"
(DocMan.NUnit.dll is, of course, my test suite DLL)

Message:
----------------
Unhandled exception has occured in your application... blah blah blah

Object reference not set to an instance of an object.
---------------------

Here are the details:
--------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at NUnit.Core.ProxyTestRunner.BeginRun(EventListener listener, ITestFilter filter)
at NUnit.Util.TestLoader.RunTests(ITestFilter filter)
at NUnit.UiKit.TestSuiteTreeView.RunTests(ITest[] tests, Boolean ignoreCategories)
at NUnit.Gui.NUnitForm.runButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
nunit
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/nunit.exe
----------------------------------------
nunit-gui-runner
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/lib/nunit-gui-runner.DLL
----------------------------------------
nunit.core
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/lib/nunit.core.DLL
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
nunit.util
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/lib/nunit.util.DLL
----------------------------------------
nunit.uikit
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/lib/nunit.uikit.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
nunit.core.interfaces
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/lib/nunit.core.interfaces.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
nunit.uiexception
Assembly Version: 2.5.1.9189
Win32 Version: 2.5.1.9189
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.5.1/bin/net-2.0/lib/nunit.uiexception.DLL
----------------------------------------
cdbxblp-
Assembly Version: 2.5.1.9189
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Discussion

  • Charlie Poole

    Charlie Poole - 2009-08-07

    We'll hold on to this in the hope that more info appears.

     
  • Charlie Poole

    Charlie Poole - 2009-12-20
    • status: open --> closed-works-for-me
     
  • Charlie Poole

    Charlie Poole - 2009-12-20

    Closing this since it has not reappeared. If it does, please report on our new site (http://launchpad.net/nunitv2)

     

Log in to post a comment.