Moving or editing object (usually cursor object) occasionally crashes GreenShot

Description

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2021-01-19 14:54:53 -06:00
OS: unknown (x64) 10.0 build 17134 revision 0
GDI object count: 137
User object count: 103

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

Stack:
at Greenshot.Drawing.IconContainer.get_DefaultSize()
at Greenshot.Drawing.DrawableContainerList.<>c_DisplayClass35_0.<AddContextMenuItems>b_8(Object <sender>, EventArgs <e>)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Environment

Windows 10 Education | Version: 1803 | Installed on: 5/17/2018 | OS build: 17134.1902

Activity

Show:
Robin Krom
January 21, 2021, 7:58 AM

Thanks for reporting this, I just changed the part causing the huge error.
This change will be in the next release (1.3)

Assignee

Unassigned

Reporter

Bryan (Scott) Schlenker

Affects versions

Components

Priority

Minor