Bug #100406 Cannot access a disposed object - 'HudForm'
Submitted: 1 Aug 2020 12:14 Modified: 2 Aug 2020 9:27
Reporter: David Forster Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:8.0.21, 8.0.22, 8.0.23 OS:Microsoft Windows
Assigned to: CPU Architecture:x86

[1 Aug 2020 12:14] David Forster
Description:
When attempting to connect to a database requiring SSL, but SSL set to 'No' in WorkBench, I pressed cancel on the "Opening SQL Editor" and it presented me with the error:

"Cannot access a disposed object
Object name: 'HUDForm'."

How to repeat:
Target DB user set to require SSL.
In WorkBench, set SSL to 'No'.
Attempt to connect to the Database.
Then press 'Cancel'.

Error appears.
[2 Aug 2020 9:27] MySQL Verification Team
Hello David Forster,

Thank you for the report and feedback.
Observed this with WB 8.0.21 on Win10.

regards,
Umesh
[2 Aug 2020 9:33] MySQL Verification Team
Bug #100405 marked as duplicate of this one
[3 Aug 2020 10:48] MySQL Verification Team
Bug #100412 marked as duplicate of this one
[8 Aug 2020 12:54] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100466 marked as duplicate of this one.
[10 Aug 2020 10:23] Sravan Kumar Yelakanti
MySQL Team any update on this fix even iam facing the same issue
[15 Aug 2020 23:19] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100539 marked as duplicate of this one.
[19 Aug 2020 5:32] Jenny Chua
Hi, is there a solution to this problem? I have encountered the same problem.
[24 Aug 2020 19:36] Rodrigo B├ęguelin
same to me
[25 Aug 2020 11:26] Tom Leaver
Working through the SQL for Beginners: Learn SQL using MySQL and Database Design course.

Unable to load the root to access the Users and Privileges. Error: Cannot access a disposed object. Object name: 'HUDForm'.
[25 Aug 2020 14:44] Jenny Chua
Hi all, 

I managed to open MYSQL workbench after downloading the older version 
8.0.20 instead of 8.0.21. 

Comment from my school IT staff:

You can try installing an older workbench. It's a bug in SQL workbench for Windows 10.
[29 Aug 2020 6:20] MySQL Verification Team
Bug #100684 marked as duplicate of this one
[30 Aug 2020 20:50] nandini rawat
i have experienced the same problem.
[31 Aug 2020 8:17] MySQL Verification Team
Bug #100693 marked as duplicate of this one
[1 Sep 2020 12:04] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100706 marked as duplicate of this one.
[3 Sep 2020 12:27] Martin van Ling
After installation of 8.0.21: tying to connect to localhost takes a VERY long time, pressing Cancel returns this error. Is there a solution to this??
[6 Sep 2020 15:43] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100753 marked as duplicate of this one.
[6 Sep 2020 15:43] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100753 marked as duplicate of this one.
[15 Sep 2020 5:59] MySQL Verification Team
Bug #100848 marked as duplicate of this one
[17 Sep 2020 9:56] Gabriele Martini
Observed with MySQL Workbench 8.0.21, on Windows 10 .
[17 Sep 2020 10:33] Gabriele Martini
In my case, error appears when the connection is configured as: 

    USE SSL: "If available"

Setting this configuration as:

    USE SSL: "No"

