Bug #89500 Open a Connection Error
Submitted: 1 Feb 2018 17:29 Modified: 28 Feb 2018 9:54
Reporter: Mark Badaracco Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.3.10 64 bit OS:Microsoft Windows (Windows 10)
Assigned to: CPU Architecture:Any
Tags: log file

[1 Feb 2018 17:29] Mark Badaracco
Description:
I click on "Localhost" to connect to my local db.  Works fine usually, then all of the sudden I get an error:

External Component has thrown an exception

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. 

Please make sure to include a detailed description of your actions that lead to this problem.

Thanks a lot for taking the time to help us improve MySQL Workbench!

The MySQL Workbench Team

How to repeat:
Open application
Click a connection
When it opens error occurs.

Also, it will not show the name of the db in the tab label.

Also I cannot connect to any other database after this happens.  I must shut down the app restart it and click on the database I want next.

There is literally no information besides what I have give to you to report.

Suggested fix:
In the past I had to completely uninstall remove any data in APPDATA folder by hand. Then reinstall.  The issue will go away for a period of time.  But eventually comes back!
[1 Feb 2018 17:31] Mark Badaracco
The error will occur when I attempt to make any connection.  It will still connect, but I cannot make any other connection without restarting application
[1 Feb 2018 17:38] Mark Badaracco
Found a log file:

12:36:02 [ERR][      Workbench]: Console redirection failed.
12:36:02 [INF][      Workbench]: Starting up Workbench
12:36:02 [INF][      Workbench]: Current environment:
	Command line: "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\MySQLWorkbench.exe" 
	CurrentDirectory: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	HasShutdownStarted: False
	OSVersion: Microsoft Windows NT 6.2.9200.0
	SystemDirectory: C:\WINDOWS\system32
	TickCount: 682525203
	UserInteractive: True
	Version: 4.0.30319.42000
	WorkingSet: 34570240
12:36:02 [INF][      Workbench]: Environment variables:
	COMPUTERNAME = PC020-WIN10
	USERPROFILE = C:\Users\markb
	HOMEPATH = \Users\markb
	LOCALAPPDATA = C:\Users\markb\AppData\Local
	asl.log = Destination=file
	PSModulePath = C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
	PROCESSOR_ARCHITECTURE = AMD64
	Path = C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;D:\webserver\bin\php\php5.5.12;C:\ProgramData\ComposerSetup\bin;C:\Program Files\TortoiseSVN\bin;C:\ProgramData\ComposerSetup\bin;D:\webserver\bin\php\php7.0.10;C:\Users\markb\AppData\Roaming\Composer\vendor\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
	CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
	ProgramFiles(x86) = C:\Program Files (x86)
	PROCESSOR_LEVEL = 21
	LOGONSERVER = \\PC020-WIN10
	PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
	HOMEDRIVE = C:
	SystemRoot = C:\WINDOWS
	SESSIONNAME = Console
	ALLUSERSPROFILE = C:\ProgramData
	PUBLIC = C:\Users\Public
	FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
	APPDATA = C:\Users\markb\AppData\Roaming
	PROCESSOR_REVISION = 0200
	USERNAME = markb
	CommonProgramW6432 = C:\Program Files\Common Files
	TEMP = C:\Users\markb\AppData\Local\Temp
	OneDrive = C:\Users\markb\OneDrive
	CommonProgramFiles = C:\Program Files\Common Files
	OS = Windows_NT
	USERDOMAIN_ROAMINGPROFILE = PC020-WIN10
	PROCESSOR_IDENTIFIER = AMD64 Family 21 Model 2 Stepping 0, AuthenticAMD
	ComSpec = C:\WINDOWS\system32\cmd.exe
	SystemDrive = C:
	FPS_BROWSER_USER_PROFILE_STRING = Default
	ProgramFiles = C:\Program Files
	NUMBER_OF_PROCESSORS = 8
	TMP = C:\Users\markb\AppData\Local\Temp
	ProgramData = C:\ProgramData
	ProgramW6432 = C:\Program Files
	windir = C:\WINDOWS
	USERDOMAIN = PC020-WIN10
