Bug #67726 Workbench crashes when going to first match after doing a text search on "/*MYSQ
Submitted: 27 Nov 2012 9:15 Modified: 27 Dec 2012 13:32
Reporter: John Ericson Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.44 OS:Windows (Microsoft (build 9200), 64-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[27 Nov 2012 9:15] John Ericson
Description:
I'm trying to load a stored procedure into a MySQL database from a earlier dump taken by exporting all the stored procedure from another database using MySQL WorkBench. I needed to modify the SQL-file slightly to be able to execute it.

When I try to do a search on "/*MYSQLEND" by doing CTRL+F the Workbench crashes when jumping to the first match. And that's why I write this bug report.

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

MySQL Workbench CE for Windows version 5.2.44  revision 9933
Configuration Directory: C:\Users\John\AppData\Roaming\MySQL\Workbench
Data Directory: C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE
Cairo Version: 1.8.8
OS: Microsoft  (build 9200), 64-bit
CPU: 8x Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 16.0 GiB RAM
Current user language: Swedish (Sweden)

Exception = System.ArgumentOutOfRangeException
Message = Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
FullText = System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index)
   at MySQL.Utilities.FindPanel.AddRecentSearchItem()
   at MySQL.Utilities.FindPanel.textBox_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.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:
1) Have a long stored procedure containing the text "/*MYSQLEND" in the procedures.
2) Do CTRL+F
3) Search for "/*MYSQLEND".
4) When you jump to the first match the Workbench crashes.
[27 Nov 2012 13:32] MySQL Verification Team
Thank you for the bug report. I can't repeat please provide a sample code which allows to repeat the issue?. Thanks.
[28 Dec 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".