Bug #78357 "Reverse Engineer" crash whole MYSQL Workbench when saving.
Submitted: 7 Sep 2015 20:25 Modified: 23 Jan 2017 20:37
Reporter: jose luis Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S1 (Critical)
Version:6.3x OS:Windows (Version 7 - 32bits)
Assigned to: CPU Architecture:Any
Tags: "Reverse Engineer", crash, FATAL ERROR, MySQL Workbench

[7 Sep 2015 20:25] jose luis
Description:
Hi, 

When I use "Reverse Engineer" and try to save always crash, even opening "Sakila" sample model and try to "Save as..." also crash whole 'MySQL Workbench'.

Allow create model, database, ,diagram, etc. but doesn't save.

-Windows 7 32 bits SP1
-Xampp (Php 5.6.11, Apache 2.4.16, MySQL 5.6.25 Comunity server (GPL) ) | Localhost.
-Workbench 6.3.4.8 build 828 (with the 6.3.3.0 also fail)
-RAM: 4GB
-Intel i5-2400 (3.10Ghz)

Query: SHOW  VARIABLES LIKE '%version%':
'innodb_version', '5.6.25'
'protocol_version', '10'
'slave_type_conversions', ''
'version', '5.6.25'
'version_comment', 'MySQL Community Server (GPL)'
'version_compile_machine', 'x86'
'version_compile_os', 'Win32'

Thanks.

How to repeat:
- Open "Reverse Engineer" wizard create a model importing just tables and converting into a diagram.
- File > Save or File > Save as.. or just press "Save button"
- Write the filename on "save dialog"
- Click save button dialog
- Windows modal dialog "... checking solution on line"
- Windows doen't find nothing and give 2 options "Debug" - "Close program"
- Whole MySQL Workbench closed.
[8 Sep 2015 1:22] MySQL Verification Team
Thank you for the bug report. The location path where you tried to sue for save has an accented letter? i.e: é?). Thanks.
[8 Sep 2015 14:42] jose luis
Yes. I use accents in the path. And Also I try to do it on a "clean" path like 'C:\Models\' and crash.
[12 Oct 2015 6:16] Chiranjeevi Battula
Hello jose luis,

Thank you for the bug report.
Verified this behavior on MySQL Workbench in 6.3.4 version in Windows 7 32 bit.

Thanks,
Chiranjeevi
[12 Oct 2015 6:17] Chiranjeevi Battula
screenshot

Attachment: 78357.JPG (image/jpeg, text), 107.94 KiB.

[2 Apr 2016 11:39] Javier Arenales
Are you working on this bug? Just to know it...
[7 Apr 2016 12:15] Chiranjeevi Battula
http://bugs.mysql.com/bug.php?id=80592 marked as duplicate of this one.
[17 Aug 2016 7:12] Javier Arenales
Hi guys,

I've installed version 6.3.7 for MySQLWorkbench and I still get the same problem when I use "Reverse Engineer" option.

I've run it in debug level and these are the logs:

C:\Program Files\MySQL\MySQL Workbench 6.3>MySQLWorkbench.exe -log-level=debug3

C:\Program Files\MySQL\MySQL Workbench 6.3>Logger set to level 'debug3'. '011111
1'

Unhandled Exception: System.AccessViolationException: Attempted to read or write
 protected memory. This is often an indication that other memory is corrupt.
   at MySQL.GUI.Mdc.WindowsCanvasViewerPanel.CreateGLCanvas(Form ownerForm, Bool
ean handleInput)
   at MySQL.GUI.Mdc.WindowsCanvasViewer.CreateCanvasView(Form ownerForm, Boolean
 handleInput, Boolean software_rendering_enforced, Boolean opengl_rendering_enfo
rced)
   at MySQL.GUI.Workbench.ModelDiagramForm.CreateCanvas(String id)
   at MySQL.GUI.Workbench.ModelDiagramForm..ctor(WbContext context, String id)
   at MySQL.GUI.Workbench.MainForm.CreateNewDiagram(String viewId, String name)
   at MySQL.Workbench.WbFrontendCallbacks.create_diagram_wrapper(Ref<model_Diagr
am>* model)
   at boost.detail.function.function_invoker1<mdc::CanvasView * (__cdecl*)(grt::
Ref<model_Diagram> const &),mdc::CanvasView *,grt::Ref<model_Diagram> const &>.i
nvoke(function_buffer* function_ptr, Ref<model_Diagram>* a0)
   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.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.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int
32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at MySQL.Forms.WizardWrapper.run_modal(Wizard* backend)
   at mforms.MenuItem.callback(MenuItem* )
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, In
t32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int
32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)

Anyone else has the same problem with this version?
[23 Jan 2017 20:37] Christine Cole
Posted by developer:
 
Fixed as of the upcoming MySQL Workbench 6.3.9 release, and here's the changelog entry:

Saving a reverse-engineered model caused MySQL Workbench to fail and exit.

Thank you for the bug report.