12:36:02 [INF][      Workbench]: Current version given by meta info is: 6.3.10
12:36:02 [INF][      Workbench]: Setting PATH to: C:\WINDOWS\system32;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;D:\webserver\bin\php\php5.5.12;C:\ProgramData\ComposerSetup\bin;C:\Program Files\TortoiseSVN\bin;C:\ProgramData\ComposerSetup\bin;D:\webserver\bin\php\php7.0.10;C:\Users\markb\AppData\Roaming\Composer\vendor\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
12:36:02 [INF][ mforms managed]: Initializing mforms wrapper
12:36:03 [INF][   WBContext UI]: Initializing workbench context UI with these values:
	base dir: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	plugin path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	struct path: 
	module path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE/modules
	library path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	user data dir: C:\Users\markb\AppData\Roaming\MySQL\Workbench
	open at start: 
	open type: 
	run at startup: 
	run type: 
	Force SW rendering: No
	Force OpenGL: No
	quit when done: No
12:36:03 [INF][      WBContext]: WbContext::init
12:36:03 [INF][            WBA]: Looking for extension modules for WBA...
12:36:03 [INF][            WBA]: 0 extension modules found
12:36:03 [WRN][            grt]: C:\Users\markb\AppData\Roaming\MySQL\Workbench\connections.xml:26: link '{7253C6DA-A881-46E8-8CD2-9058C9E1F650}' <object GrtObject> key=owner could not be resolved
12:36:04 [INF][      WBContext]: System info:
 	MySQL Workbench Community (GPL) for Windows version 6.3.10 CE build 12092614 (64 bit)
	Configuration Directory: C:\Users\markb\AppData\Roaming\MySQL\Workbench
	Data Directory: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	Cairo Version: 1.10.2
	OS: Microsoft Windows 10 Home
	CPU: 8x AMD FX(tm)-8350 Eight-Core Processor           , 16.0 GiB RAM
	Active video adapter ASUS R9 280 Series
	Installed video RAM: -1024 MB
	Current video mode: 1920 x 1080 x 4294967296 colors
	Used bit depth: 32
	Driver version: 22.19.677.257
	Installed display drivers: C:\WINDOWS\System32\DriverStore\FileRepository\c0318486.inf_amd64_11ba0b4b7cc81d52\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\c0318486.inf_amd64_11ba0b4b7cc81d52\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\c0318486.inf_amd64_11ba0b4b7cc81d52\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\c0318486.inf_amd64_11ba0b4b7cc81d52\amdxc64.dll
	Current user language: English (United States)

12:36:04 [INF][      Workbench]: UI is up
12:36:04 [INF][      Workbench]: Running the application
12:36:09 [INF][SQL Editor Form]: Opened connection 'Local instance wampmysqld64' to MySQL Community Server (GPL) version 5.7.14
12:36:09 [INF][        WQE.net]: Launching SQL IDE
12:36:10 [ERR][      Workbench]: External component has thrown an exception.
Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at MySQL.Forms.ViewEventTarget.HandleMouseClick(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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
12:36:10 [INF][        WQE.net]: SQL IDE UI is ready
[2 Feb 2018 11:17] Miguel Solorzano
Thank you for the bug report. Which server version are you try to connect and what kind of connection. Thanks.
[2 Feb 2018 13:37] Mark Badaracco
Server Connection Settings

Attachment: Capture1.PNG (image/png, text), 30.79 KiB.

[28 Feb 2018 9:54] Chiranjeevi Battula
Hello Mark Badaracco,

Thank you for the bug report.
I could not repeat the issue at our end using with MySQL workbench 6.3.10 version with MySQL 5.7.21 and 5.6.39 versions.
If you can provide more information, feel free to add it to this bug and change the status back to 'Open'.

Thank you for your interest in MySQL.

Thanks,
Chiranjeevi.