Bug #67344 Crash
Submitted: 23 Oct 2012 21:53 Modified: 24 Oct 2012 16:04
Reporter: Ken Ismert Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.44 OS:Windows (Microsoft Windows XP Professional Service Pack 3 (build 2600))
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[23 Oct 2012 21:53] Ken Ismert
Description:
Switched between SQL editor and Modeling several times. Crashed on second attempt to get data model from exisiting database

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

MySQL Workbench CE for Windows version 5.2.44  revision 9933
Configuration Directory: C:\Documents and Settings\kismert\Application Data\MySQL\Workbench
Data Directory: C:\Program Files\MySQL\MySQL Workbench 5.2 CE
Cairo Version: 1.8.8
OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)
CPU: 8x Intel(R) Xeon(R) CPU           E5335  @ 2.00GHz, 3.5 GiB RAM
Active video adapter (0): ATI FireGL V3100
Installed video RAM: 128 MB
Current video mode: 1920 x 1080 x 4294967296 colors
Used bit depth: 32
Driver version: 6.14.10.6912
Installed display drivers: ati2dvag.dll
Current user language: English (United States)

Exception = System.InvalidOperationException
Message = The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone).
FullText = System.InvalidOperationException: The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone).
   at System.Threading.SynchronizationContextSwitcher.Undo()
   at System.Threading.ExecutionContextSwitcher.Undo()
   at System.Threading.ExecutionContext.runFinallyCode(Object userData, Boolean exceptionThrown)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteBackoutCodeHelper(Object backoutCode, Object userData, Boolean exceptionThrown)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

How to repeat:
My steps:

* Open SQL editor with an existing connection. Open several queries on tables within a database
* Open Create EER Model from Existing Database. Cancel out
* Go back to already open SQL editor. 
* Re-open 'Create EER Model'. Try to assign a database name. Click on the next step.

Crash.

This feels unlikely to reproduce the problem, but that's what I did.
[24 Oct 2012 16:04] Ruben Dario Morquecho Valdez
Triying to reproduce on Windows XP. Workbench 5.2.44 R 9933 several times and couldnt be reproduced the bug.

If you can provide more information, feel free to add it to this bug and change the status back to 'Open'.

Thank you for your interest in MySQL.