Bug #59878 adding fk relationship
Submitted: 1 Feb 2011 21:36 Modified: 2 Mar 2011 7:00
Reporter: John Page Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.15 beta OS:Microsoft Windows
Assigned to: CPU Architecture:Any

[1 Feb 2011 21:36] John Page
Description:
Exception = System.AccessViolationException
Message = Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
FullText = System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at wb.ModelDiagramForm.handle_mouse_button(ModelDiagramForm* , MouseButton , Boolean , Int32 , Int32 , EventState )
   at MySQL.Workbench.ModelViewForm.OnMouseUp(MouseEventArgs e, Int32 X, Int32 Y, Keys keystate, MouseButtons buttons)
   at MySQL.GUI.Workbench.ModelDiagramForm.CanvasPanel_MouseUp(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
   at MySQL.Utilities.WindowsCanvasViewerPanel.OnMouseUp(MouseEventArgs 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.ScrollableControl.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:
have a table definition in the upper right hand corner of the page. Another table placed elsewhere on the page. Select the relationship button for existing fields (last one on the list). The help box will cover the table definition in the upper right hand corner, however you can get the field to highlight if you place the cursor carefully, when you click WorkBench crashes.
[1 Feb 2011 21:53] John Page
The problem actually appears to be related to a type mismatch between the parent and child fields. Of course with the help box overlaying the table definition I thought that I was picking the PK when in reality I was picking a VARCHAR field. Either way something other than a crash message would be nice. The error did not actually close the WorkBench so I was able to save my work. Hope this update helps.
[1 Feb 2011 22:25] Miguel Solorzano
Which version are you using (5.2.31)?.
[2 Feb 2011 4:28] John Page
According to the about screen Version 5.2.15 beta build 5053
[2 Feb 2011 7:00] Valeriy Kravchuk
Please, check if the same problem happens with current version, 5.2.31a.
[3 Mar 2011 0: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".