Error does not appears.
[17 Sep 2020 22:51] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100884 marked as duplicate of this one.
[24 Sep 2020 12:09] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=100942 marked as duplicate of this one.
[1 Oct 2020 16:50] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101030 marked as duplicate of this one.
[6 Oct 2020 12:52] MySQL Verification Team
Bug #101067 marked as duplicate of this one
[7 Oct 2020 18:19] David Whitinger
Yes, a problem. New to Oracle/Mysql.  How in the world do you contact anyone? I know my software has been free but!!  Does anyone post a running update on what is happening in terms of a solution?  Do I delete Mysql, find an older version? Error page shows outstanding for 66 days.
[8 Oct 2020 19:51] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101094 marked as duplicate of this one.
[10 Oct 2020 12:28] MySQL Verification Team
Bug #101116 marked as duplicate of this one
[11 Oct 2020 15:29] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101121 marked as duplicate of this one.
[17 Oct 2020 5:19] MySQL Verification Team
Bug #101214 marked as duplicate of this one
[18 Oct 2020 11:23] MySQL Verification Team
Bug #101223 marked as duplicate of this one
[19 Oct 2020 17:52] Ian Brumley
Same here. Why is this happening?
[21 Oct 2020 8:24] MySQL Verification Team
Bug #101261 marked as duplicate of this one
[4 Nov 2020 5:39] MySQL Verification Team
Bug #101449 marked as duplicate of this one
[4 Nov 2020 13:25] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101458 marked as duplicate of this one.
[6 Nov 2020 8:10] Jan Oonk
Experienced the same error. The workaround is to install an slightly older version. I used v8.0.19 instead of v8.0.22. Maybe even .21 works for you... didn't try.
You can find older versions at https://downloads.mysql.com/archives/workbench/
[10 Nov 2020 13:36] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101543 marked as duplicate of this one.
[18 Nov 2020 5:49] MySQL Verification Team
Bug #101655 marked as duplicate of this one
[18 Nov 2020 19:37] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101666 marked as duplicate of this one.
[24 Nov 2020 23:18] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=101738 marked as duplicate of this one.
[25 Nov 2020 12:55] MySQL Verification Team
Bug #101753 marked as duplicate of this one
[27 Nov 2020 12:25] MySQL Verification Team
Bug #101774 marked as duplicate of this one
[3 Dec 2020 5:07] MySQL Verification Team
Bug #101844 marked as duplicate of this one
[3 Dec 2020 10:24] Jonathan Tan
I created another connection and called it "Local instance 3305" and it worked to open the Workbench.
[3 Dec 2020 10:24] Jonathan Tan
I created another connection and called it "Local instance 3305" and it worked to open the Workbench.
[9 Dec 2020 13:09] David Ryves
Had the same problem. Did the same as above (created new connection called Local instance 3055) on MySQL Workbench 8.0.22 and it worked.
[25 Dec 2020 13:12] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102074 marked as duplicate of this one.
[5 Jan 9:59] MySQL Verification Team
Bug #102148 marked as duplicate of this one.
[5 Jan 12:42] MySQL Verification Team
Bug #102146 marked as duplicate of this one.
[22 Jan 8:14] m g-d
Started getting this regularly. Reinstalled Community v8.0.22 and it went away initially but once I duplicated a working connection it started again - I had only executed a single script (to create a default 4 table db!)
Now will have to do it all again :(
Is there NO fix/workaround/update?
[22 Jan 9:04] m g-d
HUD Form Bug

Attachment: HUDFormBug.png (image/png, text), 94.05 KiB.

[22 Jan 9:04] m g-d
Hmmm! Following my previous comment, turns out there is a NEW update - you need to do a catalogue update and suddently v8.0.23 arrives...

To do this run the mysql_community installer.msi again and tap the Catalog(ue) button...

So tried this and nope, bug still there :(
Will reinstall completely (remove all mySQL traces before doing so) and try again
[24 Jan 17:36] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102361 marked as duplicate of this one.
[2 Feb 17:12] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102453 marked as duplicate of this one.
[5 Feb 21:32] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102499 marked as duplicate of this one.
[10 Feb 5:55] MySQL Verification Team
Bug #102547 marked as duplicate of this one
[10 Feb 6:28] MySQL Verification Team
Bug #102546 marked as duplicate of this one
[24 Feb 23:01] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102726 marked as duplicate of this one.
[26 Feb 3:21] Rajyalaxmi Bukkapatnam
Bug #100406--- seeing the same issue
[2 Mar 11:11] MySQL Verification Team
Bug #102780 marked as duplicate of this one
[3 Mar 14:58] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102803 marked as duplicate of this one.
[5 Mar 20:29] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=102837 marked as duplicate of this one.
[9 Mar 10:42] MySQL Verification Team
Bug #102879 marked as duplicate of this one
[14 Mar 14:09] abhi pandey
When opening workbench and connecting to a local instance.Its showing 

"Cannot access a disposed object
Object name: 'HUDForm'."

and another popup showing MySQL workbench has stopped working
[16 Mar 14:23] Christina Tedesco
same thing happens to me - is there a resolution for this?
[24 Mar 13:21] MySQL Verification Team
Bug #103094 marked as duplicate of this one.
[26 Mar 6:55] Rahul B
The bug screen shot

Attachment: Screenshot 2021-03-26 122425.png (image/png, text), 90.81 KiB.

[26 Mar 6:55] Rahul B
Same bug i'm facing, don't know how to resolve it.
[30 Mar 12:55] MySQL Verification Team
Bug #103151 marked as duplicate of this one.
[2 Apr 2:33] Micheal Kloppel
Here is something I found. 

I was testing my connection and stored a user/pass other than root/(Main password).

I clicked on "edit connection" for the basic installation and changed the information in there back to root/(Main password). I specifically used the "clear" button. 

Before doing this the program bugged out every time and would tell me to hang on while the connection was made then give me the HUDform error> Close Workbench.

I can now access the program with no problems. Ill update if it occurs again.
[3 Apr 10:17] m g-d
I have had this sporadically with 8.0.22 and 8.0.23 but I found ONE way to "fix" it. 
It happens periodically (perhaps the db is in a weird state) BUT the issue is the connection - NOT the data or dbServer. 
I found that clearing & resetting the password for the affected user on that database (and schema?) within the connection did help and the HUDForm went away. 
Maybe the connection is left in an indetermine state when a failure of some db operation or commit fails and this causes the connection be blocked in one "view" but active in another? No idea. 
HTH
Mark
[13 Apr 22:43] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=103313 marked as duplicate of this one.
[15 Apr 9:56] Paul Mazairac
Stopping the MySQL80 service (in Windows services) , opening the connection and then restarting the service fixed the problem for me. Curious if it is fixed permanently, though. Will find out next time I open the workbench, I guess.
[15 Apr 9:56] Paul Mazairac
Stopping the MySQL80 service (in Windows services) , opening the connection and then restarting the service fixed the problem for me. Curious if it is fixed permanently, though. Will find out next time I open the workbench, I guess.
[17 Apr 9:23] MySQL Verification Team
Bug #103352 marked as duplicate of this one
[28 Apr 12:34] MySQL Verification Team
Bug #103509 marked as duplicate of this one
[30 Apr 5:49] Fong Ming
Hi there

I am currently facing this issue after I tried to reset my root password and restarted the computer

Anyway to solve this issue
[3 May 0:21] Peter Fales
This happened to me after I changed my password on the server to a mysql_native_password.   (I don't know if it's simply that I changed it, or that I changed to mysql_native_password).  But I was able to fix it by clearing the password associated with the stored connection (and then storing it again)
[3 May 0:22] Peter Fales
This happened to me after I changed my password on the server to a mysql_native_password.   (I don't know if it's simply that I changed it, or that I changed to mysql_native_password).  But I was able to fix it by clearing the password associated with the stored connection (and then storing it again)
[10 May 22:29] Anita Merrell
@Peter_Fales, I also had the same issue and did as you suggested and it worked. Thank You.
[27 Jul 22:21] Douglas Richards
In my case this happens 100% of the time when I do the following.
----------------------------------------------------------------------
Version: 8.0.22
Process Name:	MySQLWorkbench.exe : C:\Program Files\MySQL\MySQL Workbench 8.0 CE\MySQLWorkbench.exe
Process Architecture:	x64
Exception Code:	0xE0434352
An unhandled exception of type 'System.ObjectDisposedException' occurred in System.Windows.Forms.dll
Cannot access a disposed object.
OS Version:	10.0.18363
CLR Version(s):	4.8.4300.0
Python Version: 3.8.5
-----------------------------------------------------------------------
I have around 30 connections saved in Workbench and my company makes us change the MySQL password frequently. Whenever I have to change my password, the next time I go into Workbench it will crash if I double click on one of my saved connections. It doesn't really crash until I click cancel due to it hanging indefinitely. A peek into the logs shows it is getting access denied from the server (probably because I saved my password in the connection).

wb.log : 14:14:51 [ERR][  GRTDispatcher]: exception in grt execute_task, continuing: Exception: Access denied for user 'xxxxx'@'10.x.x.x' (using password: YES)
14:14:51 [ERR][  GRTDispatcher]: worker: task 'execute sql queries' has failed with error:.Access denied for user 'xxxxx'@'10.x.x.x' (using password: YES)
This is repeated until I click cancel button.

To resolve this, instead of clicking on the connection, I right click 'Edit Connection', click Test Connection, then it prompts me for a password. 
Once I use the new password, and click Save Password, the connection succeeds and from then on everytime I open that saved connection, it doesn't hang, until the next password change. 
All these servers with the same credentials is a pain to maintain, but if I remember to Test Connection before trying to connect, I never see this crash as a result of the hang.