Bug #46562 Unknown exception caught after placing relationship between two tables
Submitted: 5 Aug 2009 10:16 Modified: 10 Aug 2009 10:56
Reporter: Novi Ivan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.1.16 OS:Windows (Revision 4210)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: columns, diagram, place, relationship

[5 Aug 2009 10:16] Novi Ivan
Description:
Full text of the untitled message box:
"Unknown Exception caught in: c:\documents and settings\mysqldev\my documents\visual studio 2008\projects\workbench\backend\windows\wbprivate.wr\src\Wb.h at line 1026"

I have 43 tables in Schema and also in the EER diagram plot. Every table consists of 4-5 columns in average. All tables have names in cyrillic and with spaces. Same thing with columns names. Only alphanumeric and whitespace chars used.

How to repeat:
In the diagram view I choose instrument "Place a Relationship Using Existing Columns (6)".
Then I pick a column from the first table.
Then I click a button "Pick referenced columns" and point to the second column to make a relationship. This relationship appears on the display and the error message pops up.
Fortunately, pressing "OK" doesn't terminate the application and I'm able to save my work. Though, this error happens every time I create relationships using this instrument.

Suggested fix:
bug revealed probably due to use of whitespaces in table and columns name, though actually this is more likely recommendation rather than a strict limitation.
[5 Aug 2009 10:51] Valeriy Kravchuk
Thank you for the problem report. I can't repeat this with my tables having space in names and columns with space in names. Please, send .mwb file that demonstrates the behavior described and detailed instructions what columns to pick.
[5 Aug 2009 11:32] Valeriy Kravchuk
Verified with your .mwb file just as described in your last private comment, on 64bit XP. Maybe this is related to long column names (that may produce even longer default foreign key names)...

On my system I've got this exception many times and was forced to kill WB eventually from the task manager.
[5 Aug 2009 16:58] Alfredo Kojima
Crash was caused by incorrect truncation of utf8 characters. This has been fixed for 5.1 and 5.2
[7 Aug 2009 16:58] Johannes Taxacher
this issue has been fixed.
will be included in 5.1.17
[10 Aug 2009 10:56] Tony Bedford
An entry was added to the 5.1.17 changelog:

An Unknown Exception was caught after placing a relationship between two tables in the EER Diagram. The exception generated was:

Unknown Exception caught in: c:\documents and settings\mysqldev\my documents\visual
studio 2008\projects\workbench\backend\windows\wbprivate.wr\src\Wb.h at line 1026