Bug #100376 Create a New Model
Submitted: 30 Jul 2020 7:15 Modified: 6 Aug 2020 7:35
Reporter: Grégory LAINEY Email Updates:
Status: Can't repeat Impact on me:
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:8.0.21 OS:Windows (10 V 2004)
Assigned to: CPU Architecture:x86 (Ontel Core i7-7700HQ)

[30 Jul 2020 7:15] Grégory LAINEY
When i create a new model, mysql workbench close

How to repeat:
Open Mysql Workbench
File -> New Model
Double click on Add Diagram

C:\Program Files\MySQL\MySQL Workbench 8.0 CE>MySQLWorkbench.exe

C:\Program Files\MySQL\MySQL Workbench 8.0 CE>
Exception non gérée : System.AccessViolationException: Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.
   à MySQL.GUI.Mdc.BaseWindowsCanvasView.initialize()
   à MySQL.GUI.Mdc.WindowsCanvasViewerPanel.CreateGLCanvas(Form ownerForm, Boolean handleInput)
   à MySQL.GUI.Mdc.WindowsCanvasViewer.CreateCanvasView(Form ownerForm, Boolean handleInput, Boolean software_rendering_enforced, Boolean opengl_rendering_enforced)
   à MySQL.GUI.Workbench.ModelDiagramForm.CreateCanvas(String id)
   à MySQL.GUI.Workbench.ModelDiagramForm..ctor(WbContext context, String id)
   à MySQL.GUI.Workbench.MainForm.CreateNewDiagram(String viewId, String name)
   à MySQL.Workbench.WbFrontendCallbacks.create_diagram_wrapper(Ref<model_Diagram>* model)
   à std._Func_impl_no_alloc<mdc::CanvasView * (__cdecl*)(grt::Ref<model_Diagram> const &),mdc::CanvasView *,grt::Ref<model_Diagram> const &>._Do_call(_Func_impl_no_alloc<mdc::CanvasView \* (__cdecl\*)(grt::Ref<model_Diagram> const \&)\,mdc::CanvasView \*\,grt::Ref<mo
del_Diagram> const \&>* , Ref<model_Diagram>* <_Args_0>)
   à MySQL.Grt.ListModelWrapper.activate_node(NodeIdWrapper node)
   à MySQL.GUI.Workbench.ModelOverviewForm.listViewDoubleClick(Object sender, EventArgs e)
   à System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
   à System.Windows.Forms.ListView.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   à MySQL.GUI.Workbench.Program.Main(String[] Args)
[30 Jul 2020 9:21] MySQL Verification Team
I couldn't repeat this issue.
[5 Aug 2020 12:16] MySQL Verification Team
Hello Grégory LAINEY,

Thank you for the bug report.
I tried to reproduce your issue on windows 10 with workbench 8.0.21 but I am not seeing any issues at my end.

Ashwini Patil
[5 Aug 2020 12:18] MySQL Verification Team
8.0.21 test results

Attachment: 100376_test_results.png (image/png, text), 257.05 KiB.

[6 Aug 2020 7:35] Grégory LAINEY
I found something:
I have 2 screens connected to my laptop.
When unplugging two screens, I can create models, when I reconnect screens, if I close and reopen mysql Workbench, I can no longer create models : mysql workbench close.
So, in my opinion, there is a problem when opening mysql workbench if there are several screens connected