Bug #35840 System.AccessViolationException When creating a new View and deleting it.
Submitted: 4 Apr 2008 18:56 Modified: 10 May 2008 23:56
Reporter: Alex Ghibellini Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.0.16 SE RC OS:Windows (Vista)
Assigned to: CPU Architecture:Any
Tags: AccessViolationException, system

[4 Apr 2008 18:56] Alex Ghibellini
Description:

Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.

************** Testo dell'eccezione **************
System.AccessViolationException: Tentativo di lettura o scrittura della memoria protetta. Spesso questa condizione indica che altre parti della memoria sono danneggiate.
   in mdc.CanvasView.handle_mouse_button(CanvasView* , MouseButton , Boolean , Int32 , Int32 , EventState )
   in MySQL.GUI.Mdc.BaseWindowsCanvasView.OnMouseDown(MouseEventArgs e, Keys keystate, MouseButtons buttons)
   in MySQL.Utilities.WindowsCanvasViewerPanel.OnMouseDown(MouseEventArgs e)
   in System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Assembly caricati **************
mscorlib
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MySQLWorkbench
    Versione assembly: 5.0.16.2874
    Versione Win32: 5.0.16.2874
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/MySQLWorkbench.exe
----------------------------------------
wb.wr
    Versione assembly: 0.0.0.0
    Versione Win32: 
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/wb.wr.DLL
----------------------------------------
grt.wr
    Versione assembly: 0.0.0.0
    Versione Win32: 
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/grt.wr.DLL
----------------------------------------
System.Windows.Forms
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MySQLCsUtilities
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/MySQLCsUtilities.DLL
----------------------------------------
msvcm80
    Versione assembly: 8.0.50727.762
    Versione Win32: 8.00.50727.762
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/msvcm80.DLL
----------------------------------------
MySQLGrtShell
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/MySQLGrtShell.EXE
----------------------------------------
WeifenLuo.WinFormsUI.Docking
    Versione assembly: 2.2.3007.11795
    Versione Win32: 2.2.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
MySQLWorkbenchEditors
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/MySQLWorkbenchEditors.DLL
----------------------------------------
Aga.Controls
    Versione assembly: 1.6.0.0
    Versione Win32: 1.6.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/Aga.Controls.DLL
----------------------------------------
grt.helpers.be
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/grt.helpers.be.DLL
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Accessibility
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.312 (rtmLHS.050727-3100)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
db.mysql.editors.wbp.fe
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/db.mysql.editors.wbp.fe.DLL
----------------------------------------
db.mysql.editors.wbp.wr
    Versione assembly: 0.0.0.0
    Versione Win32: 
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/db.mysql.editors.wbp.wr.DLL
----------------------------------------
grt.db.wr
    Versione assembly: 0.0.0.0
    Versione Win32: 
    Base di codice: file:///C:/Program%20Files/MySQL/MySQL%20Workbench%205.0%20SE/grt.db.wr.DLL
----------------------------------------

************** Debug JIT **************
Per attivare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
attivato.

Ad esempio:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Quando il debug JIT è attivato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.

How to repeat:
Create a new view, select it with double click and than delete the view. When trying to do anything else: "System.AccessViolationException" pops up and than WB hangs and is closed by system (after a god's sake "save").
[7 Apr 2008 15:42] MySQL Verification Team
Thank you for the bug report. Could you please test with latest released
version 5.0.17a. I was not able to repeat the behavior reported. Thanks
in advance.
[8 Apr 2008 15:09] Alex Ghibellini
well, before uninstalling 5.0.16: create a view in an existing diagram with tables, delete it from the EER Diagram via right-click menu; double clic on any other object (e.g. a table), Access Violation!

new version 5.0.17: seems OK (couldn't replicate);
[8 Apr 2008 16:05] Johannes Taxacher
this issue has been fixed in release 5.0.17 RC
[10 May 2008 23:56] Paul DuBois
Noted in 5.0.17 changelog.

Creating a new view and then deleting it caused a
System.AccessViolationException.