Bug #66050 Index out of range exception on Migration Schemata selection screen
Submitted: 27 Jul 2012 13:23 Modified: 16 Sep 2012 17:13
Reporter: C Kohlbrecher Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Migration Severity:S3 (Non-critical)
Version:5.2.41 OS:Windows (Microsoft Windows 7 (build 7600), 64-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[27 Jul 2012 13:23] C Kohlbrecher
Description:
Clicked on index column to sort when only one item was available and exception rendered.

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

MySQL Workbench CE for Windows version 5.2.41  revision 9727
Configuration Directory: C:\Users\10165651\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  (build 7600), 64-bit
CPU: 8x Intel(R) Xeon(R) CPU           X5667  @ 3.07GHz, 16.0 GiB RAM
Active video adapter (0): NVIDIA Quadro NVS 295
Installed video RAM: 256 MB
Current video mode: 1024 x 768 x 4294967296 colors
Used bit depth: 32
Driver version: 8.17.12.5970
Installed display drivers: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
Current user language: English (United States)

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.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
   at Aga.Controls.Tree.TreeViewAdv._model_NodesRemoved(Object sender, TreeModelEventArgs e)
   at Aga.Controls.Tree.TreeModel.OnNodeRemoved(Node parent, Int32 index, Node node)
   at Aga.Controls.Tree.Node.NodeCollection.RemoveItem(Int32 index)
   at System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
   at Aga.Controls.Tree.Node.NodeCollection.ClearItems()
   at System.Collections.ObjectModel.Collection`1.Clear()
   at MySQL.Forms.SortableTreeModel.SortNodes(Collection`1 nodes)
   at MySQL.Forms.SortableTreeModel.SortNodes(Collection`1 nodes)
   at MySQL.Forms.SortableTreeModel.Sort()
   at MySQL.Forms.TreeNodeViewImpl.OnColumnClicked(Object sender, TreeColumnEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Aga.Controls.Tree.TreeViewAdv.OnColumnClicked(TreeColumn column)
   at Aga.Controls.Tree.ClickColumnState.MouseUp(TreeNodeAdvMouseEventArgs args)
   at Aga.Controls.Tree.TreeViewAdv.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.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:
See description.  Only one schema was in a single SQL Server database for migration. Clicked on table header object on accdient but the sorting process kicked in causing the exeption.
[27 Jul 2012 13:34] C Kohlbrecher
Clicked on Include Schemata column to sort when only one item was available and exception rendered for Sorting on a negative Index.
[16 Aug 2012 17:13] Armando Lopez Valencia
Thanks for your report.
Can you please attach a screenshot and/or more detailed steps to reproduce this defect?
Thanks
[17 Sep 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".