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