Bug #32968 Workbench crashes when opening a saved MWB file
Submitted: 4 Dec 2007 15:57 Modified: 5 Dec 2007 15:32
Reporter: Jakub Guttner Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.0.9, 5.0.10 OS:Windows (Windows XP Tablet PC Edition 2006, version 2002, SP2)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: crash, file, open

[4 Dec 2007 15:57] Jakub Guttner
Description:
I created a database model in the Workbench (which took a bit of time, needless to say). After saving the file several times throughout the day, Workbench crashed. 

Now I am not able to open the saved file with my data - when I do it through File-Open, Workbench crashes (MySQL Workbench has encountere a problem and needs to close...). When I launch Workbench by opening the file, it also crashes with MS Visual C++ Runtime Library "Runtime error - application has requested the Runtime to terminate it in an unusual way".

The saved MWB file, when renamed to ZIP, can be opened. The XML file within seems complete (the top-level element is properly closed in the end).

"Have you tried turning it off and on again?" Restarting the Workbench or the whole computer does not seem to help :o(

How to repeat:
By trying to open the file that seems to cause the crash.

Suggested fix:
Hopefully, this problem is just mine - could the file be read on another computer? In the worse case scenario, this is probably a bug in reading saved MWB file data that will require looking into Workbench internals.
[4 Dec 2007 16:00] Jakub Guttner
Marked as S1 severity, since from the point of view of a Workbench user, I cannot continue my work and I lost all the data created in the Workbench although I saved them. Scary for any Workbench user, I would say...
[4 Dec 2007 16:31] Jakub Guttner
Just reinstalled to Workbench 5.0.10, the problem stays the same.
[4 Dec 2007 17:05] Valeriy Kravchuk
Thank you for a problem report. Please, upload your file to:

ftp://ftp.mysql.com/pub/mysql/upload/

with bug32968 in the file name. Then send a comment with exact file name and size here.
[5 Dec 2007 15:25] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[5 Dec 2007 15:32] Jakub Guttner
Pretty pretty please - I am no development guru and compiling from the source sounds way over my head, not even talking about not having MS Visual Studio available. Since the bugfix is in place now, could you please send me a version of my data model that does not crash my Workbench? Or at least a PDF or a screenshot of my model? That way, I could at least recreate it or get at least the basic model... would that be possible?
[5 Dec 2007 16:23] Alfredo Kojima
I've emailed you the fixed model. In addition, the bugfix will automatically
fix these corrupted models when loading.
[20 Dec 2007 5:08] Sean Wang
I'm using 5.0.10 OSS Beta and encountered similar problem. The application crashed  when I tried to delete a EER diagram. After restarting the program, the previously saved file cannot be opened anymore, and it kept crashing and showing Microsoft bug report dialog every time I open this file. This .mwb file can still be extracted by  a zip program and the XML file inside is also readable by a XML parser....can anyone PLEASE help me restore my saved-file back....?