Bug #46150 Workbench crashes when checking AI box
Submitted: 13 Jul 2009 15:01 Modified: 7 Aug 2009 15:16
Reporter: Martin Luther ETOUMAN Email Updates:
Status: Closed Impact on me:
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.1.16 OS:MacOS (10.5.7)
Assigned to: Alfredo Kojima CPU Architecture:Any

[13 Jul 2009 15:01] Martin Luther ETOUMAN
Workbench crashes when checking AI box

How to repeat:
Create a new Table, and go to "colomn" tab to edit. Just check AI and : "tadam !". I guess it's because I don't name the field.

Suggested fix:
when user does that, insert idtable_name in the field. Or don't allow user checking that box without the field name.
[13 Jul 2009 15:09] MySQL Verification Team
Thank you for the bug report. Windows version also affected:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at MySQL.Grt.ListModel.set_field(NodeId node, Int32 column, Int32 value)
   at MySQL.GUI.Workbench.Plugins.DbMysqlTableColumnsListModel.ValuePushed(Object sender, NodeControlValueEventArgs e)
   at Aga.Controls.Tree.NodeControls.BindableControl.OnValuePushed(NodeControlValueEventArgs args)
   at Aga.Controls.Tree.NodeControls.BindableControl.SetValue(TreeNodeAdv node, Object value)
   at Aga.Controls.Tree.NodeControls.NodeCheckBox.SetCheckState(TreeNodeAdv node, CheckState value)
   at Aga.Controls.Tree.NodeControls.NodeCheckBox.MouseDown(TreeNodeAdvMouseEventArgs args)
   at Aga.Controls.Tree.TreeViewAdv.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.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)

************** Loaded Assemblies **************
    Assembly Version:
    Win32 Version: 2.0.50727.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    Assembly Version:
    Win32 Version:
    CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Workbench%205.1%20OSS/MySQLWorkbench.exe
    Assembly Version:
    Win32 Version: 
    CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Workbench%205.1%20OSS/wbprivate.wr.DLL
    Assembly Version:
    Win32 Version: 
    CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Workbench%205.1%20OSS/wbpublic.wr.DLL
    Assembly Version:
    Win32 Version: 2.0.50727.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/

[6 Aug 2009 18:25] Johannes Taxacher
fixed in 5.1.17
[7 Aug 2009 15:16] Tony Bedford
An entry was added to the 5.1.17 changelog:

In the Columns tab of the Table Editor, selecting the AI checkbox before entering a name for the column caused MySQL Workbench to crash.