Bug #61418 mysql-workbench crashes on closing EER Diagram tab
Submitted: 6 Jun 2011 7:36 Modified: 27 Dec 2011 12:44
Reporter: Andrey Pohilko Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.34, 5.2.35 OS:Linux (KUbuntu 11.04)
Assigned to: CPU Architecture:Any
Tags: segmentation fault

[6 Jun 2011 7:36] Andrey Pohilko
Description:
Mysql-workbench just crashes after I made some changes to EER diagram and called unsuccessful forward-engineer
The app prints a lot of stacktraces on crash to stdout.

How to repeat:
Scenario:
1. I start the app
2. I double-click my EER Model under "Open Existing model" at home tab, it opens Model tab and EER Diagram tab
3. I edit the diagram, couldn't localize which exact action causes the issue. Something with editing table columns... But the issue will be unleashed later.
4. I press Ctrl+G to forward-engineer. Clicking next-next and see the empty generated "Review SQL Script". This means the issue is here.
5. I try to close EER diagram tab to "refresh his brans", but it crashes instead.
[6 Jun 2011 7:38] Andrey Pohilko
console out for app crash

Attachment: mysql-wb-crash.txt (text/plain), 53.73 KiB.

[6 Jun 2011 7:39] Andrey Pohilko
I first met the issue on 5.2.33, upgraded today to 5.2.34, but the issue persists.
[6 Jun 2011 12:08] MySQL Verification Team
I couldn't repeat on Ubuntu 11.04 (VisrtualBox).
[6 Jun 2011 13:40] Andrey Pohilko
I also cannot repeat it easily, there's some key action or series of actions that must be made to reproduce it. I will try to locate it and report.

Any guestures on stack traces?
[6 Jun 2011 14:11] Andrey Pohilko
Ok, I found shorter sequence:
3a) I double-click any table, add any column, press Ctrl+S, Ctrl+G and go with forward-engineer successfully.
3b) I repeat step 3a with other table and issue reproduces
[6 Jun 2011 19:32] Rafael Antonio Bedoy Torres
Hello Andrey,

I just can't reproduce your bug, is it happening with all the Models you work on? or is it an specific model?, will be great if you can share with us the EER model (as a private comment).

thanks in advance.
[13 Jun 2011 8:34] Andrey Pohilko
Yes, it reproduces with any model.
I just created a model with 2 tables, added 1 col to each, forward-engineer ok.
Then I added one more col to each and repeated forward-engineer - fail.
I'll attach that model.
[13 Jun 2011 8:35] Andrey Pohilko
Simple model that reproduces

Attachment: eer.mwb (application/octet-stream, text), 5.06 KiB.

[16 Jun 2011 1:11] MySQL Verification Team
I still can't repeat with your model file and new instructions.
[16 Jun 2011 7:51] Andrey Pohilko
Any other ways to trace the error? Debug version, maybe?
[20 Jun 2011 16:00] Johannes Taxacher
Hi Andrey,
can you add the output of your WBs help->system info menu.
in addition to that please check whether the problem appears the same when using the feature file->export->forward engineer SQL CREATE script
[20 Jun 2011 16:56] Andrey Pohilko
System info:
MySQL Workbench CE for Linux/Unix version 5.2.34
Configuration Directory: /home/undera/.mysql/workbench
Data Directory: /usr/share/mysql-workbench
Cairo Version: 1.10.2
Rendering Mode: OpenGL is not available on this system, so Native is used for rendering.
OS: Linux 2.6.38-8-generic
CPU: 2x Intel(R) Core(TM)2 Duo CPU     P9600  @ 2.53GHz 2535.000 MHz, 3,4 GB RAM
[20 Jun 2011 17:00] Andrey Pohilko
I tested with "file - export", the issue is not appeared. I pressed Ctrl+G immediately after successful tests with export - the issue is there.
[6 Jul 2011 16:20] MySQL Verification Team
Tried now on Fedora and Windows Vista and still not repeatable.
[7 Jul 2011 7:17] Andrey Pohilko
Also I noticed that before I see empty script field, after pressing Ctrl+S the '*' sign near file name in title bar doesn't disappear.
[24 Sep 2011 8:34] Valeriy Kravchuk
Please, check if the same problem still happens with a newer version, 5.2.35.
[24 Sep 2011 15:38] Andrey Pohilko
I tried new version, I still see empty Forward Engineer SQL code, but now application do not crash if I close EER tab.
[18 Nov 2011 17:28] Martin Salinas
Same problem here, but sometimes it crashes when closing EER tab, some other times while still working on that tab, apparently not on a same operation (as i recall, once while adding a table, another time when editing a foreign key, and i cant remember others)
[27 Dec 2011 12:44] Andrey Pohilko
Seems 5.2.36 fixed the issue