We're updating the issue view to help you get more done. 

Greenshot Editor Canvas Changed to White Screen

Description

I had two pictures to edit using Greenshot. I copied the first one to my clipboard. Went to task bar, right click on Greenshot -> Open Image from Clipboard, brought up the editor and did my editing. I added a textbox, and some rectangles and lines. Chose File -> Copy to Clipboard. I pasted the image in an email. I left this instance of Greenshot open.

I then went to copy the second image to my clipboard. Went through the same process of opening the editor. I added the same stuff to the second image and did the same File -> Copy to Clipboard. I pasted this image in my email, also. I then closed the instance of Greenshot with the second image being edited. Immediately, I got an error from my first instance that I had left open and the editor image was all white with a big red 'X' over it. The error dump is pasted below and I have attached a screen shot.

Here's the Error Dump:

Software version: 1.2.8.14-RELEASE-b7c83841a3148fc9369c306ff85f7e29b7d44ab1 (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2017-01-23 11:11:47 -07:00
OS: Windows 10 (x64) 10.0 build 10586 revision 0
GDI object count: 123
User object count: 87

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 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

Windows 10 64-bit
Dell XPS 13, 500GB SSD, 16GB Ram

Status

Assignee

Unassigned

Reporter

Jimmy Metz

Components

Priority

Minor

Labels