Bug #73330 Workbench crashes trying to open the data model functionality
Submitted: 18 Jul 2014 17:16 Modified: 8 Oct 2014 12:40
Reporter: Stephen Rothman Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:Workbench 6.1.7 OS:Windows (Win 7 Pro 64bit)
Assigned to: CPU Architecture:Any

[18 Jul 2014 17:16] Stephen Rothman
Anytime I try to open the data modeling functionality the workbench crashes with the following error:

System.AccessViolationException was unhandled
  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at MySQL.GUI.Mdc.BaseWindowsCanvasView.initialize()
       at MySQL.Utilities.WindowsCanvasViewerPanel.CreateGLCanvas(Form ownerForm, IntPtr payload, Boolean handleInput)
       at MySQL.Utilities.WindowsCanvasViewer.CreateCanvasView(Form ownerForm, IntPtr payload, Boolean handleInput, Boolean software_rendering_enforced, Boolean opengl_rendering_enforced)
       at MySQL.GUI.Workbench.ModelDiagramForm.CreateCanvas(String id, IntPtr payload)
       at MySQL.GUI.Workbench.ModelDiagramForm..ctor(WbContext context, String id, IntPtr payload)
       at MySQL.GUI.Workbench.MainForm.CreateNewDiagram(String viewId, String name, IntPtr payload)
       at MySQL.Workbench.WbFrontendCallbacks.create_diagram_wrapper(Ref<model_Diagram>* model)
       at boost.detail.function.function_invoker1<mdc::CanvasView * (__cdecl*)(grt::Ref<model_Diagram> const &),mdc::CanvasView *,grt::Ref<model_Diagram> const &>.invoke(function_buffer* function_ptr, Ref<model_Diagram>* a0)
       at wb.WBContext.new_model_finish(WBContext* )
       at MySQL.Workbench.WbContext.new_model_finish()
       at MySQL.GUI.Workbench.MainForm.RefreshGUI(RefreshType refresh, String str, IntPtr ptr)
       at MySQL.Workbench.WbFrontendCallbacks.refresh_gui_wrapper(RefreshType refresh, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* str, UInt32 ptr)
       at boost.detail.function.void_function_invoker3<void (__cdecl*)(enum wb::RefreshType,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,unsigned int),void,enum wb::RefreshType,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,unsigned int>.invoke(function_buffer* function_ptr, RefreshType a0, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a1, UInt32 a2)
       at wb.WBContext.flush_idle_tasks(WBContext* )
       at MySQL.Workbench.WbContext.flush_idle_tasks()
       at MySQL.GUI.Workbench.Program.timer_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       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.Run(ApplicationContext context)
       at MySQL.GUI.Workbench.Program.Main(String[] Args)

This error occurs in Workbench 6.1.7, 6.0.9 and 5.2.47

How to repeat:
When I start a "New Model" and try to "Add a Diagram" or open an existing model diagram.
[21 Aug 2014 15:05] Alfredo Kojima
Can you paste the output of Help -> System Info?
[21 Aug 2014 21:41] Stephen Rothman
MySQL Workbench Community (GPL) for Windows version 6.1.7  revision 11891 build 1788
Configuration Directory: C:\Users\srothman.domain\AppData\Roaming\MySQL\Workbench
Data Directory: C:\Apps\MySQL\MySQL Workbench CE 6.1.7
Cairo Version: 1.8.8
OS: Microsoft Windows 7  Service Pack 1 (build 7601), 64-bit
CPU: 8x Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz, 15.9 GiB RAM
Active video adapter Intel(R) HD Graphics 4600
Installed video RAM: -1984 MB
Current video mode: 1600 x 900 x 4294967296 colors
Used bit depth: 32
Driver version:
Installed display drivers: igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10iumd32
Current user language: English (United States)
[21 Aug 2014 21:51] Stephen Rothman
System Properties -> Performance

Attachment: system_props_preformance.png (image/png, text), 83.14 KiB.

[21 Aug 2014 21:58] Stephen Rothman
I always run windows set to "Adjust for best performance" in the System Properties -> Performance window.  I recently switched it to "Adjust for best appearance" and  Workbench no longer crashes when I try to access the data modeler.

Switching back to "Adjust for best performance" will continuously crash Workbench when I try to access the data modeler.
[8 Sep 2014 12:40] MySQL Verification Team
I could not repeat even changing Windows Adjust for best performance. Please try Development Releases 6.2.2 rc version. Thanks.
[9 Oct 2014 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".