Bug #106573 Workbench crashes when tabs are closed before completing other tabs
Submitted: 25 Feb 2022 11:43 Modified: 25 Feb 2022 12:07
Reporter: Miguel Gibson Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:8.0.28 OS:Windows (Windows 11)
Assigned to: CPU Architecture:Any

[25 Feb 2022 11:43] Miguel Gibson
Description:
When opening a second tab and closing a previous tab before the second tab completes, it breaks work bench.

How to repeat:
1. When clicking "Select Rows - Limit ..." and it opens the tab. Opens the tab correctly.
2. Click another "Select Rows - Limit ..." and it opens a second tab.
3. (WHILE it is loading the second tab) Close the first tab.
4. Workbench opens up a message saying 
"
MYSQL Workbench has encountered a problem

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name:index
"
5. The loading icon on the tan is still saying loading and I can't close it and I have to completely close workbench to fix it and then it continues to be an issue for every select rows I do.

Suggested fix:
This is a simple array index issue. I am guessing it is trying to update the loading indicator on the tab and of course the index of the second tab is not there anymore, so it is throwing out of bounds.
Just make sure that either you can't close the tabs while it is loading. Or update the index accordingly when the tabs are closed.
[25 Feb 2022 12:07] MySQL Verification Team
Hello Miguel Gibson,

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

Regards,
Ashwini Patil