Bug #66242 Error when trying to open a table-edit window. Program crashes
Submitted: 7 Aug 2012 11:39 Modified: 7 Aug 2012 15:16
Reporter: Ivan Melgrati Email Updates:
Status: Duplicate Impact on me:
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.41 OS:Windows (Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[7 Aug 2012 11:39] Ivan Melgrati
When trying to open a table-edit window, no window appears and later the Workbench crashes.

----- Developer Notes -----

MySQL Workbench CE for Windows version 5.2.41  revision 9727
Configuration Directory: C:\Users\imelgrat\AppData\Roaming\MySQL\Workbench
Data Directory: C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE
Cairo Version: 1.8.8
OS: Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit
CPU: 4x Intel(R) Core(TM) i3 CPU       M 370  @ 2.40GHz, 5.8 GiB RAM
Active video adapter (0): Intel(R) HD Graphics
Installed video RAM: -1348 MB
Current video mode: 1366 x 768 x 4294967296 colors
Used bit depth: 32
Driver version:
Installed display drivers: igdumd64.dll,igd10umd64.dll,igdumdx32,igd10umd32
Current user language: English (United States)

Exception = System.InvalidCastException
Message = Unable to cast object of type 'MySQL.Forms.MenuItemImpl' to type 'MySQL.GUI.Workbench.Plugins.DockablePlugin'.
FullText = System.InvalidCastException: Unable to cast object of type 'MySQL.Forms.MenuItemImpl' to type 'MySQL.GUI.Workbench.Plugins.DockablePlugin'.
   at MySQL.GUI.Workbench.Plugins.DockablePlugin.GetFromFixedPtr(IntPtr ptr)
   at MySQL.GUI.Workbench.MainForm.ShowPlugin(IntPtr ptr)
   at MySQL.Forms.AppImpl.show_editor_wrapper(UInt32 native_handle)
   at boost.detail.function.void_function_invoker1<void (__cdecl*)(unsigned int),void,unsigned int>.invoke(function_buffer* function_ptr, UInt32 a0)
   at MySQL.Grt.ListModel.activate_node(NodeId node)
   at MySQL.GUI.Workbench.ModelOverviewForm.listViewDoubleClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.ListView.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:
I was trying to open a table-edit window (by double-clicking on a table on the MySQL-Model panel) and nothing comes up. When trying to save the Model or exiting My-SQL, an error comes up.
[7 Aug 2012 11:49] MySQL Verification Team
Do you see a message in the status bar?. Thanks.
[7 Aug 2012 12:11] Ivan Melgrati
No messages show up on the status bar (other than "Ready"). Testing it again, I realized this error comes up when I try to rename a PK field (I didn't try to edit any non-PK field, though). The field gets changed but I can't edit any other tables because the edit-window never shows up
[7 Aug 2012 12:14] Ivan Melgrati
Also, after trying to open an edit-window and not being able to see it, the program crashes when shutting down the Workbench app.
[7 Aug 2012 15:16] Valeriy Kravchuk
This is a duplicate of bug #66013.