Bug #43034 Editing Table Crashes Workbench
Submitted: 19 Feb 2009 21:08 Modified: 16 Apr 2009 13:53
Reporter: Paul Strauss Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.0.30 OS:Windows (XP Pro SP2)
Assigned to: CPU Architecture:Any
Tags: crash, Ctl-E, Edit Table

[19 Feb 2009 21:08] Paul Strauss
Description:
When editing tables, the program crashes very frequently. Here is the scenario:

I'm checking and editing one table after another. I bring up the edit page by selecting the table on the EER Diagram and clicking Ctl-E or Shift-Ctl_E.I can do this two or three times before it crashes. 

Here is the error dump:

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.TreeModel.expand_node(NodeId node)
   at MySQL.Grt.GrtTreeModel.TreeViewExpanding(Object sender, TreeViewAdvEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Aga.Controls.Tree.TreeViewAdv.OnExpanding(TreeNodeAdv node)
   at Aga.Controls.Tree.TreeViewAdv.SetIsExpanded(TreeNodeAdv node, Boolean value)
   at Aga.Controls.Tree.TreeViewAdv.SetIsExpanded(ExpandArgs eargs)
   at Aga.Controls.Tree.TreeViewAdv.SetIsExpanded(TreeNodeAdv node, Boolean value, Boolean ignoreChildren)
   at Aga.Controls.Tree.TreeNodeAdv.SetIsExpanded(Boolean value, Boolean ignoreChildren)
   at Aga.Controls.Tree.TreeNodeAdv.set_IsExpanded(Boolean value)
   at Aga.Controls.Tree.TreeViewAdv.SetIsExpandedRecursive(TreeNodeAdv root, Boolean value)
   at Aga.Controls.Tree.TreeViewAdv.SetIsExpanded(ExpandArgs eargs)
   at Aga.Controls.Tree.TreeViewAdv.SetIsExpanded(TreeNodeAdv node, Boolean value, Boolean ignoreChildren)
   at Aga.Controls.Tree.TreeNodeAdv.SetIsExpanded(Boolean value, Boolean ignoreChildren)
   at Aga.Controls.Tree.TreeNodeAdv.ExpandAll()
   at MySQL.GUI.Workbench.ModelLayerForm.expandImportantNodes()
   at MySQL.GUI.Workbench.ModelLayerForm.SetViewTreePath(String path)
   at MySQL.GUI.Workbench.MainForm.mainDockPanel_ActiveDocumentChanged(Object sender, EventArgs e)
   at WeifenLuo.WinFormsUI.Docking.DockPanel.OnActiveDocumentChanged(EventArgs e)
   at WeifenLuo.WinFormsUI.Docking.DockPanel.FocusManagerImpl.RefreshActiveWindow()
   at WeifenLuo.WinFormsUI.Docking.DockPanel.FocusManagerImpl.ResumeFocusTracking()
   at WeifenLuo.WinFormsUI.Docking.DockPanel.ResumeLayout(Boolean performLayout, Boolean allWindows)
   at WeifenLuo.WinFormsUI.Docking.DockPane.CloseContent(IDockContent content)
   at WeifenLuo.WinFormsUI.Docking.DockPane.CloseActiveContent()
   at WeifenLuo.WinFormsUI.Docking.VS2005DockPaneStrip.Close_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(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)

How to repeat:
It seems, unfortunately, to be quite reliable on my system. Editing a few tables crashes the program. I have not had any problems with any other programs, so if it is my system, it is probably a rather subtle problem.

Suggested fix:
Not in my pay-grade :)
[19 Feb 2009 21:10] Paul Strauss
Crash Dump (same as in text)

Attachment: Workbench Error.txt (application/x-txt, text), 2.63 KiB.

[20 Feb 2009 12:39] Susanne Ebrecht
Which object did you try to edit?
[24 Feb 2009 1:06] Paul Strauss
It doesn't seem to depend on what table I edit. The only consistent thing is that after editing a few tables, it eventually crashes. 

So far, it has only been an annoyance because, knowing that it will eventually crash, after I finish editing each table, I save the model. I haven't lost any work because it always crashes when I select the next table for editing. However, the first time it happened it wasn't such a pleasant experience.

It does not seem to corrupt the model.

I don't think it's that big or complex of a model. I can send it to you if you ask.
[16 Mar 2009 13:53] Susanne Ebrecht
Yes, we would need your mwb file. Please upload it here. If you will choose "only developers will see the file" then just we are able to see it.
[16 Apr 2009 23: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".