[MonoDevelop] Running NUnit tests crashes monodevelop

Ian Greenhoe ian at ihgreenman.com
Tue Jul 29 11:48:50 EDT 2008


Hi all,

I've recently started playing around with the version of monodevelop in
svn. I also want to say thank you for keeping it as clean as it is --
there are many projects (open or not) where I would not choose to run
off of the source control head.

I've run into a bug with the NUnit integration, where once I attempt to
run a unit test, monodevelop crashes. I've attached the console output,
which contains the exception that monodevelop dies on.

I updated to the latest svn code about an hour ago, cleaned,
reconfigured (config options below), and rebuilt. Same crash. Debug vs
release appears to make no difference.

So, any ideas? A pointer as to where I might look further? Is there
anything else that I can do that would help track this down?

Thanks!
-Ian

My config is:
Linux (Debian Testing)
mono 1.9.1
nunit 2.2.8

from configure --select
1. [X] main
2. [X] extras/JavaBinding
3. [X] extras/BooBinding
4. [ ] extras/ValaBinding
5. [X] extras/AspNetEdit
6. [X] extras/GeckoWebBrowser
7. [X] extras/MonoDevelop.Database
8. [X] extras/MonoDevelop.Profiling
9. [ ] extras/MonoDevelop.AddinAuthoring
10. [X] extras/MonoDevelop.CodeAnalysis
11. [ ] extras/MonoDevelop.Debugger.Mdb
12. [ ] extras/MonoDevelop.Debugger.Gdb

-------------- next part --------------
Script started on Tue 29 Jul 2008 08:24:43 AM PDT
greenman at anubis:~/workspace-mono/monodevelop$ make run
cd main && make run
make[1]: Entering directory `/home/greenman/workspace-mono/monodevelop/main'
MONODEVELOP_LOCALE_PATH=./build/locale MONO_ADDINS_REGISTRY=./build/bin MOZILLA_FIVE_HOME= LD_LIBRARY_PATH=`echo ":" | sed 's/^://g'` PKG_CONFIG_PATH=`echo "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig/../../lib/pkgconfig/:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/share/pkgconfig/:/usr/local/share/pkgconfig/:/usr/lib64/pkgconfig/:/usr/local/lib64/pkgconfig/" | sed 's/^://g'` exec -a "monodevelop" /usr/bin/mono --debug ./build/bin/MonoDevelop.exe
ERROR [2008-07-29 08:24:55Z]: PIDB file '/home/greenman/workspace-mono/GreenHours/GreenHours/GreenHours.pidb' could not be loaded: 'Unexpected binary element: 0'. The file will be recreated.
ERROR [2008-07-29 08:24:56Z]: PIDB file '/home/greenman/workspace-mono/GreenHours/TestHours/TestHours.pidb' could not be loaded: 'Unexpected binary element: 0'. The file will be recreated.
node `db4o' is not defined on the documentation map
node `mysql' is not defined on the documentation map
node `semweb' is not defined on the documentation map
ERROR [2008-07-29 08:25:10Z]: System.NullReferenceException: Object reference not set to an instance of an object

Server stack trace: 
  at MonoDevelop.NUnit.TestResultsPad.set_Running (Boolean value) [0x0001d] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:269 
  at MonoDevelop.NUnit.TestResultsPad.InitializeTestRun (MonoDevelop.NUnit.UnitTest test) [0x000f9] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:317 
  at MonoDevelop.NUnit.TestMonitor.InitializeTestRun (MonoDevelop.NUnit.UnitTest test) [0x00000] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:629 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000a4] in /tmp/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:147 

Exception rethrown at [0]: 

  at MonoDevelop.NUnit.TestResultsPad.set_Running (Boolean value) [0x0001d] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:269 
  at MonoDevelop.NUnit.TestResultsPad.InitializeTestRun (MonoDevelop.NUnit.UnitTest test) [0x000f9] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:317 
  at MonoDevelop.NUnit.TestMonitor.InitializeTestRun (MonoDevelop.NUnit.UnitTest test) [0x00000] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:629 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000a4] in /tmp/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:147 

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

Server stack trace: 
  at MonoDevelop.NUnit.TestResultsPad.set_Running (Boolean value) [0x0003d] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:271 
  at MonoDevelop.NUnit.TestResultsPad.FinishTestRun () [0x0011d] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:373 
  at MonoDevelop.NUnit.TestMonitor.FinishTestRun () [0x00000] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:632 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000a4] in /tmp/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:147 

Exception rethrown at [0]: 

  at MonoDevelop.NUnit.TestResultsPad.set_Running (Boolean value) [0x0003d] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:271 
  at MonoDevelop.NUnit.TestResultsPad.FinishTestRun () [0x0011d] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:373 
  at MonoDevelop.NUnit.TestMonitor.FinishTestRun () [0x00000] in /home/greenman/workspace-mono/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:632 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000a4] in /tmp/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:147 
make[1]: *** [runmd] Error 1
make[1]: Leaving directory `/home/greenman/workspace-mono/monodevelop/main'
make: *** [run] Error 2
greenman at anubis:~/workspace-mono/monodevelop$ exit

Script done on Tue 29 Jul 2008 08:25:11 AM PDT


More information about the Monodevelop-list mailing list