Bug #45042 MySQL Workbench crash when delete a entity.
Submitted: 22 May 2009 19:53 Modified: 9 Jun 2009 14:34
Reporter: Tercio F. Gaudencio Filho Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.1.12 - 4000 OS:MacOS
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: CHECKED, Crash delete

[22 May 2009 19:53] Tercio F. Gaudencio Filho
Description:
In the attached model, when you try to delete the entity "ContainerFieldType" it just crash.

How to repeat:
Open the attached model, select ContainerFieldType entity and press "Command+Delete".
[23 May 2009 8:13] Valeriy Kravchuk
I can not repeat this.
[23 May 2009 11:48] Tercio F. Gaudencio Filho
This is the crash report.

Attachment: WorkbenchCrash.txt (text/plain), 30.08 KiB.

[23 May 2009 11:49] Tercio F. Gaudencio Filho
I could reproduce the error again, but in another entity. I attached the crash report, it may help.
[23 May 2009 11:53] Tercio F. Gaudencio Filho
My console messages.

Attachment: CrashWorkbench-Console.txt (text/plain), 7.38 KiB.

[23 May 2009 11:59] Tercio F. Gaudencio Filho
I could understand a bit when the problem happens.

I use the mouse to select the entity, if I leave the mouse inside the selected entity, and press Command+Delete before the Tooltip appears, and confirm the delete, it crashs. If the tooltip appears, no crash.

So to reproduce:

1 - Use the mouse to select an entity(Any)
2 - When selecting leave the mouse pointer inside the entity, for example into a field.
3 - Press Command+Delete BEFORE Tooltip appears.
4 - Confirm the deletion.
5 - It will crash.
[26 May 2009 9:20] Geert Vanderkelen
Verified using the steps given on Mac OS 10.5.7 using Workbench 5.1.12 (4000).
Extra step maybe:
0 - Create a new diagram and put a table and make a few fields in it.

(Amazing find IMHO!)
[26 May 2009 9:26] Geert Vanderkelen
Also verified using Workbench 5.2.1 (5955).

No need for fields in the table. Just double click a table, select the table (becomes yellow), leave the mouse in the table entity and do Cmd+Backspace before the pop-up comes.
[28 May 2009 15:46] Alfredo Kojima
Thank you for the detailed instructions for repeating the bug.
[1 Jun 2009 1:32] Greg Wright
Having a similar problem. It appears for me when I delete multiple entities with foreign key relationships, and especially when an object is a parent of other FK relationships. I will attach my model and when deleting the Season entity, it crashes.
[3 Jun 2009 21:44] Johannes Taxacher
this is fixed. fix will be included in 5.1.13.
[9 Jun 2009 14:34] Tony Bedford
An entry was added to the 5.1.13 changelog:

On Mac OS X, if the mouse pointer was used to select an entity and then Command+Delete was pressed before the tooltip appeared, then MySQL Workbench crashed when the delete was confirmed.