Bug #62661 External component has thrown and exception.
Submitted: 8 Oct 2011 16:53 Modified: 13 Jan 2012 14:53
Reporter: Jeron Derama Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.35 OS:Windows
Assigned to: CPU Architecture:Any

[8 Oct 2011 16:53] Jeron Derama
Description:
Here is the error thrown.

We are sorry for the inconvenience but an unexpected exception has been raised by one of the MySQL Workbench modules. In order to fix this issue we would kindly ask you to file a bug report. You can do that by pressing the [Report Bug] button below. 

Please make sure to include a detailed description of your actions that lead to this problem.

Thanks a lot for taking the time to help us improve MySQL Workbench!

The MySQL Workbench Team

How to repeat:
The steps below were followed from the HELP file to type queries in the SQL Editor tab. Exception error was thrown after typing line 14 "SELECT."

10.	You can also carry out a similar check from within MySQL Workbench. Click on the Home screen tab. 
11.	Click the link Open Connection to start Querying in the SQL Development section of the Workspace. This will launch the Connect to Database dialog. Select “Big Iron Server” from the drop down listbox. Click OK. 
12.	A new SQL Editor tab will be displayed. In the SQL Statements area enter the following code: 
13.	USE dvd_collection;
14.	SELECT * FROM movies;
15.	Now click the Execute SQL Script in Connected Server toolbar button. This resembles a small lightning bolt. The SQL Editor will display a new Result tab contain the result of executing the SQL statements.
[8 Oct 2011 20:59] MySQL Verification Team
Could you please provide the output of Help->System Info. Thanks.
[14 Oct 2011 15:03] Jeron Derama
Selecting the Help->System Info also causes the MySQL Workbench to stop working. This error is persistent even after restarting the program.
[14 Oct 2011 15:21] Alfredo Kojima
When the error occurs while doing the various actions that trigger crashes for you, right click in the 
crash dialog and select "Copy Stack trace" then paste them here. Thanks
[16 Oct 2011 17:16] Jeron Derama
Here's a stack trace of an error after I copied a table from Microsoft Access and pasted it onto a created table in MySQL Workbench (Employee hire date and Region ID were accidentally mismatched between two tables).

Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at MySQL.Grt.Db.Recordset.get_popup_menu_items(List`1 rows, Int32 column)
   at MySQL.GUI.Workbench.SqlIdeMenuManager.OnMenuOpening(Object sender, CancelEventArgs e)
   at System.Windows.Forms.ToolStripDropDown.OnOpening(CancelEventArgs e)
   at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
   at System.Windows.Forms.ContextMenuStrip.SetVisibleCore(Boolean visible)
   at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position)
   at System.Windows.Forms.ContextMenuStrip.ShowInternal(Control source, Point location, Boolean isKeyboardActivated)
   at System.Windows.Forms.DataGridView.WmContextMenu(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.DataGridView.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)

Thanks.
[26 Oct 2011 14:09] MySQL Verification Team
It's 5.2.5 WorkBench version? otherwise please try it. Thanks.
[29 Oct 2011 15:20] Jeron Derama
Workbench version is 5.2.35 CE
Command Line Client version 5.5
Server version 5.6.3-m6 MySQL Community Server (GPL)

What did you want me to try out?
[29 Oct 2011 18:13] Jeron Derama
Try out 5.2.5 WorkBench version, aye.
[13 Dec 2011 14:53] MySQL Verification Team
Please try new version 5.2.36. Thanks.
[14 Jan 2012 1: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".