Bug #55390 MySQL Workbench Unexpected Error - External component has thrown an error
Submitted: 20 Jul 2010 9:32 Modified: 2 Aug 2010 16:21
Reporter: Peter Scholtz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.25 CE OS:Any
Assigned to: Alfredo Kojima CPU Architecture:Any

[20 Jul 2010 9:32] Peter Scholtz
Description:
When using the Bird's Eye to zoom in or out using either the percentages or the +/- icons. Does not happen everytime.

How to repeat:
Use the Bird's Eye to zoom up or down.
[20 Jul 2010 9:39] Valeriy Kravchuk
Please, send the results of Help > System Info menu item.
[20 Jul 2010 9:41] Roel Van de Paar
Was not able to reproduce on Win7 HP x64. Could you maybe provide the model you are working on (you can submit it in a private comment if you like)?
[20 Jul 2010 10:05] Peter Scholtz
Model to produce error

Attachment: MySQL Workbench model zoom error.mwb (application/octet-stream, text), 5.58 KiB.

[20 Jul 2010 10:06] Peter Scholtz
MySQL Workbench CE for Windows version 5.2.25

Data Directory: C:\Program Files\MySQL\MySQL Workbench 5.2 CE

Cairo Version: 1.8.8

Rendering Mode: OpenGL is available on this system, so OpenGL is used for rendering.

OpenGL Driver Version: 1.5.0 - Build 6.14.10.4860

OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)

CPU: 2x Intel(R) Core(TM)2 Duo CPU     L7100  @ 1.20GHz, 2.0 GiB RAM

Video adapter info:

Adapter type: Mobile Intel(R) 965 Express Chipset Family

Chip Type: Mobile Intel(R) 965 Express Chipset Family

BIOS String: Intel Video BIOS

Video Memory: 393216 KB
[20 Jul 2010 10:07] Peter Scholtz
Note I use the connect to columns relationship notation. Also after the error the zoom % is not updated though the diagram has zoomed.
[20 Jul 2010 10:10] Peter Scholtz
To reproduce: delete the relationship, then use the "place a relationship using existing columns" then drag and drop from table2.table1_id to table1.idtable1. Then try to zoom.
[20 Jul 2010 11:41] MySQL Verification Team
Not repeatable on Linux.
[21 Jul 2010 9:02] Roel Van de Paar
Got it.

Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException: External component has thrown an exception.
   at wb.ModelDiagramForm.set_zoom(ModelDiagramForm* , Double )
   at MySQL.Workbench.ModelViewForm.set_zoom(Double zoom)
   at MySQL.GUI.Workbench.ModelDiagramForm.set_zoom(Double value)
   at MySQL.GUI.Workbench.ModelNavigatorForm.zoomInPictureBox_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Adding backtrace shortly.
[21 Jul 2010 9:04] Roel Van de Paar
Reproduced on Win7 x64 HP.
[21 Jul 2010 9:18] Roel Van de Paar
Backtrace of repeatable testcase from user (using mwb file above) - scroll down for analyze and lower again for all threads bt

Attachment: backtrace user's main process.txt (text/plain), 40.54 KiB.

[21 Jul 2010 9:19] Roel Van de Paar
I was also able to generate this crash using another set of tables. Adding backtrace below. Backtrace seems quite different, so maybe there's more than one issue here.
[21 Jul 2010 9:19] Roel Van de Paar
Backtrace of another testcase from me - scroll down for analyze and lower again for all threads bt

Attachment: backtrace Roel's main process.txt (text/plain), 78.42 KiB.

[21 Jul 2010 9:24] Roel Van de Paar
Quick Overview

Crash 1/2 Common

PROCESS_NAME:  MySQLWorkbench.exe
ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION}  Breakpoint  A breakpoint has been reached.
EXCEPTION_CODE: (HRESULT) 0x80000003 (2147483651) - One or more arguments are invalid
STACK_TEXT:  
001ed8f8 63c28c68 ec2e3289 7213a6f8 001eda38 user32!NtUserWaitMessage+0x15
001ed98c 63c28757 00000000 00000004 00000000 System_Windows_Forms_ni+0x208c68
001ed9e4 63c285a1 02941234 00000000 00000000 System_Windows_Forms_ni+0x208757
[...]
MODULE_NAME: System_Windows_Forms_ni
IMAGE_NAME:  System.Windows.Forms.ni.dll

Crash 1 Details

