Bug #57150 after closing the report a bug message, I got his message and unable to close it
Submitted: 30 Sep 2010 19:08 Modified: 11 Nov 2010 11:11
Reporter: Roman Diaz Email Updates:
Status: Closed Impact on me:
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.28 OS:Windows (W7, XP SP3)
Assigned to: Mike Lischke CPU Architecture:Any

[30 Sep 2010 19:08] Roman Diaz
Looks like I'll have to use windows task manager to kill this as this error message is stuck in a loop - when I click on the "close" button, the message comes back.

How to repeat:
when I click on the "close" button, the message comes back.
[1 Oct 2010 4:01] Valeriy Kravchuk
Yes, this also happened to me on Windows XP just yesterday.
[1 Oct 2010 13:16] Alfredo Kojima
If this happens again, please right click in the report a bug window and select the Copy Info/Stack menu item and paste it here.
[1 Oct 2010 14:54] Roman Diaz
I can duplicate it all the time.  Here is the stack as requested:

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(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at MySQL.Controls.FlatTabControl.ValidateTab(Int32 index)
   at MySQL.Controls.FlatTabControl.DrawControl(Graphics g)
   at MySQL.Controls.FlatTabControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TabControl.WndProc(Message& m)
   at MySQL.Controls.FlatTabControl.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)
[1 Oct 2010 14:56] Roman Diaz
Exception = System.ObjectDisposedException
Message = Cannot access a disposed object.
Object name: 'AppViewDockContent'.
FullText = System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'AppViewDockContent'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Form.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.TabPage.set_Visible(Boolean value)
   at System.Windows.Forms.TabControl.UpdateTabSelection(Boolean updateFocus)
   at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
   at MySQL.Controls.FlatTabControl.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.TabControl.WmSelChange()
   at System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value)
   at System.Windows.Forms.TabControl.set_SelectedTab(TabPage value)
   at MySQL.Controls.TabDocument.Activate()
   at MySQL.GUI.Workbench.MainForm.DockDocument(ITabDocument document, Boolean main, Boolean activate)
   at MySQL.GUI.Workbench.MainForm.ApplicationCommand(AppCommand command, AppViewImpl view, String str)
   at MySQL.Workbench.WbFrontendCallbacks.app_command_wrapper(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , AppCommand command, AppView* view, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* str)
   at MySQL.Workbench.WbFrontendCallbacks.dock_view(App* app, AppView* view, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* position)
   at MySQL.MCallback3<void\,mforms::App \*\,mforms::AppView \*\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(App* a1, AppView* a2, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a3)
   at wb.WBContext.flush_idle_tasks(WBContext* )
   at MySQL.Workbench.WbContext.flush_idle_tasks()
   at MySQL.GUI.Workbench.Program.timer_Tick(Object sender, EventArgs e)
[2 Oct 2010 3:29] Alfredo Kojima
One more question: can you please provide a step by step method to repeat this? It seems you can repeat it easily, while I can just get the report a bug dialog with no such loop.
[2 Oct 2010 4:24] Roman Diaz
I have the schema open.  I click on "Model" then "Validation" then "Validate all".  I close the output window/tab by clicking on the x.  Then I click on Model, Validation (MySql), Validate all.  That's when I get the error.
[21 Oct 2010 15:37] Mike Lischke
Fixed in repository.
[21 Oct 2010 15:42] Roman Diaz
Thanks for fixing it.  
[8 Nov 2010 14:38] Johannes Taxacher
fix confirmed in repository
[8 Nov 2010 16:09] Roman Diaz
Thanks - it works in 5.2.29.  YAY!
[11 Nov 2010 11:11] Tony Bedford
An entry has been added to the 5.2.29 changelog:

In the Model View, MySQL Workbench crashed when the Output tab was reopened after previously being closed.