Using the pencil tool, changing colors, undo, pencil tool again, produces error dump.

Description

How to reproduce my problem:
1. Take screen capture in to image editor
2. Set pencil tool color to red.
3. Use pencil tool and draw a red egg shape (don't know if color is critical yet)
4. While the red egg is still selected, change colors to green in the color picker
6. Undo
7. Draw another egg shape. (Upon first click of drawing the second egg my whole editor drawing area turns white with a red "X" across it.) It produces the following dump.

=============================================
Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2018-01-26 11:53:18 -05:00
OS: unknown (x64) 6.1 build 7601 revision 10000
GDI object count: 124
User object count: 93

Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: path

Stack:
at System.Drawing.Graphics.DrawPath(Pen pen, GraphicsPath path)
at Greenshot.Drawing.FreehandContainer.Draw(Graphics graphics, RenderMode renderMode)
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 paintEventArgs)
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

None

Activity

Show:
Peter Frey
January 16, 2019, 12:47 AM

I also got this issue. Similar process to get this:

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2019-01-15 17:38:48 -07:00
OS: unknown (x64) 6.1 build 7601 revision 10000
GDI object count: 155
User object count: 86

Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: path

Stack:
at System.Drawing.Graphics.DrawPath(Pen pen, GraphicsPath path)
at Greenshot.Drawing.FreehandContainer.Draw(Graphics graphics, RenderMode renderMode)
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 paintEventArgs)
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:

Robin Krom
February 11, 2020, 11:32 AM

Found the reason, will be fixed in Greenshot 1.3 which I’m now working on.

Release date not certain, could be in a couple of months.

Scott Harmon
February 11, 2020, 11:57 AM

Fantastic!
Thank you.

Scott

Assignee

Unassigned

Reporter

Scott Harmon

Affects versions

None

Components

Priority

Critical

Labels

None
Configure