Unexpected error occurred when saving preferences

Description

In preferences, changed the icon size from 16 to 48 and clicked okay/save.

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2020-11-13 17:37:15 -08:00
OS: unknown (x64) 10.0 build 18363 revision 0
GDI object count: 113
User object count: 74

Exception: System.ArgumentException
Message: Parameter is not valid.

Stack:
at System.Drawing.Image.get_RawFormat()
at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
at System.Drawing.Graphics.DrawImage(Image image, Rectangle rect)
at System.Windows.Forms.ToolStripProfessionalRenderer.OnRenderItemImage(ToolStripItemImageRenderEventArgs e)
at System.Windows.Forms.ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs e)
at System.Windows.Forms.ToolStripButton.OnPaint(PaintEventArgs e)
at System.Windows.Forms.ToolStripItem.HandlePaint(PaintEventArgs e)
at System.Windows.Forms.ToolStrip.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.ToolStrip.WndProc(Message& m)
at Greenshot.Controls.ToolStripEx.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Environment

None

Activity

Show:

Ken CharltonDecember 24, 2020 at 6:23 PM

Unfortunately, I can still reproduce the issue. It takes 20-30 seconds for the error to occur after I press OK.

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)

.NET runtime version: 4.0.30319.42000+

Time: 2020-12-24 09:19:05 -08:00

OS: unknown   (x64)  10.0 build 19042 revision 0

GDI object count: 184

User object count: 109

Jens KlingenDecember 21, 2020 at 1:59 PM

Hi Ken,
did this happen only once, or are you experiencing this more often? Do you know a way to reproduce it?
I’ve been able to reproduce this exactly once with a fresh installation of Greenshot (opening the settings from the editor window toolbar), afterwards it did not happen again.

Also tried to reproduce this with Greenshot 1.3 (stable version is not released yet). If you’re fine with checking out an unstable release (i.e. not thoroughly tested yet), you can get it here https://getgreenshot.org/version-history/

Please let us know if you find any further details that might be useful.

Thanks and best regards,

Jens

Details

Assignee

Reporter

Affects versions

Components

Priority

Created November 14, 2020 at 1:43 AM
Updated December 24, 2020 at 6:23 PM