Bug #58905 Workbench bug when switching tabs of a table and editing them
Submitted: 13 Dec 2010 20:57 Modified: 3 Apr 2011 15:04
Reporter: Paulo E Ojeda Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.31 OS:Windows (win 7)
Assigned to: CPU Architecture:Any
Tags: Edit, switch, table, tabs, workbench

[13 Dec 2010 20:57] Paulo E Ojeda
Description:
Well, really don't know how it happens, but it's not the first time it happens to me. Last time, I just tried to ignore the bug (which pop up a couple of times then) and got an app hang (which I reported at bug #58880).
As the title says, I was working on many tabs and switching the ones from an specific table looking for the names of the columns in one to write a trigger in the other, and then suddenly got the bug window (which I'll attach) and which stack trace is this:

Exception = System.NullReferenceException
Message = Referencia a objeto no establecida como instancia de un objeto.
FullText = System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en std.vector<int,std::allocator<int> >.size(vector<int\,std::allocator<int> >* )
   en MySQL.Grt.?A0x81e5541f.CppVectorToNativeList<int,int>(vector<int\,std::allocator<int> >* input)
   en MySQL.Grt.nativeToManaged(vector<int\,std::allocator<int> >* input)
   en MySQL.Grt.RunWrappedDelegate2<void\,void\,std::vector<int\,std::allocator<int> >\,System::Collections::Generic::List<int> ^\,int\,int\,MySQL::Grt::DelegateSlot2<void\,void\,std::vector<int\,std::allocator<int> >\,System::Collections::Generic::List<int> ^\,int\,int>::ManagedDelegate>.native_callback(vector<int\,std::allocator<int> >* a1, Int32* a2)
   en sigc.pointer_functor0<int>.()(pointer_functor0<int>* )
   en sigc.adaptor_functor<sigc::pointer_functor0<int> >.()(adaptor_functor<sigc::pointer_functor0<int> >* )
   en sigc.internal.slot_call0<sigc::pointer_functor0<int>,int>.call_it(slot_rep* rep)
   en sigc.slot0<int>.()(slot0<int>* )
   en sigc.adaptor_functor<sigc::slot<int,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil> >.()(adaptor_functor<sigc::slot<int\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil> >* )
   en sigc.retype_return_functor<void,sigc::slot<int,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil> >.()(retype_return_functor<void\,sigc::slot<int\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil\,sigc::nil> >* )
   en sigc.internal.slot_call0<sigc::retype_return_functor<void,sigc::slot<int,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil,sigc::nil> >,void>.call_it(slot_rep* rep)
   en MySQL.Grt.ListModel.refresh()
   en MySQL.GUI.Workbench.Plugins.DbMysqlTableEditor.insertsTabPage_Enter(Object sender, EventArgs e)
   en System.Windows.Forms.Control.OnEnter(EventArgs e)
   en System.Windows.Forms.TabPage.OnEnter(EventArgs e)
   en System.Windows.Forms.TabPage.FireEnter(EventArgs e)
   en System.Windows.Forms.TabControl.OnSelected(TabControlEventArgs e)
   en System.Windows.Forms.TabControl.WmSelChange()
   en System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value)
   en MySQL.Controls.FlatTabControl.OnMouseDown(MouseEventArgs e)
   en MySQL.Controls.FlatTabControl.WndProc(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

PS: didn't know whether or not put this on the same bug report as they would be very likely linked, but not necessarily. 

How to repeat:
It's really hard to reproduce. Only happens after working a long time and modifying many things at the same time.
[13 Dec 2010 20:58] Paulo E Ojeda
Screenshot

Attachment: SS-2010-12-13_17.21.05.png (image/png, text), 58.75 KiB.

[13 Dec 2010 21:25] MySQL Verification Team
Thank you for the bug report. Could you please provide the output of Help-> System Info? Thanks in advance.
[13 Dec 2010 21:27] Paulo E Ojeda
Of course. Here it is:

MySQL Workbench CE for Windows version 5.2.31

Configuration Directory: C:\Users\paulo\AppData\Roaming\MySQL\Workbench

Data Directory: C:\Program Files (x86)\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: 3.3.0

OS: Microsoft Windows 7  (build 7600), 64-bit

CPU: 2x Intel(R) Core(TM)2 Duo CPU     E7300  @ 2.66GHz, 3.0 GiB RAM

Active video adapter: NVIDIA GeForce 8500 GT

Installed video RAM: 1024 MB

Current video mode: 1440 x 900 x 4294967296 colores

Used bit depth: 32

Driver version: 8.17.12.6099

Installed display drivers: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um

Current user language: EspaƱol (Argentina)
[3 Mar 2011 15:04] Alfredo Kojima
Please see if you can get a more or less reliable way to repeat this. Open your model and open several tabs
then make whatever changes you were making and then switch tabs etc. We need some way to narrow down a way to repeat this, otherwise it's close to impossible to find out what's wrong. Thank you.
[3 Apr 2011 23: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".