Greenshot crashed when changing text color

Description

I was changing the color of some text; I changed it from red to transparent, then tried to change it back to red, and it crashed when I hit Apply.

Software version: 1.2.9.129-RELEASE-569de711c0353860aaeb5e5ec4d272e383a101e9 (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2017-05-01 23:00:47 -07:00
OS: unknown (x64) 6.3 build 9600 revision 0
GDI object count: 194
User object count: 93

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

Stack:
at Greenshot.Drawing.RectangleContainer.Draw(Graphics graphics, RenderMode rm)
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 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

Windows 8.1 Pro, 64-bit

Activity

Show:
Usuario AnĂ³nimo
May 11, 2017, 12:08 AM
Edited

TL;DR

Use

or

to reproduce the error.


I just found out about Greenshot a couple hours ago so it's latest stable version. I was curating my first screenshot notes in full detail since installed. My latest sequence of actions were the following, (I can't tell the order in which I did each one nor the latest, I played with all those several times in a short time). @amloessb already said it was when playing with text color in his case, I'm not so sure tho.

  • playing with the alpha channel of the background color in a text element

  • Toggling on/off the shadow toolbar button while being in text edit mode and/or just the text node being selected.

  • Playing with the color of that text

Robin Krom
June 21, 2017, 7:23 AM

There is another bug reported, BUG-2225, and I might have found a fix for this.
The fix will come in 1.2.10, somewhere in the near future.

Robin Krom
August 1, 2017, 5:58 AM

There will be a fix available in Greenshot 1.2.10, when this is released I will update this ticket. (next week maybe)

Assignee

Unassigned

Reporter

amloessb

Affects versions

Components

Priority

Minor

Labels

Sprint

None
Configure