Bug #53019 Loading models fails when done via menu or toolbar (same for MRU items)
Submitted: 21 Apr 2010 8:55 Modified: 30 Apr 2010 12:04
Reporter: Mike Lischke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S1 (Critical)
Version: OS:Windows
Assigned to: Alfredo Kojima CPU Architecture:Any

[21 Apr 2010 8:55] Mike Lischke
Description:
When opening a model file from a menu or the toolbar an exception is raised. The reason is that a progress indicator (the wait popup) is created, which has to happen in the main thread. However loading model files from menu uses the worker thread, which is not compatible. Loading a model from the home screen however works, as this approach doesn't use a background thread.

How to repeat:
Start WB and load a model using the File menu.

Suggested fix:
Doing the load operation as a plugin is the root cause, as plugin loading is done via the worker thread. However, this and other operations (like clipboard handling) are intrinsic part of the application and not plugins (a plugin is usually defined as something that can be plugged-in or taken out, but the mentioned things are not pluggable, they have to be there or the application is useless). Hence I recommend moving the load operation entirely out of the plugin chain and handle it just like it is in the home screen handler code.
[30 Apr 2010 12:04] Alfredo Kojima
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at

  http://www.mysql.com/downloads/