DEFAULT_BUCKET_ID:  STATUS_BREAKPOINT
PRIMARY_PROBLEM_CLASS:  STATUS_BREAKPOINT
BUGCHECK_STR:  APPLICATION_FAULT_STATUS_BREAKPOINT
FAILURE_BUCKET_ID:  STATUS_BREAKPOINT_80000003_System.Windows.Forms.ni.dll!Unknown
BUCKET_ID:  X64_APPLICATION_FAULT_STATUS_BREAKPOINT_System_Windows_Forms_ni+208c68

Crash 2 Details

DEFAULT_BUCKET_ID:  CORRUPT_MODULELIST
PRIMARY_PROBLEM_CLASS:  CORRUPT_MODULELIST
BUGCHECK_STR:  APPLICATION_FAULT_CORRUPT_MODULELIST_OVERLAPPED_MODULE
FAILURE_BUCKET_ID:  CORRUPT_MODULELIST_80000003_System.Windows.Forms.ni.dll!Unknown
BUCKET_ID:  X64_APPLICATION_FAULT_CORRUPT_MODULELIST_OVERLAPPED_MODULE_System_Windows_Forms_ni+208c68
[21 Jul 2010 9:50] Roel Van de Paar
Marked as duplicate: bug #54351 - VIV.mwb can be made to crash - delete a fk link, then use quick option "6"  and re-make link

Attachment: backtrace from VIV.mwb - bug 54351.txt (text/plain), 43.84 KiB.

[21 Jul 2010 10:07] Roel Van de Paar
Marked as duplicates of this one: bug #52738 | bug #52585 | bug #53700 (partly)
[21 Jul 2010 10:10] Roel Van de Paar
-swrendering has no effect
[21 Jul 2010 10:11] Susanne Ebrecht
Bug #55329 is a duplicate of this bug here.
[21 Jul 2010 10:29] Roel Van de Paar
Bug #52829 (which contains a fix for this issue) is really a duplicate of this one also. I was able to reproduce the same crash using the mwb file provided there. Here's something to note: NONE of the relationship links (1:1- -, 1:n- -<, 1:1---, 1:n---<, n:m>---<) is able to reproduce this, but using the last one (the seperate last icon - i.e. the quick "6" option), even with making a single relationship, then zoom/unzoom, WB always crashes.
[21 Jul 2010 10:42] Roel Van de Paar
Marked as duplicate of this one: bug #53249 | bug #53214 (though I am not able to reproduce the crash using the procedure there described. The image shows the same sort of exception though)
[21 Jul 2010 22:31] Alfredo Kojima
fixed
[21 Jul 2010 22:32] Alfredo Kojima
fixed
[21 Jul 2010 23:02] Alfredo Kojima
marked bug #54936 as duplicate
[21 Jul 2010 23:31] Roel Van de Paar
Marked bug #55335 as a duplicate of this one.
[22 Jul 2010 4:48] Roel Van de Paar
Marked as duplicates of this bug: bug #54428 | bug #54979 | bug #53565 | bug #43782 (there's a MAC crash report there) | bug #54633 | bug #55272 | bug #53948 | bug #53518 | bug #52989

Also, it looks like bug #52961 is a duplicate of this one as far as the crash goes. There is a description of CPU slowness there which looks like a separate issue.
[22 Jul 2010 7:05] Roel Van de Paar
Devs, I see "model_Diagram::zoom" (bug #54400) and "ModelDiagramForm.set_zoom" (above) - any reason for the difference? Changed over time? Different OS?
[22 Jul 2010 7:47] Roel Van de Paar
Marked as duplicates of this one: bug #54045 | bug #54400 | bug #52783 | bug #55069 | bug #54637 | bug #55218 | bug #53176 | bug #52943
[28 Jul 2010 15:12] MySQL Verification Team
Bug http://bugs.mysql.com/bug.php?id=55604 marked as duolicate of this one.
[29 Jul 2010 12:35] Valeriy Kravchuk
Bug #55624 was marked as a duplicate of this one.
[30 Jul 2010 16:17] Johannes Taxacher
fix confirmed in repository
[2 Aug 2010 16:21] Tony Bedford
Updated entry for duplicate Bug #52829.
[4 Aug 2010 4:20] Valeriy Kravchuk
Bug #55726 was marked as a duplicate of this one.
[4 Aug 2010 13:40] Valeriy Kravchuk
Bug #55741 was marked as a duplicate of this one.
[5 Aug 2010 7:17] Roel Van de Paar
Bug #55762 was marked as a duplicate of this one.
[28 Aug 2010 8:55] Sveta Smirnova
Bug #56312 was marked as duplicate of this one.