Bug #63629 Crash after creating foreign key

Submitted: 6 Dec 2011 15:49 Modified: 23 Dec 2011 19:17
Reporter: Dennis Minderhoud Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.36 OS:Any (Mac OS X, Windows 7)
Assigned to: CPU Architecture:Any
Tags: foreign key, model, same table

[6 Dec 2011 15:49] Dennis Minderhoud
Description:
When I want to create a foreign key into the same table using the 'place relation using existing columns' the application will crash.

How to repeat:
open model
1) press '6'
2) select column 
3) click 'pick referenced columns'
4) select other column

Suggested fix:
N/A
[6 Dec 2011 19:05] Valeriy Kravchuk
Thank you for the bug report. Verified just as described on Mac OS X also.

From the crash report generated:

Process:         MySQLWorkbench [43544]
Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
Identifier:      com.oracle.MySQLWorkbench
Version:         ??? (5.2.36)
Code Type:       X86 (Native)
Parent Process:  launchd [84]

Date/Time:       2011-12-06 21:02:50.727 +0200
OS Version:      Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000033
Crashed Thread:  0

Thread 0 Crashed:
0   libcanvas.dylib               	0x00435df1 mdc::CanvasItem::convert_point_from(MySQL::Geometry::Point const&, mdc::CanvasItem*) const + 171
1   libcanvas.dylib               	0x004433ca __ZL15propagate_eventPN3mdc10CanvasItemERKN5boost8functionIFbS1_S1_RKN5MySQL8Geometry5PointENS_11MouseButtonENS_10EventStateEEEES8_S9_SA_ + 71
2   libcanvas.dylib               	0x00443a4a mdc::CanvasView::handle_mouse_button(mdc::MouseButton, bool, int, int, mdc::EventState) + 984
3   libwbprivate.be.dylib         	0x00ecc6b2 wb::ModelDiagramForm::handle_mouse_button(mdc::MouseButton, bool, int, int, mdc::EventState) + 1908
4   com.oracle.MySQLWorkbench     	0x0002b997 -[WBModelDiagramPanel canvasMouseUp:location:state:] + 60
5   com.sun.WBExtras              	0x01872fe4 -[MCanvasViewer mouseUp:] + 238
6   com.apple.AppKit              	0x912d3241 -[NSWindow sendEvent:] + 5539
7   com.apple.AppKit              	0x9129fd49 -[NSApplication sendEvent:] + 2941
8   com.apple.AppKit              	0x911fd69f -[NSApplication run] + 847
9   com.apple.AppKit              	0x911ca8a4 NSApplicationMain + 574
10  com.oracle.MySQLWorkbench     	0x0000b1e2 start + 54
...
[23 Dec 2011 19:17] Philip Olson
Fixed as of 5.2.37:

Creating a foreign key using the "Place a relationship
using existing columns" EER option would crash.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 3.199 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.