Bug #112932 Crash When Cancelling CSV Import
Submitted: 1 Nov 2023 20:43 Modified: 2 Nov 2023 11:56
Reporter: Alex Catt Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0 OS:Windows (11 Home 10.0 Build 22621)
Assigned to: CPU Architecture:x86

[1 Nov 2023 20:43] Alex Catt
Description:
When I start to import data from a CSV file into a table using the Import Wizard that violates one of the tables constraints, then try to cancel the import, the MySQL Workbench displays the error message "Cannot access a disposed object. Object name: _ProgressBar". When I close the error message, the Workbench is unresponsive and then crashes.

A video of me triggering the error is available at the link below.
https://drive.google.com/file/d/1Xy--R6wjwLnT9FRItApooFhU7pZhwvwa/view?usp=sharing

How to repeat:
Try to import a CSV file into a table with the Import Wizard that violates one of the tables constraints. When you start getting errors from the constraint being violated, click the cancel button. A popup will appear asking if you want to cancel, click yes. The same popup will appear for a second time, click yes again. Then the error message "Cannot access a disposed object. Object name: _ProgressBar" will appear in a popup, click the close button on that popup. The Workbench will be unresponsive to mouse clicks and will crash within a few seconds.

The bug partially appears on files that do not violate the table's constraints-- the error message about the progress bar will appear but the Workbench does not crash afterwards.
[2 Nov 2023 11:56] MySQL Verification Team
Hello Alex,

Thank you for the bug report.
Imho this is duplicate of Bug #83447, please see Bug #83447.

Regards,
Ashwini Patil