Bug #100297 MySQL Workbench has encountered a problem. Cannot access a disposed object.
Submitted: 22 Jul 2020 18:33 Modified: 17 Aug 2020 17:18
Reporter: MARK COMPORT Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S1 (Critical)
Version:8.0.21 OS:Any (Build 16448441 CE)
Assigned to: CPU Architecture:x86 (INTEL Core I% 6400T 2.2GHZ)

[22 Jul 2020 18:33] MARK COMPORT
Description:

Description:
After download and installation of the newest version of MySQL Workbench without any problems, I started MySQL Workbench for the first time. After clicking the local connection button, it clocks  for many minutes with no results. I then clicked the Cancel button of the Open SQL Editor screen and this message appeared: "Cannot Access a Disposed Object. Object Name : 'HUDForm'.".

I attempted restarting the computer and verifying the MySQL service was running, which it was and still got the same results.

I had a previous version of MySQL Workbench installed, But this old installation was completely removed before the new installation of MySQL was reinstalled

How to repeat:
1. Launch MYSQL Workbench
2. Click on MySQL Connections -> Local
[27 Jul 2020 4:14] Dale Thompson
My experience is the same. I uninstalled a prior version of all MySQL programs including WorkBench and installed the latest version of MySQL Workbench but it won't open.
[29 Jul 2020 12:50] MySQL Verification Team
Hello MARK COMPORT,

