Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: font
Stack: at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format) at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle) at Greenshot.Drawing.TextContainer.DrawText(Graphics graphics, Rectangle drawingRectange, Int32 lineThickness, Color fontColor, Boolean drawShadow, StringFormat stringFormat, String text, Font font) at Greenshot.Drawing.TextContainer.Draw(Graphics graphics, RenderMode rm) at Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle) at Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle) at Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs e) at System.Windows.Forms.Control.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Configuration dump:
Environment
Win 7 SP1 64-bit
Attachments
1
18 Oct 2016, 07:33 PM
Gliffy Diagrams
Activity
Mike U October 18, 2016 at 7:33 PM
Thanks. I’ll try it.
However, the crash only happened once. So, I don’t know if I’ll be able to draw a reliable conclusion regarding the fix.
==== Mike
From: Robin Krom (JIRA) jira@greenshot.atlassian.net Sent: Tuesday, October 18, 2016 3:21 PM To: Utzig, Michael Subject: [JIRA] (BUG-2047) Crash when closing editor (Exception: System.ArgumentNullException)
Crash occurred after clicking "X" close box. Only happened once.
Software version: 1.2.8.12-RELEASE-cab854b7229994fc9e4deaccd47885df500d7e1a (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2016-10-14 11:11:32 -04:00
OS: Windows 7 Enterprise Service Pack 1 (x64) 6.1 build 7601 revision 10000
GDI object count: 136
User object count: 124
Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: font
Stack:
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle)
at Greenshot.Drawing.TextContainer.DrawText(Graphics graphics, Rectangle drawingRectange, Int32 lineThickness, Color fontColor, Boolean drawShadow, StringFormat stringFormat, String text, Font font)
at Greenshot.Drawing.TextContainer.Draw(Graphics graphics, RenderMode rm)
at Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Configuration dump: