The editor crashed immediately right after I unplug an external monitor from my notebook

Description

None

Environment

The editor crashed immediately right after I unplug an external monitor from my notebook.

Two displays have different resolutions:

  • External monitor: 4K

  • Built-in monitor: 1920x1080

Here’s the crash stack:

Software version: 1.3.277 - f862e79485 (64 bit) .NET runtime version: 4.0.30319.42000+ Time: 2023-06-15 11:31:18 +08:00 OS: Windows 10 2009 x64 build 22621 GDI object count: 112 User object count: 86 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.Editor.Controls.ToolStripEx.WndProc(Message& m) in D:\a\1\s\src\Greenshot.Editor\Controls\ToolStripEx.cs:line 60 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Configuration dump:

The OS is Windows 11.

Activity

Details

Assignee

Reporter

Affects versions

Components

Priority

Created June 15, 2023 at 3:45 AM
Updated June 15, 2023 at 3:45 AM