Bug #62227 Index was outside the bounds of the array.
Submitted: 22 Aug 2011 14:34 Modified: 29 Aug 2011 14:47
Reporter: Steve Shriver Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.34 CE OS:Windows (XP, 2002, SP 3)
Assigned to: CPU Architecture:Any

[22 Aug 2011 14:34] Steve Shriver
Description:
Workbench crashed over the weekend. Restarted Monday morning with two connections that were listed as (autosaved).  Launched the first one, which had one named file tab and four "Query" tabs.  I tried running one of the sql statements in the saved file using Ctrl-Enter but nothing ran. I tried same on several other queries and eventually the tool stopped with a critical error. 

How to repeat:
Use Ctrl-Enter to run a query, before it finishes, ctrl-enter on another query. the system will hang and neither query will complete.  

After restarting workbench the problem cleared. 

Suggested fix:
set up a queue for the queries to run instead of trying to run them all concurrently? display the results in separate Output tabs.
[22 Aug 2011 14:36] Steve Shriver
area of workbench that caused the error.

Attachment: screenshot.72.jpg (image/jpeg, text), 419.50 KiB.

[22 Aug 2011 14:36] Steve Shriver
cleared the first error, then this part of workbench failed with same error message.

Attachment: screenshot.73.jpg (image/jpeg, text), 43.01 KiB.

[22 Aug 2011 14:54] MySQL Verification Team
If you are able to repeat, please right click around the bug icon and select to copy the back trace to the clipboard and paste it here. Thanks.
[22 Aug 2011 16:36] Steve Shriver
The process was to (impatiently) ctrl-enter multiple queries from the sql editor window. 

Exception = MySQL.Grt.BackendException
Message = invalid vector<T> subscript
FullText = MySQL.Grt.BackendException: invalid vector<T> subscript
   at MySQL.Workbench.WbContext.flush_idle_tasks()
   at MySQL.GUI.Workbench.Program.timer_Tick(Object sender, EventArgs e)
[22 Aug 2011 20:05] Rafael Antonio Bedoy Torres
Can you please share the info you got when you click on Help -> System Info?

thanks in advance!
[22 Aug 2011 20:40] Steve Shriver
Help>System Info: 

MySQL Workbench CE for Windows version 5.2.34

Configuration Directory: C:\Documents and Settings\sshrive\Application Data\MySQL\Workbench

Data Directory: C:\Program Files\MySQL\MySQL Workbench 5.2 CE

Cairo Version: 1.8.8

Rendering Mode: OpenGL is available on this system, so OpenGL is used for rendering.

OpenGL Driver Version: 2.0.0 - Build 7.15.10.5043

OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)

CPU: 2x Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz, 2.9 GiB RAM

Active video adapter: ConfigMgr Remote Control Driver

Installed video RAM: 128 MB

Current video mode: 1440 x 900 x 4294967296 colors

Used bit depth: 32

Driver version: 4.00.6163.1000

Installed display drivers: igxprd32.dll

Current user language: English (United States)
[26 Aug 2011 17:05] Armando Lopez Valencia
Hello Steve.
Are you still able to reproduce this problem?
If that is the case, can you please provide more information about the connection (SSH or TCP/IP, are you using key autentication etc) with are you having problems with? 
Also, can you please tell us the version of MySQL server that you are connecting.
Thanks.
[28 Aug 2011 13:51] Steve Shriver
I cannot reproduce the problem this morning. :-( Clicked on multiple queries in the same edit window, and multiple tabs. 

I am using TCP/IP for connections. 

The database is: 
  Server:  MySQL
  Version: 5.1.40-community-log

Thanks,
sjs
[29 Aug 2011 14:47] Armando Lopez Valencia
Thanks a lot for your report Steve.
If you manage to reproduce this defect don't hesitate to re-open this bug.
Closing defect.