OverflowException in editor
Description
Environment
Windows 7 professional, 64bit, 4GB ram,
Attachments
- 11 Nov 2016, 01:09 PM
Gliffy Diagrams
Activity
Juan P. Garcia January 3, 2017 at 10:53 PM
This bug occurred again, this time in the 1.2.9.112-RELEASE version.
Software version: 1.2.9.112-RELEASE-9bc62ac42bd37d7ba2b19946b70d40a599332b75 (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2017-01-03 17:49:13 -05:00
OS: unknown (x64) 10.0 build 14393 revision 0
GDI object count: 146
User object count: 83
Exception: System.OverflowException
Message: Error de desbordamiento.
Stack:
en System.Drawing.Graphics.CheckErrorStatus(Int32 status)
en System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
en Greenshot.Drawing.LineContainer.Draw(Graphics graphics, RenderMode rm)
en Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle)
en Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle)
en Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs paintEventArgs)
en System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
en System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
en System.Windows.Forms.Control.WmPaint(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Configuration dump:
Robin Krom December 28, 2016 at 8:10 PMEdited
Can you test if the changes fix your bug? (If you were able to reproduce this)
https://github.com/greenshot/greenshot/releases/download/Greenshot-UNSTABLE-1.2.9.111/Greenshot-INSTALLER-1.2.9.111-UNSTABLE.exe
Robin Krom December 24, 2016 at 9:27 PM
A fix will be available in a 1.2.9 bugfix release next week.
I was adjusting the length of a line that I'd just drawn. I wanted the line to remain horizontal so I had the shift pressed as I then used the mouse to move the end point of the line. As I did, the following error occurred. As instructed I've pasted the details below. I have attached a screen shot of what happened to the screen. This was not what I was entering. Presumably this is a placeholder type display.
Software version: 1.2.9.98-RC2-8690a6b52baf1c42634a4d089999fa7ce861f93f (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2016-11-11 13:04:55 +00:00
OS: unknown (x64) 6.1 build 7601 revision 10000
GDI object count: 90
User object count: 83
Exception: System.OverflowException
Message: Overflow error.
Stack:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
at Greenshot.Drawing.Adorners.MoveAdorner.Paint(PaintEventArgs paintEventArgs)
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: