Bug #43455 table layout messed on loading diagram file
Submitted: 6 Mar 2009 13:39 Modified: 26 Oct 2009 14:01
Reporter: Krzysztof Kubanek Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.1, 5.2 OS:Linux (Ubuntu, Fedora)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: diagram, layout, open, regression, table, TTREV

[6 Mar 2009 13:39] Krzysztof Kubanek
Description:
On opening a diagram file tables layout is broken - all tables are placed on top-left corner.

It seems that application (at least its Windows version 5.0.30) stores diagram layout in file correctly but it's not retrieved on file load.

It's similar to http://bugs.mysql.com/bug.php?id=42329 but I've decided to file a new one since it's on different Platform.

How to repeat:
1. Save diagram with at least one table placed somewhere in the middle of the page.

2. Open diagram - table is placed on the top-left corner.
[11 Mar 2009 12:48] Susanne Ebrecht
Verified as described on Ubuntu 8.10 64 bit.

Test:
Open Workbench
create a small diagram with two or three tables and two or three conditions
save it
close Workbench
Optional shutdown your computer, go sleeping
open workbench
open recent file your diagram
[11 Mar 2009 12:49] Susanne Ebrecht
just my test diagram

Attachment: mytest.mwb (application/octet-stream, text), 6.33 KiB.

[13 Mar 2009 16:48] Cristhian Parra
I have the same problem running on a GNU/Linux Fedora 10
Kernel 2.6.27.19-170.2.35, using MySQL Workbench 5.1.7 

Anytime a diagram is opened, the layout it's changed and all the relations are plaece at the upper left corner of the panel.
[16 Mar 2009 12:14] Susanne Ebrecht
Bug #43639 is set as duplicate of this bug here
[26 Mar 2009 9:50] daniele carbone
workaround :
export and import
[26 Mar 2009 23:50] Alfredo Kojima
Hi

There is a workaround for this bug which is to set the LC_NUMERIC environment variable to C.
However if you saved the model file after loading into a broken state, the model layout will likely be 
really lost. If you didn't save after noticing the broken layout, your model layout will be intact.
[27 Mar 2009 0:27] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[30 Mar 2009 16:26] Johannes Taxacher
fix confirmed in bzr rev 3871.
fix will be include in 5.1.10 beta
[6 Apr 2009 14:38] Tony Bedford
Added an entry to the 5.1.10 changelog: 

On opening a diagram the file tables layout was broken. All tables were placed in the top left corner.

It appeared that Workbench stored the diagram layout in the MWB file correctly but it was not retrieved correctly on file load.
[26 May 2009 8:46] Susanne Ebrecht
Bug #45089 is set as duplicate of this bug here.
[19 Oct 2009 11:52] Susanne Ebrecht
Bug #42329 is marked as duplicate of this bug here.
[19 Oct 2009 13:07] Susanne Ebrecht
It looks like we have a regression here. After syncen or loading a database all is placed in left top corner.
[19 Oct 2009 13:08] Susanne Ebrecht
Triage:

I think this is a serious problem. It will cost customers and users immense money to
re-order all the tables manually.

We should fix this before WB52 GA.

Let WB52 and set P2 and IO=100 because we have enormous user complains here.
[19 Oct 2009 13:09] Susanne Ebrecht
bug #42600 is set as duplicate of this bug here.
[19 Oct 2009 13:11] Susanne Ebrecht
Bug #40864 is set as duplicate of this bug here.
[26 Oct 2009 14:01] Susanne Ebrecht
Thank you for your bug report. This issue has been already fixed in our source repository of Workbench 5.2 and will be incorporated into the next release.

All works fine with Workbench 5.2.6.