Thank you for the bug report.
I tried to reproduce your issue on windows 10 with workbench 8.0.21 but I am not seeing any issues at my end. To investigate further this issue at our end, may I kindly request you to launch workbench under debug mode (-log-level=debug3) and provide unaltered workbench log file(more details about log are explained here - https://dev.mysql.com/doc/workbench/en/workbench-reporting-bugs.html). Thank you.

Regards
Ashwini Patil
[30 Jul 2020 17:27] MARK COMPORT
I have added 2 log files when this happens. Please review.
[31 Jul 2020 18:36] MARK COMPORT
When you say:
For example:

# Microsoft Windows
shell> cd "C:\Program Files (x86)\MySQL\MySQL Workbench CE 8.0.21\"
shell> MySQLWorkbench.exe -log-level=debug3

Where are you when you are editing this? In the command shell of Microsoft or in MySQL shell?

when I I enter this in MySQL shell it says invalid. when I try to CD to the location in Microsoft this is what I get:
C:\Program Files (x86)\MySQL>dir
 Volume in drive C is Windows
 Volume Serial Number is DA44-A86E

 Directory of C:\Program Files (x86)\MySQL

07/30/2020  04:19 PM    <DIR>          .
07/30/2020  04:19 PM    <DIR>          ..
07/30/2020  04:16 PM    <DIR>          Connector J 8.0
07/30/2020  04:16 PM    <DIR>          Connector NET 8.0
07/30/2020  04:19 PM    <DIR>          MySQL Documentation 8.0
07/30/2020  04:18 PM    <DIR>          MySQL For Excel 1.3
07/30/2020  04:16 PM    <DIR>          MySQL for Visual Studio 1.2
07/30/2020  04:10 PM    <DIR>          MySQL Installer for Windows
07/30/2020  04:16 PM    <DIR>          MySQL Notifier 1.1
07/30/2020  04:16 PM    <DIR>          Samples and Examples 8.0
               0 File(s)              0 bytes
              10 Dir(s)  874,763,055,104 bytes free

C:\Program Files (x86)\MySQL>
[31 Jul 2020 19:39] MARK COMPORT
This is whee the MySQL Workench E 8.0.21 fleis residng:

 Directory of C:\Program Files\MySQL

07/30/2020  04:22 PM    <DIR>          .
07/30/2020  04:22 PM    <DIR>          ..
07/30/2020  04:23 PM    <DIR>          Connector C++ 8.0
07/30/2020  04:16 PM    <DIR>          Connector ODBC 8.0
07/30/2020  04:16 PM    <DIR>          Connector Python 8.0
07/30/2020  04:18 PM    <DIR>          MySQL Router 8.0
07/30/2020  04:22 PM    <DIR>          MySQL Server 8.0
07/30/2020  04:22 PM    <DIR>          MySQL Shell 8.0
07/30/2020  04:19 PM    <DIR>          MySQL Workbench 8.0 CE
               0 File(s)              0 bytes
               9 Dir(s)  875,018,444,800 bytes free

C:\Program Files\MySQL>
[3 Aug 2020 19:32] MARK COMPORT
Additional Info:

C:\Program Files\MySQL\MySQL Workbench 8.0 CE>
Unhandled Exception: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'HUDForm'.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at MySQL.Utilities.HUDForm.Finish()
[3 Aug 2020 19:57] MARK COMPORT
Here is the Log File:

14:52:21 [ERR][      Workbench]: Console redirection failed.
14:52:22 [INF][      Workbench]: Starting up Workbench
14:52:22 [INF][      Workbench]: Current environment:
	Command line: "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\MySQLWorkbench.exe" 
	CurrentDirectory: C:\Program Files\MySQL\MySQL Workbench 8.0 CE
	HasShutdownStarted: False
	OSVersion: Microsoft Windows NT 6.2.9200.0
	SystemDirectory: C:\WINDOWS\system32
	TickCount: 343214984
	UserInteractive: True
	Version: 4.0.30319.42000
	WorkingSet: 41099264
14:52:22 [INF][      Workbench]: Environment variables:
	SystemDrive = C:
	ProgramFiles(x86) = C:\Program Files (x86)
	ProgramW6432 = C:\Program Files
	PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
	TMP = C:\Users\markc\AppData\Local\Temp
	PROCESSOR_ARCHITECTURE = AMD64
	Path = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\PuTTY\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\
	PROCESSOR_REVISION = 5e03
	TEMP = C:\Users\markc\AppData\Local\Temp
	USERPROFILE = C:\Users\markc
	CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
	LOGONSERVER = \\DESKTOP-FCH5C3R
	USERNAME = markcomport
	SystemRoot = C:\WINDOWS
	UOIPME_REG_PATH = C:\Program Files\Intel Corporation\USB over IP
	OneDrive = C:\Users\markc\OneDrive - Lovepacs
	CommonProgramFiles = C:\Program Files\Common Files
	PROCESSOR_LEVEL = 6
	ProgramData = C:\ProgramData
	platformcode = 6J
	HOMEPATH = \Users\markc
	OneDriveConsumer = C:\Users\markc\OneDrive
	COMPUTERNAME = DESKTOP-FCH5C3R
	ALLUSERSPROFILE = C:\ProgramData
	CommonProgramW6432 = C:\Program Files\Common Files
	OneDriveCommercial = C:\Users\markc\OneDrive - Lovepacs
	SESSIONNAME = Console
	DriverData = C:\Windows\System32\Drivers\DriverData
	HOMEDRIVE = C:
	windir = C:\WINDOWS
	VS160COMCOMNTOOLS = C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
	NUMBER_OF_PROCESSORS = 4
	OS = Windows_NT
	ProgramFiles = C:\Program Files
	ComSpec = C:\WINDOWS\system32\cmd.exe
	PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
	PSModulePath = C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
	Platform = HPD
	APPDATA = C:\Users\markc\AppData\Roaming
	USERDOMAIN = DESKTOP-FCH5C3R
	OnlineServices = Online Services
	asl.log = Destination=file
	LOCALAPPDATA = C:\Users\markc\AppData\Local
	USERDOMAIN_ROAMINGPROFILE = DESKTOP-FCH5C3R
	RegionCode = NA
	PUBLIC = C:\Users\Public
14:52:22 [INF][      Workbench]: Current version given by meta info is: 8.0.21
14:52:22 [INF][      Workbench]: Setting PATH to: C:\WINDOWS\system32;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\PuTTY\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\
14:52:22 [INF][ mforms managed]: Initializing mforms wrapper
14:52:22 [INF][   WBContext UI]: Initializing workbench context UI with these values:
	base dir: C:\Program Files\MySQL\MySQL Workbench 8.0 CE
	plugin path: C:\Program Files\MySQL\MySQL Workbench 8.0 CE
	struct path: 
	module path: C:\Program Files\MySQL\MySQL Workbench 8.0 CE/modules
	library path: C:\Program Files\MySQL\MySQL Workbench 8.0 CE
	user data dir: C:\Users\markc\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
14:52:22 [INF][      WBContext]: WbContext::init
14:52:23 [INF][            WBA]: Looking for extension modules for WBA...
14:52:23 [INF][            WBA]: 0 extension modules found
14:52:23 [WRN][            grt]: C:\Users\markc\AppData\Roaming\MySQL\Workbench\connections.xml:18: link '{7C9DAF11-5217-4596-B993-14539B7EDF4F}' <object GrtObject> key=owner could not be resolved
14:52:23 [INF][      WBContext]: System info:
 	MySQL Workbench Community (GPL) for Windows version 8.0.21 CE build 16448441 (64 bit)
	Configuration Directory: C:\Users\markc\AppData\Roaming\MySQL\Workbench
	Data Directory: C:\Program Files\MySQL\MySQL Workbench 8.0 CE
	Cairo Version: 1.10.2
	OS: Microsoft Windows 10 Home
	CPU: 4x Intel(R) Core(TM) i5-6400T CPU @ 2.20GHz, 11.9 GiB RAM
	Active video adapter Intel(R) HD Graphics 530
	Installed video RAM: 1024 MB
	Current video mode: 1920 x 1080 x 4294967296 colors
	Used bit depth: 32
	Driver version: 25.20.100.6446
	Installed display drivers: C:\WINDOWS\System32\DriverStore\FileRepository\ki131064.inf_amd64_5d13f27a9a9843fa\igdumdim64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\ki131064.inf_amd64_5d13f27a9a9843fa\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\ki131064.inf_amd64_5d13f27a9a9843fa\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\ki131064.inf_amd64_5d13f27a9a9843fa\igd12umd64.dll
	Current user language: English (United States)

14:52:23 [INF][      Workbench]: UI is up
14:52:24 [INF][      Workbench]: Running the application
[14 Aug 2020 13:53] Brent H
I had problems connecting local server 5.7, configuring server would hang.
Uninstalled server and manually removed folders: 
C:\Program Files\MySQL\MySQL Server X
C:\ProgramData\MySQL\MySQL Server X

Installed server 8.0.21
Click on 'Local instance MySQL', hangs.
Click Cancel, and the described error appears.

My fix: right-click on 'Local instance MySQL' and select "Start command link client"...it asks for pswd, enter pswd...ok.
Now each time I click on 'Local instance MySQL' the normal password popup appears and works as expected.
[17 Aug 2020 17:18] MARK COMPORT
I attempted the Fix as you suggested and it is still doing the same thing, even after I put in the password. Any other suggestions? It seems there are bugs in this workbench working with Win10.