Bug #63827 Workbench Encountered GDI+ error after logging in
Submitted: 21 Dec 2011 17:59 Modified: 22 Jan 2012 10:18
Reporter: Kevin ultimate Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.36 CE OS:Microsoft Windows (Win7 x64)
Assigned to: CPU Architecture:Any
Tags: GDI crash Workbench

[21 Dec 2011 17:59] Kevin ultimate
Description:
I locked my work station, went for lunch, when I came back, Workbench had crashed. I know this is not much to go on, but here is the stack trace.

Stack Trace:

Exception = System.Runtime.InteropServices.ExternalException
Message = A generic error occurred in GDI+.
FullText = System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
   at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
   at System.Windows.Forms.SplitContainer.RepaintSplitterRect()
   at System.Windows.Forms.SplitContainer.ResizeSplitContainer()
   at System.Windows.Forms.SplitContainer.OnLayout(LayoutEventArgs e)
   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
   at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.SplitContainer.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
1. Lock work workstation.
2. Unlock

Suggested fix:
It might be wise to wrap the offending code in try/catch because GDI and system interops can be unpredictable.
[22 Dec 2011 10:18] Miguel Solorzano
What it was doing WorkBench before to lock the computer(It was conencted to a server?). Thanks.
[23 Jan 2012 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".