Bug #43850 Closing an opened file and creating a new one immediately can crash
Submitted: 25 Mar 2009 3:11 Modified: 7 Apr 2009 13:57
Reporter: Yen-Wei Liu Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.1.9 OSS Beta OS:Windows (XP Chinese edition)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: CHECKED

[25 Mar 2009 3:11] Yen-Wei Liu
Description:
As title. I opened a file , closed all tabs, then created a new file, then MySQL Workbench crashed.

How to repeat:
1. Start MySQL Workbench empty (without loading previous file?)

2. Open an existing file.

3. Press Ctrl-W several times to close windows until everything is close.

4. Select File-> New

5. MySQL Workbench crashed. Windows says it's in GRT.DLL. MySQL Workbench reports 

"Unknown exception caught in c:\users\tax\documents\visual studio 2008\projects\wb 5.1\workbench\backend\windows\wbprivate.wr\src\Wb.h at line 994."

This probably happens in this sequence. I have tried several combinations  and this is probably the only one triggering this crash.
[25 Mar 2009 3:12] Yen-Wei Liu
The minimal file triggers the crash. Not all files do.

Attachment: ruumail.mwb (application/octet-stream, text), 21.17 KiB.

[25 Mar 2009 3:15] Yen-Wei Liu
As in step 3, I press 3 times with my sample file to close all tabs.
[25 Mar 2009 7:16] Valeriy Kravchuk
Thank you for the bug report. Verified just as described using your file uploaded.
[1 Apr 2009 20:41] Alfredo Kojima
same bug as creating 2 tabs quickly and hitting new document quickly.
[6 Apr 2009 16:45] Johannes Taxacher
this is fixed. fix will be in 5.1.10 beta
[7 Apr 2009 13:57] Tony Bedford
An entry was added to the 5.1.10 changelog:

If a MySQL Workbench project file was opened, all tabs closed, and then File, New selected, MySQL Workbench crashed with the following error message:

Unknown exception caught in c:\users\tax\documents\visual studio 2008\projects\wb
5.1\workbench\backend\windows\wbprivate.wr\src\Wb.h at line 994.