Bug #72209 Crash during Forward Engineer in 6.1.4
Submitted: 2 Apr 2014 11:46 Modified: 18 Apr 2014 17:27
Reporter: Henrik Gemal Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:6.1.4 OS:Windows
Assigned to: CPU Architecture:Any

[2 Apr 2014 11:46] Henrik Gemal
Description:
Whenever I do a "Forward Engineer" my WorkBench crash.

This did not happen with the old version

MySQL Workbench Community (GPL) for Windows version 6.1.4  revision 11773 build 1454

how can I generate a log or something ?

How to repeat:
Forward Engineer
[2 Apr 2014 12:10] Henrik Gemal
Unhandled Exception: System.AccessViolationException: Attempted to read or write
 protected memory. This is often an indication that other memory is corrupt.
   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.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.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at MySQL.Forms.WizardWrapper.run_modal(Wizard* backend)
   at mforms.MenuItem.callback(MenuItem* )
   at MenuItemEventTarget.MenuItemClick(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   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.ToolStripItem.FireEventInteractive(EventArgs e, ToolS
tripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEve
ntType met)
   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.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)
   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.Application.Run(ApplicationContext context)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)
[2 Apr 2014 12:16] Henrik Gemal
tried to start it with log-level=debug3 and the last lines are:

14:14:30 [INF][     SSH tunnel]: Starting tunnel
14:14:30 [DB2][ python context]: About to pyrun 'c:\Program Files (x86)\MySQL\MySQL Workbench\sshtunnel.py'
14:14:30 [DB1][ mforms managed]: Running slot on main thread (waiting for it)
14:14:30 [DB1][ mforms managed]: Looking up password for service: Mysql@127.0.0.1:3306, account: root
14:14:30 [DB1][ mforms managed]: Loading password cache
14:14:30 [DB1][ mforms managed]: Get special folder
14:14:30 [DB2][ mforms managed]: Decrypting password data
14:14:30 [DB2][ mforms managed]: Filling password cache
14:14:30 [DB1][ mforms managed]: Unloading password cache
14:14:30 [DB1][ mforms backend]: Looking up password for 'root'@'Mysql@127.0.0.1:3306' has succeeded
14:14:30 [INF][            grt]: Fetching schema list.	
14:14:30 [INF][            grt]: OK
[2 Apr 2014 12:46] MySQL Verification Team
Thank you for the bug report. Please provide your model file (private if you wish) and the option you checked in the forward engineer?. Thanks.
[2 Apr 2014 13:13] Henrik Gemal
it ONLY crashes when the "Generate INSERT Statements for Tables" is checked.
[2 Apr 2014 14:57] MySQL Verification Team
Hello Henrik,

Thank you for the feedback.
Verified as described.

Thanks,
Umesh
[2 Apr 2014 15:07] MySQL Verification Team
// Crashed on OL6(on Win7 too) with sample model(Sakila), ensure that "Generate INSERT Statements for Tables" is checked.
// Backtrace

