Bug #72251 Forward Engineer crashes MySQL Workbench after initial time
Submitted: 5 Apr 2014 21:30 Modified: 14 May 2014 1:26
Reporter: Stephen Budewig Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:6.1.4.11773 build 1454 Community OS:Windows (Vista)
Assigned to: CPU Architecture:Any
Tags: forward engineer

[5 Apr 2014 21:30] Stephen Budewig
Description:
Using 6.1.4 MySQL Workbench to connect to MySQL server 5.5.6-rc, I can create schema and table in model ( File >> New Model >> Add Table ).

CREATE TABLE IF NOT EXISTS `test_schema`.`test` (
  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(128) NOT NULL,
  PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;

Then File >> Save.  Then Database >> Forward Engineer [and complete wizard succesfully].  

How to repeat:
Then Database >> Forward Engineer [set parameter to connect to dbms] >> next >> [set options for database to be created] >> next >> [select objects to forward engineer] >> next >> crash!!  This happens every time after the first time.

Suggested fix:
A work-around that seems to not induce crash is to delete a table from the model and use reverse engineer to add it back to the model.  Then, forward engineer won't crash ( the first time ).
[7 Apr 2014 7:49] MySQL Verification Team
Hello Stephen,

Thank you for the bug report.
Verified as described.

Thanks,
Umesh
[23 Apr 2014 18:12] Diogo Domanski
This is also happening with Ubuntu 13.10 64 bits
[25 Apr 2014 1:00] Dimi T
Also happening on OS X 10.8.5
[26 Apr 2014 17:47] R Gagnon
Also fails on Windows 7.
[4 May 2014 6:59] Robinson Robinson
Affects me with Ubuntu 14.04 64 bits.
[9 May 2014 6:20] GUSTAVO RUBIO
I'm having this same issue, the only difference is that I'm running Linux (OpenSuSE 13.1 64bits)

Find attached the debug log. Thanks!
[9 May 2014 6:21] GUSTAVO RUBIO
mysql workbench crash log when doing forward engineer on 6.1.4-75.1 x86_64

Attachment: mysqlworkbench.log (text/x-log), 74.98 KiB.

[9 May 2014 6:24] GUSTAVO RUBIO
BTW, the way to reproduce is to try to generate inserts, so:

1. Open a simple model
2. Add a table
3. Add some data in the "inserts" tab of the table metadata
4. Try to forward engineer it checking the option "Generate INSERT statements for tables"

If I either uncheck the generate insert option or I don't have any data then the forward operation completes succesfully.

Thanks in advance!
[14 May 2014 1:26] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.1.6 release, and here's the changelog entry:

Executing the "Select Objects to Forward Engineer" step in the Forward
Engineering wizard would crash MySQL Workbench each time the wizard is
executed after the first time. In other words, the wizard would only
execute every step with success during its initial (first) execution.

Thank you for the bug report.