Bug #52128 Crash on opening connection to start querying
Submitted: 17 Mar 2010 9:10 Modified: 1 Apr 2010 7:23
Reporter: Erwin Derksen Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.16 OS:Microsoft Windows (Vista)
Assigned to: CPU Architecture:Any

[17 Mar 2010 9:10] Erwin Derksen
Description:
Crash popup details: 
Zie het einde van dit bericht voor meer informatie over het aanroepen 
van JIT-foutopsporing (Just In Time) in plaats van dit dialoogvenster.

************** Tekst van uitzondering **************
System.Threading.ThreadStateException: De huidige thread moet op de modus Single Thread Apartment (STA) worden ingesteld alvorens OLE-oproepen kunnen worden gedaan. Controleer of voor de functie Main STAThreadAttribute is gemarkeerd.
   bij System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
   bij System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   bij System.Windows.Forms.Clipboard.SetText(String text)
   bij MySQL.GUI.Workbench.ExceptionDialog.copyInfoButton_Click(Object sender, EventArgs e)
   bij System.Windows.Forms.Control.OnClick(EventArgs e)
   bij System.Windows.Forms.Button.OnClick(EventArgs e)
   bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bij System.Windows.Forms.Button.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Geladen assembly's **************
mscorlib
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4200 (NetFxQFE.050727-4200)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MySQLWorkbench
    Assembly-versie: 5.2.16.5249
    Win32-versie: 5.2.16.5249
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/MySQLWorkbench.exe
----------------------------------------
wbprivate.wr
    Assembly-versie: 0.0.0.0
    Win32-versie: 
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/wbprivate.wr.DLL
----------------------------------------
wbpublic.wr
    Assembly-versie: 0.0.0.0
    Win32-versie: 
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/wbpublic.wr.DLL
----------------------------------------
System.Windows.Forms
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MySQLCsUtilities
    Assembly-versie: 1.0.0.0
    Win32-versie: 1.0.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/MySQLCsUtilities.DLL
----------------------------------------
msvcm90
    Assembly-versie: 9.0.30729.4148
    Win32-versie: 9.00.30729.4148
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_5090ab56bcba71c2/msvcm90.dll
----------------------------------------
WeifenLuo.WinFormsUI.Docking
    Assembly-versie: 2.2.3699.38894
    Win32-versie: 2.2.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
System.Configuration
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
WbPlugins
    Assembly-versie: 1.0.0.0
    Win32-versie: 1.0.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/WbPlugins.DLL
----------------------------------------
Aga.Controls
    Assembly-versie: 1.6.0.0
    Win32-versie: 1.6.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/Aga.Controls.DLL
----------------------------------------
System.Windows.Forms.resources
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.4200 (NetFxQFE.050727-4200)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
sqlide.fe
    Assembly-versie: 0.0.0.0
    Win32-versie: 0.0.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/sqlide.fe.DLL
----------------------------------------
ScintillaNet
    Assembly-versie: 2.0.3699.38973
    Win32-versie: 2.0.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/ScintillaNet.DLL
----------------------------------------
grt.helpers.be
    Assembly-versie: 1.0.0.0
    Win32-versie: 1.0.0.0
    CodeBase: file:///D:/Program%20Files/MySQL/MySQL%20Workbench%205.2%20OSS/grt.helpers.be.DLL
----------------------------------------

************** JIT-foutopsporing **************
Als u JIT-foutopsporing wilt inschakelen, moet in het configuratiebestand voor deze
toepassing of computer (machine.config) de waarde
jitDebugging in het gedeelte system.windows.forms zijn ingesteld.
De toepassing moet ook zijn gecompileerd terwijl foutopsporing
was ingeschakeld.

Bijvoorbeeld:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wanneer JIT-foutopsporing is ingeschakeld, worden onverwerkte uitzonderingen
naar het JIT-foutopsporingsprogramma gestuurd dat op de computer is geregistreerd
en worden niet door dit dialoogvenster verwerkt.

How to repeat:
I'm not sure how to repeat, it may be that I double clicked another connection just after double clicking one.
[22 Mar 2010 20:52] Miguel Solorzano
Thank you for the bug report. Are you connecting with a local or remote server?. Thanks in advance.
[23 Mar 2010 19:34] Erwin Derksen
It happened only once and have not been able to reproduce it. The time it happened:
- I double clicked a local connection
- then I thought: oops I wanted to connect to a remote server
- So, I double clicked a remote connection (while the local connection screen had not yet opened)
- crash

Hope this helps,
Erwin
[26 Mar 2010 12:34] Susanne Ebrecht
For making a deeper analysis we need to know how to repeat this.
[26 Mar 2010 12:46] Erwin Derksen
I'm sorry, all the information I could provide, I already provided. If this is not enough to pinpoint the problem easily, just close the call.

I have not been able to reproduce it since, I didn't loose any unsaved work. So I guess it is not too big a deal, and there are probably more critical problems to solve or functionalities to add.