Bug #63131 OutOfMemoryException and recursion error in error dialog
Submitted: 7 Nov 2011 17:04 Modified: 4 Jan 2012 12:39
Reporter: Eric Kent Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.35 CE Rev 7915 OS:Windows (Windows 7)
Assigned to: CPU Architecture:Any

[7 Nov 2011 17:04] Eric Kent
Description:
I was adding a column to an existing table in the model, and I received an OutOfMemoryException.  When I clicked on the button to report the bug, I received the modal dialog box error.

I checked Windows task manager when the first error message appeared.
The Processes tab showed that MySQLWorkbench.exe was using 72,704K memory
The Performance tab showed 2935 MB available physical memory, out of 4010 MB

In comparison, after rebooting, and reloading workbench, the process is using 133,580K memory, with 2317 available physical memory.

I don't know how to reproduce the first error, but the second error should be easy to reproduce, when running the workbench in a debugger.  Simply initiate any error, then throw an error when the error dialog is displayed.

--------------------------------------------------------------
First error:
--------------------------------------------------------------

Exception of type 'System.OutOfMemoryException' was thrown.

Exception = System.OutOfMemoryException
Message = Exception of type 'System.OutOfMemoryException' was thrown.
FullText = System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
   at System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at MySQL.GUI.Workbench.MainForm.OpenPlugin(GrtManager GrtManager, GrtModule GrtModule, String AssemblyName, String ClassName, GrtValue GrtList, GUIPluginFlags flags)

--------------------------------------------------------------
Second error:
--------------------------------------------------------------

MySQL Workbench has encountered a problem
Form that is already visible cannot be displayed as a modal dialog box.
Set the form's visible property to false before calling

Exception = System.InvalidOperationException
Message = Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling showDialog.
FullText = System.InvalidOperationException: Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling showDialog.
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at MySQL.GUI.Workbench.ExceptionDialog.Show(String message, String info)
   at MySQL.GUI.Workbench.Program.HandleException(Object o)
   at MySQL.GUI.Workbench.Program.OnGuiUnhandledException(Object sender, ThreadExceptionEventArgs e)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.WndProcException(Exception e)
   at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at MySQL.GUI.Workbench.ExceptionDialog.Show(String message, String info)
   at MySQL.GUI.Workbench.Program.HandleException(Object o)
   at MySQL.GUI.Workbench.MainForm.OpenPlugin(GrtManager GrtManager, GrtModule GrtModule, String AssemblyName, String ClassName, GrtValue GrtList, GUIPluginFlags flags)
   at MySQL.Forms.AppImpl.open_editor_wrapper(GRTManager* grt_manager, Module* module, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* str2, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* str3, BaseListRef* grt_list, GUIPluginFlags flags)
   at boost.detail.function.function_obj_invoker6<boost::_bi::bind_t<unsigned int,unsigned int (__cdecl*)(bec::GRTManager *,grt::Module *,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,grt::BaseListRef const &,enum bec::GUIPluginFlags),boost::_bi::list6<boost::arg<1>,boost::arg<2>,boost::arg<3>,boost::arg<4>,boost::arg<5>,boost::arg<6> > >,unsigned int,bec::GRTManager *,grt::Module *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,grt::BaseListRef,enum bec::GUIPluginFlags>.invoke(function_buffer* function_obj_ptr, GRTManager* a0, Module* a1, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a2, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a3, BaseListRef* a4, GUIPluginFlags a5)
   at wb.ModelDiagramForm.handle_mouse_double_click(ModelDiagramForm* , MouseButton , Int32 , Int32 , EventState )
   at MySQL.Workbench.ModelViewForm.OnMouseDoubleClick(MouseEventArgs e, Int32 X, Int32 Y, Keys keystate, MouseButtons buttons)
   at MySQL.GUI.Workbench.ModelDiagramForm.CanvasPanel_MouseDoubleClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
   at MySQL.Utilities.WindowsCanvasViewerPanel.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   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)

--------------------------------------------------------------
System info:
--------------------------------------------------------------

MySQL Workbench CE for Windows version 5.2.35
Configuration Directory: C:\Users\Eric\AppData\Roaming\MySQL\Workbench
Data Directory: C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE
Cairo Version: 1.8.8
Rendering Mode: OpenGL is available on this system, so OpenGL is used for rendering.
OpenGL Driver Version: 3.1.0 - Build 8.15.10.2462
OS: Microsoft Windows 7 Home Premium Edition Service Pack 1 (build 7601), 64-bit
CPU: 4x Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz, 3.9 GiB RAM
Active video adapter: Intel(R) HD Graphics Family
Installed video RAM: 1813 MB
Current video mode: 1366 x 768 x 4294967296 colors
Used bit depth: 32
Driver version: 8.15.10.2462
Installed display drivers: igdumd64.dll,igd10umd64.dll,igd10umd64.dll,igdumdx32,igd10umd32,igd10umd32
Current user language: English (United States)

How to repeat:
Didn't try
[4 Dec 2011 12:39] Valeriy Kravchuk
Please, check if this problem still happens with a newer version, 5.2.36.
[5 Jan 2012 7: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".