Bug #48664 crash on closing orphaned editor
Submitted: 10 Nov 2009 11:21 Modified: 25 Nov 2009 14:22
Reporter: Johannes Taxacher Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.7 OS:Windows
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: regression

[10 Nov 2009 11:21] Johannes Taxacher
Description:
if you delete (or undo creation of) a model-object (schema, table, etc.) while its editor is open, the editor causes a crash when its closed after its object has already been removed

How to repeat:
- open or create a document
- add a table (table-editor opens)
- invoke undo (table-object is removed, but editor stays open)
- close editor (crash)

instead of undo you can also delete the object from model-page while having its editor still open.

Suggested fix:
when objects are removed, close any open editors
[23 Nov 2009 19:50] Alfredo Kojima
I can't repeat this in latest code. Neither by Undo nor by deleting the object.
[24 Nov 2009 14:26] Johannes Taxacher
not able to repeat with 5.2.8 anymore. fixed in 5.2.8
[25 Nov 2009 14:22] Tony Bedford
An entry was added to the 5.2.8 changelog:

If an model object, such as a schema or table, was deleted or its creation was undone using the undo feature, while the object editor was open, then a crash occurred if the editor was then subsequently closed.