Bug #62035 Can't use workbench after out of memory crash
Submitted: 30 Jul 2011 4:51 Modified: 1 Sep 2011 13:40
Reporter: Ian Chodera Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.34.7780 OS:Microsoft Windows (Vista)
Assigned to: CPU Architecture:Any
Tags: out of memory, startup error

[30 Jul 2011 4:51] Ian Chodera
Description:
Had an out of memory crash when attempting to load a large (100MB) sql file

Whilst this is a pain, its not a big issue. The real problem is that when you next try to login to the server you get an error message:
 Saved scratch buffer"1.scratch" is bigger than 4.77MiB (63.99MiB) would you like to restore it anyway?

The options are 'Restore' or 'Cancel' either way workbench crashes. The following is in the application event log:

Application Error:
Faulting application MySQLWorkbench.exe, version 5.2.34.7780, time stamp 0x4ddbbfe9, faulting module wbprivate.be.dll, version 0.0.0.0, time stamp 0x4ddbbeb7, exception code 0xc0000005, fault offset 0x000070ce, process id 0x%9, application start time 0x%10.

.NET runtime error
Application: MySQLWorkbench.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at <Module>.wb.WBContextUI.set_active_form(wb.WBContextUI*, bec.UIForm*)
   at MySQL.Workbench.WbContext.set_active_form(MySQL.Grt.UIForm)
   at MySQL.GUI.Workbench.MainForm.tabControl_SelectedIndexChanged(System.Object, System.EventArgs)
   at System.Windows.Forms.TabControl.OnSelectedIndexChanged(System.EventArgs)
   at MySQL.Controls.FlatTabControl.OnSelectedIndexChanged(System.EventArgs)
   at System.Windows.Forms.TabControl.WmSelChange()
   at System.Windows.Forms.TabControl.set_SelectedIndex(Int32)
   at System.Windows.Forms.TabControl.set_SelectedTab(System.Windows.Forms.TabPage)
   at MySQL.Controls.TabDocument.Activate()
   at MySQL.GUI.Workbench.MainForm.DockDocument(MySQL.Controls.ITabDocument, Boolean, Boolean)
   at MySQL.GUI.Workbench.MainForm.CreateMainFormView(System.String, MySQL.Grt.UIForm)
   at MySQL.Workbench.WbContext.create_main_form_view_wrapper(std.basic_string<char,std::char_traits<char>,std::allocator<char> >*, boost.shared_ptr<bec::UIForm>*)
   at <Module>.sigc.pointer_functor2<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,boost::shared_ptr<bec::UIForm>,void>.()()(sigc.pointer_functor2<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,boost::shared_ptr<bec::UIForm>,void>*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*, boost.shared_ptr<bec::UIForm>*)
   at <Module>.sigc.internal.slot_call2<sigc::pointer_functor2<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,boost::shared_ptr<bec::UIForm>,void>,void,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,boost::shared_ptr<bec::UIForm> >.call_it(sigc.internal.slot_rep*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*, boost.shared_ptr<bec::UIForm>*)
   at MySQL.Forms.DrawBoxImpl.drawbox_mouse_double_click(System.Object, System.Windows.Forms.MouseEventArgs)
   at System.Windows.Forms.Control.OnMouseDoubleClick(System.Windows.Forms.MouseEventArgs)
   at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
   at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext)
   at MySQL.GUI.Workbench.Program.Main(System.String[])

How to repeat:
Login to a server

Attempt to load a very large SQL script from a file

After the workbench application has crashed, restart workbench

Attempt to login to the server
[30 Jul 2011 9:46] Valeriy Kravchuk
Please, send the output of Help > System Info menu item.
[30 Jul 2011 12:08] Ian Chodera
output of Help > System Info menu item.
--------------------------------------- 

MySQL Workbench CE for Windows version 5.2.34

Configuration Directory: C:\Users\Ian\AppData\Roaming\MySQL\Workbench

Data Directory: C:\wamp\tools\MySQLWorkbench

Cairo Version: 1.8.8

Rendering Mode: OpenGL is available on this system, so OpenGL is used for rendering.

OpenGL Driver Version: 3.3.10524 Compatibility Profile Context

OS: Microsoft Windows Vista Business Edition Service Pack 2 (build 6002), 32-bit

CPU: 4x Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz, 3.3 GiB RAM

Active video adapter: ATI Radeon HD 2600 XT

Installed video RAM: 512 MB

Current video mode: 1680 x 1050 x 4294967296 colors

Used bit depth: 32

Driver version: NULL

Installed display drivers: aticfx32.dll,aticfx32.dll,atiumdag.dll,atidxx32.dll,atiumdva.cap

Current user language: English (United Kingdom)
[1 Aug 2011 13:40] Miguel Solorzano
If you rename/delete it it's a workaround?. Thanks.
[1 Sep 2011 23: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".