Bug #67750 Crash when creating EER model from database.
Submitted: 29 Nov 2012 4:24 Modified: 19 Mar 2013 15:37
Reporter: Song Zhang Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.44 OS:Windows (Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[29 Nov 2012 4:24] Song Zhang
Description:
Crash when creating EER model from database.

----- Developer Notes -----

MySQL Workbench CE for Windows version 5.2.44  revision 9933
Configuration Directory: C:\Users\NETEAST\AppData\Roaming\MySQL\Workbench
Data Directory: C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE
Cairo Version: 1.8.8
OS: Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit
CPU: 4x Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 7.9 GiB RAM
Active video adapter (0): Intel(R) HD Graphics 4000
Installed video RAM: -1984 MB
Current video mode: 1366 x 768 x 4294967296 colors
Used bit depth: 32
Driver version: 8.933.3.3000
Installed display drivers: igdumd64.dll,igd10umd64.dll,igd10umd64.dll,igdumd32,igd10umd32,igd10umd32
Current user language: 中文(简体,中国)

Exception = System.InvalidOperationException
Message = Undo 操作遇到的上下文与相应 Set 操作中应用的上下文不同。可是因为在线程上 Set 了一个上下文但未进行还原(撤消)。
FullText = System.InvalidOperationException: Undo 操作遇到的上下文与相应 Set 操作中应用的上下文不同。可是因为在线程上 Set 了一个上下文但未进行还原(撤消)。
   在 System.Threading.SynchronizationContextSwitcher.Undo()
   在 System.Threading.ExecutionContextSwitcher.Undo()
   在 System.Threading.ExecutionContext.runFinallyCode(Object userData, Boolean exceptionThrown)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteBackoutCodeHelper(Object backoutCode, Object userData, Boolean exceptionThrown)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   在 System.Windows.Forms.Control.InvokeMarshaledCallbacks()

How to repeat:
Crash when creating EER model from database.
[10 Dec 2012 13:13] MySQL Verification Team
http://bugs.mysql.com/bug.php?id=67838 marked as duplicate of this one.
[28 Dec 2012 13:40] MySQL Verification Team
Please try version 5.2.45. Thanks.
[13 Jan 2013 5:40] RISHABH GARG
The problem still persists with 5.2.45. It crashes with following exception:
System.AccessViolationException was unhandled
  HResult=-2147467261
  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
  Source=wbpublic.wr
  StackTrace:
       at MySQL.GUI.Mdc.BaseWindowsCanvasView.initialize()
       at MySQL.Utilities.WindowsCanvasViewerPanel.CreateGLCanvas(Form ownerForm, IntPtr payload, Boolean handleInput)
       at MySQL.Utilities.WindowsCanvasViewer.CreateCanvasView(Form ownerForm, IntPtr payload, Boolean handleInput, Boolean software_rendering_enforced, Boolean opengl_rendering_enforced)
       at MySQL.GUI.Workbench.ModelDiagramForm.CreateCanvas(String id, IntPtr payload)
       at MySQL.GUI.Workbench.ModelDiagramForm..ctor(WbContext context, String id, IntPtr payload)
       at MySQL.GUI.Workbench.MainForm.CreateNewDiagram(String viewId, String name, IntPtr payload)
       at MySQL.Forms.AppImpl.create_diagram_wrapper(Ref<model_Diagram>* model)
       at boost.detail.function.function_invoker1<mdc::CanvasView * (__cdecl*)(grt::Ref<model_Diagram> const &),mdc::CanvasView *,grt::Ref<model_Diagram> const &>.invoke(function_buffer* function_ptr, Ref<model_Diagram>* a0)
       at MySQL.Grt.ListModel.activate_node(NodeId node)
       at MySQL.GUI.Workbench.ModelOverviewForm.listViewDoubleClick(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
       at System.Windows.Forms.ListView.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)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(ApplicationContext context)
       at MySQL.GUI.Workbench.Program.Main(String[] Args)
  InnerException:
[19 Feb 2013 15:37] MySQL Verification Team
Please try version 5.2.47. Thanks.
[20 Mar 2013 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".