Bug #60623 Model file corruption reported on load of model
Submitted: 24 Mar 2011 15:49 Modified: 24 Mar 2011 16:26
Reporter: Tim Annis Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.32 OS:Windows
Assigned to: CPU Architecture:Any
Tags: corruption, modeling

[24 Mar 2011 15:49] Tim Annis
Description:
I have been working on a new model, and saving frequently. Although no errors are being reported during the model save, I often find that I can't open the file I have saved. I get the error message:

Cannot open document
'C:\...'
Error unserializing GRT data
Type mismatch: expected object of type
db.mysql.Column, but got db.mysql.ForeignKey

Sometimes, instead of ForeignKey, it says db.mysql.Index, however, the error is always consistent for a specific version of the file (ie attempting to reload a corrupted file will always give the same error).

I am running a program (History Explorer) that saves copies of all versions of a file, so I can see that once a corrupted file is saved, all subsequent saves are also corrupt. I even tried saving, then saving again under a different file name, but once one file is saved in a corrupted form, the "save as" files are consistently also corrupted.

How to repeat:
Just save the model, make a small change, save again. It has never taken more than three or four saves to trigger the corruption. Note that there is no indication that the saved file has been corrupted until you attempt to load it again.
[24 Mar 2011 16:26] Alfredo Kojima
Please upgrade to 5.2.33b. This is a duplicate of bug #60369