Bug #62651 MySQL Workbench has encountered a problem - Queue empty
Submitted: 7 Oct 2011 9:47 Modified: 21 Nov 2011 4:17
Reporter: Geoffrey Druot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S1 (Critical)
Version:5.2.35 CE rev 7915 OS:Windows (7 x64)
Assigned to: CPU Architecture:Any

[7 Oct 2011 9:47] Geoffrey Druot
Description:
When I try to modify my EER diagram, A popup appears with this message :

MySQL Workbench has encountered a problem - Queue empty

We are sorry for the inconvenience but an unexpected exception has been raised by one of the MySQL Workbench modules. In order to fix this issue we would kindly ask you to file a bug report. You can do that by pressing the [Report Bug] button below. 

...

I already have this error on the 5.2.34 CE version.

How to repeat:
Just launch the application and wait for the popup when you try to modify something in the diagram.
[7 Oct 2011 10:04] Valeriy Kravchuk
Would you mind sending .mwb file and detailed instructions how to get this problem with it?
[7 Oct 2011 11:11] Geoffrey Druot
data model file

Attachment: mcd datawarehouse ventes v5.mwb (application/x-zip-compressed, text), 39.05 KiB.

[7 Oct 2011 11:12] Geoffrey Druot
Thanks for your quick answer !

I have attached the file in the previous comment.
[7 Oct 2011 11:23] Geoffrey Druot
To get the error, open the .mwb file with the last version of workbench et wait for a popup message. If the popup don't appears, try to modify the diagram by adding a text note for example...
[7 Oct 2011 11:32] Valeriy Kravchuk
I can not repeat this on Mac OS X. Will try on some Windows later...

Please, send the output of Help > System Info menu item.
[7 Oct 2011 11:38] Geoffrey Druot
I wish send you that but I have nothing on System Info window.
[10 Oct 2011 10:51] MySQL Verification Team
Thank you for the bug report.

Exception = System.InvalidOperationException
Message = Queue empty.
FullText = System.InvalidOperationException: Queue empty.
   at System.Collections.Queue.Dequeue()
   at MySQL.Utilities.AgaTreeStateKeeper.RestoreStates()
   at MySQL.GUI.Workbench.ModelLayerForm.UpdateLayerTree()
   at MySQL.GUI.Workbench.ModelLayerForm.invokeRefresh(NodeId node, Int32 oldCount)
   at MySQL.Grt.RunWrappedDelegate2<void\,void\,bec::NodeId\,MySQL::Grt::NodeId ^\,int\,int\,MySQL::Grt::DelegateSlot2<void\,void\,bec::NodeId\,MySQL::Grt::NodeId ^\,int\,int>::ManagedDelegate>.native_callback(NodeId* a1, Int32* a2)
   at boost.detail.function.void_function_invoker2<void (__cdecl*)(bec::NodeId const &,int const &),void,bec::NodeId const &,int const &>.invoke(function_buffer* function_ptr, NodeId* a0, Int32* a1)
   at boost.function2<void,bec::NodeId const &,int const &>.()(function2<void\,bec::NodeId const \&\,int const \&>* , NodeId* a0, Int32* a1)
   at boost.detail.function.void_function_obj_invoker2<boost::function<void __cdecl(bec::NodeId const &,int const &)>,void,bec::NodeId,int>.invoke(function_buffer* function_obj_ptr, NodeId* a0, Int32 a1)
   at wb.ModelDiagramForm.handle_mouse_move(ModelDiagramForm* , Int32 , Int32 , EventState )
   at MySQL.Workbench.ModelViewForm.OnMouseMove(MouseEventArgs e, Int32 X, Int32 Y, Keys keystate, MouseButtons buttons)
   at MySQL.GUI.Workbench.ModelDiagramForm.CanvasPanel_MouseMove(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
   at MySQL.Utilities.WindowsCanvasViewerPanel.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.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)
[10 Oct 2011 11:27] Geoffrey Druot
Hi !

Where did you find this exception ? You have the same problem than me ?
[10 Oct 2011 11:36] Geoffrey Druot
Okay. I'm tired today...

I guess this message appears in my attached file. So what can I do ?

Many thanks.
[11 Oct 2011 1:34] Alfredo Kojima
bug #62674 and bug #62506 are duplicates
[28 Oct 2011 13:05] Alfredo Kojima
Bu# 62950 is a duplicate
[14 Nov 2011 13:52] Tom Albers
Exact same problem here, only that instead of "queue empty" I get the German equivalent "Die Warteschlange ist leer." 

OS: Windows 7 64 - German
Workbench Version: 5.2.35 CE rev 7915
[21 Nov 2011 4:17] Philip Olson
Fixed as of 5.2.36:
+        An unhandled exception might be emitted after modifying an
+        <literal>EER</literal> diagram, with a popup window reading
+        "MySQL Workbench has encountered a problem - Queue empty."