Bug #51736 Workbench crashed after selecting "Server to Connect to:"
Submitted: 4 Mar 2010 19:14 Modified: 10 Mar 2010 10:27
Reporter: Gregg Kelly Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S1 (Critical)
Version:5.2.16 OS:Windows
Assigned to: CPU Architecture:Any

[4 Mar 2010 19:14] Gregg Kelly
Description:
Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException: External component has thrown an exception.
   at MySQL.Forms.DrawBoxImpl.drawbox_mouse_click(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseClick(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:
1) Click on "Server Administration" link
2) In Administrator dialog box, select on connection instance, then click "OK" button

Crashes as noted above ...
[5 Mar 2010 6:34] Susanne Ebrecht
Did you test if the connection is working?
[5 Mar 2010 18:18] Gregg Kelly
May have to do with SSH connection.  I tried creating a "new server instance" and the DB connection tested fine.  Though, curiously, came back with unknown OS -- show logs looks as if its known.
----------
Get Server OS: unknown

Connecting to MySQL server 192.168.0.4...
Connected.
MySQL server version is 5.1.30
MySQL server architecture is i386
MySQL server OS is pc-solaris2.11
----------
After filling out the Host SSH Connection section the app hangs forever in the section "Testing Host Machine Settings".

I have ssh'd successfully from another computer (opensolaris) to this server using exact same login info.

So as it stands, I have no way to use workbench to admin db server since it cannot connect...
[5 Mar 2010 19:59] Gregg Kelly
Update:

I have worked around the infinite hanging condition by rebooting.  Sorry, should have known ...

win xp + network + infinite wait = reboot

and now receive this ...
---
Connecting to 192.168.0.4
connected.
OK, Operating System is 'SunOS'
Operation failed: /etc/init.d/mysql start is invalid
---

which appears to be a opensolaris admin issue.

So, just to be clear.  Even after rebooting, if I select the original server instance and select Server Administration to make a connection workbench still crashes -- does not handle the underlying exception.

Trying to create a 2nd instance has the above problem.
[10 Mar 2010 10:28] Susanne Ebrecht
Many thanks for writing a bug report.

This is not a bug.

/etc/init.d/mysql start is the default start script for Linux MySQL server.

You have to look here what is the right command on SunOS.

You need to fill here the same command that you are using for start/stop the server from shell.