[Mono-bugs] [Bug 76615][Maj] New - NRE crash when running
nunit-gui.exe
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Nov 1 19:53:49 EST 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by matt at use.net.
http://bugzilla.ximian.com/show_bug.cgi?id=76615
--- shadow/76615 2005-11-01 19:53:49.000000000 -0500
+++ shadow/76615.tmp.8248 2005-11-01 19:53:49.000000000 -0500
@@ -0,0 +1,83 @@
+Bug#: 76615
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: matt at use.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NRE crash when running nunit-gui.exe
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. with current svn and nunit 2.2.2, mono nunit-gui.exe
+
+Actual Results:
+NRE crash:
+ Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in [0x00001]
+(at /home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/Font.cs:568)
+System.Drawing.Font:GetHeight (Single dpi)
+in [0x00006]
+(at /home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/Font.cs:508)
+System.Drawing.Font:GetHeight ()
+in [0x00001]
+(at /home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/Font.cs:394)
+System.Drawing.Font:get_Height ()
+in (wrapper remoting-invoke-with-check) System.Drawing.Font:get_Height ()
+in [0x00003]
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs:2990)
+System.Windows.Forms.LineTag:FormatText (System.Windows.Forms.Line line,
+Int32 start, Int32 length, System.Drawing.Font font, System.Drawing.Brush
+color)
+in [0x00047]
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs:1260)
+System.Windows.Forms.TextBoxBase:TextBoxBase_FontOrColorChanged
+(System.Object sender, System.EventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+in [0x00013]
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3855)
+System.Windows.Forms.Control:OnFontChanged (System.EventArgs e)
+in [0x00002]
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs:689)
+System.Windows.Forms.TextBoxBase:OnFontChanged (System.EventArgs e)
+in [0x00031]
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:1653)
+System.Windows.Forms.Control:set_Font (System.Drawing.Font value)
+in <0x08410> NUnit.Gui.NUnitForm:InitializeComponent ()
+in <0x00034> NUnit.Gui.NUnitForm:.ctor (CommandLineOptions
+commandLineOptions)
+in (wrapper remoting-invoke-with-check) NUnit.Gui.NUnitForm:.ctor
+(NUnit.Gui.NUnitForm/CommandLineOptions)
+in <0x00340> NUnit.Gui.AppEntry:Main (System.String[] args)
+in <0x00019> NUnit.Gui.Class1:Main (System.String[] args)
+
+
+Expected Results:
+ Shouldn't crash.
+
+
+How often does this happen?
+ Every time.
+
+Additional Information:
+ I tried to reproduce this in a small program, but couldn't reproduce it
+by creating Font() objects myself. I think the crash may be related to the
+following line(s):
+this.stdErrTab.Font = ((System.Drawing.Font)
+(resources.GetObject("stdErrTab.Font")));
More information about the mono-bugs
mailing list