Bug #46937 Right click on the last row (table column) in columns tab crashes the app
Submitted: 26 Aug 2009 12:08 Modified: 4 Sep 2009 13:35
Reporter: Marek Sabo Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.1.17 OS:Linux (UBUNTU 9.04)
Assigned to: CPU Architecture:Any
Tags: add, click, column, crash, right
Triage: Needs Triage: D2 (Serious)

[26 Aug 2009 12:08] Marek Sabo
Description:
When editing table columns, there is an empty row (representing column) at the end of list which can be turned into a new table column by editing it. When you right click at this empty row application crashes.

When run from terminal, the program aborts with following:

glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: Index out of range.

aborting...
Aborted

How to repeat:
Select any table, in the columns tab, right click the last row (empty one) and it will crash.

Suggested fix:
Check the array, it's index out of bounds exception/error.
[26 Aug 2009 13:01] Miguel Solorzano
Thank you for the bug report. Verified as described:

** (mysql-workbench-bin:15234): WARNING **: /tmp/sakila.mwbd1/document.mwb.xml:26: link '{591FC376-B82F-4F3D-B185-BA5C65B77080}' <object workbench.Workbench> key=owner could not be resolved
** Message: unhandled message 4: wb.file.openRecentModel finished in 0.58s

glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: Index out of range.

aborting...
Aborted
miguel@luz:~$
[26 Aug 2009 13:11] Marek Sabo
No problem ;)
[27 Aug 2009 13:15] Maksym Yehorov
fixed bug in editrors BE
[4 Sep 2009 13:35] Tony Bedford
An entry was added to the 5.1.18 changelog:

In the Columns tab of the Table Editor, when the empty row at the end of the column list was right clicked, MySQL Workbench crashed with the following error:

** (mysql-workbench-bin:15234): WARNING **: /tmp/sakila.mwbd1/document.mwb.xml:26: link
'{591FC376-B82F-4F3D-B185-BA5C65B77080}' <object workbench.Workbench> key=owner could not
be resolved
** Message: unhandled message 4: wb.file.openRecentModel finished in 0.58s

glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: Index out of range.

aborting...
Aborted