Bug #33183 Database Synchronize crashes workbench when server shuts down
Submitted: 12 Dec 2007 19:47 Modified: 19 Feb 2008 12:35
Reporter: Nathan Rowden Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.0.10 SE Beta OS:Windows (XP SP2)
Assigned to: Vladimir Kolesnikov CPU Architecture:Any
Tags: synchronize crash shutdown

[12 Dec 2007 19:47] Nathan Rowden
Description:
If the mysql server is shutdown while on the SQL Diff Tree screen of the synchronization wizard the workbench will crash.

How to repeat:
1) Start workbench (the default mydb is fine)
2) Select Database->Synchronize
3) Enter database connection information
4) Click next, next, next
5) Shutdown the mysql server you're connected to
6) Click next (at this point it should crash)

Suggested fix:
I think Workbench should prompt the user to save their work before the synchronization wizard starts... and not crash if the server goes offline.  :)
[12 Dec 2007 19:52] Nathan Rowden
Sorry the steps to repeat should be:

1) Start workbench (the default mydb is fine)
2) Select Database->Synchronize
3) Enter database connection information
4) Click next, next, next
5) Shutdown the mysql server you're connected to
6) Click next
7) Click next on the SQL Sync Script dialog (at this point it should crash)
[11 Jan 2008 10:41] Johannes Taxacher
there's still the possibility to crash the wizard (same applies to rev./Fwd. eng) by trying to connect to a not existing DB/server or cutting off the connection after the 2nd wizard page.
[29 Jan 2008 20:17] Johannes Taxacher
works as expected now. issue fixed in 5.0.12 beta SVN Rev 2468

theres just a cosmetic correction that should be done: it would be more obvious to the user when we disable the next-button on errors (in the sync and fwd.eng. dlg you can click right through to the last page, even if it fails and doing nothing meaningful after that)