Backtrace:
/lib64/libpthread.so.0(pthread_mutex_lock+0x0)[0x32828091e0]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN5boost8signals26detail12signal0_implIvNS0_19optional_last_valueIvEEiSt4lessIiENS_8functionIFvvEEENS7_IFvRKNS0_10connectionEEEENS0_5mutexEEclEv+0x4b)[0x73d46b]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZNK5boost8signals219optional_last_valueIvEclINS0_6detail20slot_call_iterator_tINS4_12signal0_implIvS2_iSt4lessIiENS_8functionIFvvEEENS9_IFvRKNS0_10connectionEEEENS0_5mutexEE12slot_invokerESt14_List_iteratorINS_10shared_ptrINS4_15connection_bodyISt4pairINS4_15slot_meta_groupENS_8optionalIiEEENS0_5slot0IvSB_EESH_EEEEESU_EEEEvT_SY_+0xa4)[0x73a274]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN5boost8signals26detail12signal0_implIvNS0_19optional_last_valueIvEEiSt4lessIiENS_8functionIFvvEEENS7_IFvRKNS0_10connectionEEEENS0_5mutexEEclEv+0x287)[0x73d6a7]
/usr/lib64/mysql-workbench/libwbpublic.so(_ZN3bec10GRTManager18perform_idle_tasksEv+0x297)[0x7f67a71c0ea7]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN2wb9WBContext16flush_idle_tasksEv+0x1c)[0x8ffd0c]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN4sigc8internal10slot_call0INS_19bind_return_functorIbNS_18bound_mem_functor0IvN2wb9WBContextEEEEEbE7call_itEPNS0_8slot_repE+0x16)[0x6a7ae6]
/usr/lib64/libglibmm-2.4.so.1[0x3aab438910]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x22e)[0x3aa4638f0e]
/lib64/libglib-2.0.so.0[0x3aa463c938]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x195)[0x3aa463cd55]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x3aaff4c287]
/usr/lib64/mysql-workbench/libmforms.so(_ZN6mforms3gtk10WizardImpl9run_modalEPNS_6WizardE+0x40)[0x7f67a7fa4740]
/usr/lib64/mysql-workbench/libwbpublic.so(_ZN5grtui10WizardForm9run_modalEv+0x38)[0x7f67a742dc68]
/usr/lib64/mysql-workbench/libwbpublic.so(_ZN5grtui12WizardPlugin10run_wizardEv+0x15)[0x7f67a742fb65]
/usr/lib64/mysql-workbench/plugins/db.mysql.wbp.so(_ZN17MySQLDbModuleImpl17runDbExportWizardEN3grt3RefI10db_CatalogEE+0x56)[0x7f678f0033d6]
/usr/lib64/mysql-workbench/plugins/db.mysql.wbp.so(_ZN3grt14ModuleFunctor1Ii17MySQLDbModuleImplNS_3RefI10db_CatalogEEE12perform_callERKNS_11BaseListRefE+0xcf)[0x7f678f003f5f]
/usr/lib64/mysql-workbench/libgrt.so(_ZN5boost6detail8function21function_obj_invoker1INS_3_bi6bind_tIN3grt8ValueRefENS_4_mfi3mf1IS6_NS5_17ModuleFunctorBaseERKNS5_11BaseListRefEEENS3_5list2INS3_5valueIPS9_EENS_3argILi1EEEEEEES6_SC_E6invokeERNS1_15function_bufferESC_+0x3c)[0x7f67a6af1a3c]
/usr/lib64/mysql-workbench/libgrt.so(_ZN3grt6Module13call_functionERKSsRKNS_11BaseListRefE+0x52)[0x7f67a6aed6e2]
/usr/lib64/mysql-workbench/libwbpublic.so(_ZN3bec17PluginManagerImpl27open_standalone_plugin_mainERKN3grt3RefI10app_PluginEERKNS1_11BaseListRefE+0x10b)[0x7f67a71fc4bb]
/usr/lib64/mysql-workbench/libwbpublic.so(_ZN3bec17PluginManagerImpl15open_gui_pluginERKN3grt3RefI10app_PluginEERKNS1_11BaseListRefENS_14GUIPluginFlagsE+0x1186)[0x7f67a71feef6]
/usr/lib64/mysql-workbench/libwbpublic.so(_ZN3bec17PluginManagerImpl11open_pluginERKN3grt3RefI10app_PluginEERKNS1_11BaseListRefE+0xc)[0x7f67a71ff55c]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN2wb9WBContext18execute_plugin_grtEPN3grt3GRTERKNS1_3RefI10app_PluginEERKNS1_11BaseListRefE+0x1d7)[0x904047]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN2wb9WBContext14execute_pluginERKSsRKN3bec12ArgumentPoolE+0x53e)[0x917d6e]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN2wb9CommandUI16activate_commandERKSs+0x1a8)[0x8ca8d8]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN5boost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tINS3_11unspecifiedENS_8functionIFvSsEEENS3_5list1INS3_5valueIN3grt3RefINSB_8internal6StringEEEEEEEEEvE6invokeERNS1_15function_bufferE+0x5a)[0x8d774a]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZNK5boost8signals219optional_last_valueIvEclINS0_6detail20slot_call_iterator_tINS4_12signal0_implIvS2_iSt4lessIiENS_8functionIFvvEEENS9_IFvRKNS0_10connectionEEEENS0_5mutexEE12slot_invokerESt14_List_iteratorINS_10shared_ptrINS4_15connection_bodyISt4pairINS4_15slot_meta_groupENS_8optionalIiEEENS0_5slot0IvSB_EESH_EEEEESU_EEEEvT_SY_+0xa4)[0x73a274]
/usr/libexec/mysql-workbench/mysql-workbench-bin(_ZN5boost8signals26detail12signal0_implIvNS0_19optional_last_valueIvEEiSt4lessIiENS_8functionIFvvEEENS7_IFvRKNS0_10connectionEEEENS0_5mutexEEclEv+0x287)[0x73d6a7]
/usr/lib64/mysql-workbench/libmforms.so(+0x10390d)[0x7f67a7f6d90d]
/usr/lib64/libglibmm-2.4.so.1(_ZN4Glib17SignalProxyNormal19slot0_void_callbackEP8_GObjectPv+0x32)[0x3aab43bbf2]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x3aa9a0bb3e]
/lib64/libgobject-2.0.so.0[0x3aa9a21300]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x7ef)[0x3aa9a220af]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x83)[0x3aa9a225f3]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_widget_activate+0x6e)[0x3ab007dcde]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0xfd)[0x3aaff64b9d]
/usr/lib64/libgtk-x11-2.0.so.0[0x3aaff6684a]
/usr/lib64/libgtk-x11-2.0.so.0[0x3aaff53eb3]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x3aa9a0bb3e]
/lib64/libgobject-2.0.so.0[0x3aa9a209ed]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x68a)[0x3aa9a21f4a]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x83)[0x3aa9a225f3]
/usr/lib64/libgtk-x11-2.0.so.0[0x3ab0076b3f]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_propagate_event+0xea)[0x3aaff4ac2a]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x22c)[0x3aaff4bd9c]
/usr/lib64/libgdk-x11-2.0.so.0[0x3aaf65fffc]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x22e)[0x3aa4638f0e]
/lib64/libglib-2.0.so.0[0x3aa463c938]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x195)[0x3aa463cd55]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x3aaff4c287]
/usr/libexec/mysql-workbench/mysql-workbench-bin(main+0x3a2)[0x6a1672]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3281c1ec5d]
??:0(??)[0x6a1049]
[17 Apr 2014 19:58] Alfredo Kojima
Bug #72342 marked as a duplicate
[17 Apr 2014 20:09] John Patrick
Any update?

OS windows listed but also happens on Mac see my duplicate http://bugs.mysql.com/?id=72342
[18 Apr 2014 17:27] Alfredo Kojima
Duplicate of bug #72251
[18 Apr 2014 23:23] Bacil Warren
I disagree this bug is a dupe of 72251, which only appears after an initial, successful, forward engineer. I can make it fail before any successful forward engineer occurs, which is different behavior.
[3 Jun 2014 20:44] Alfredo Kojima
This is fixed in 6.1.6, please try that version