Bug #69188 Workbench hangs indefinitely after right click in schemata explorer
Submitted: 9 May 2013 18:13 Modified: 31 Jul 2013 15:10
Reporter: Bryan Blakey Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.47 OS:MacOS
Assigned to: CPU Architecture:Any
Tags: hang, schemata explorer

[9 May 2013 18:13] Bryan Blakey
Description:
If you right click to open the context menu for table actions in the expanded Tables list in the schemata explorer after running a query against the schema (BEFORE it's been expanded in the schemata explorer), Workbench hangs and must be Force Quit.

How to repeat:
1. Run SELECT statement against a table in a schema that has not yet been expanded in the schemata explorer
2. Expand schema in schemata explorer
3. Expand Tables list under above schema in schemata explorer
4. Right click on a table in Tables list to open table actions context menu
5. Enjoy spinning beachball cursor as workbench hangs
6. Force quit workbench from dock (reopen to begin using again)
[9 May 2013 18:14] Bryan Blakey
simple test case for reproduction

Attachment: test-case.sql (application/octet-stream, text), 489 bytes.

[9 May 2013 18:16] Bryan Blakey
Hang report from last Force Quit

Attachment: mysql-workbench-hang-report.txt (text/plain), 569.03 KiB.

[9 May 2013 19:01] MySQL Verification Team
Thank you for the bug report.

Date/Time:       2013-05-09 16:00:12 -0300
OS Version:      10.8.3 (Build 12D78)
Architecture:    x86_64
Report Version:  11

Command:         MySQLWorkbench
Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
Version:         5.2.47 (1)
Parent:          launchd [686]

PID:             1989
Event:           hang
Duration:        3.58s
Steps:           36 (100ms sampling interval)

Hardware model:  MacBookPro9,2
Active cpus:     4
Free pages:      2223069 pages (-539)
Pageins:         7 pages
Pageouts:        0 pages

Process:         MySQLWorkbench [1989]
Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
Architecture:    i386
Parent:          launchd [686]
UID:             501
Task size:       18080 pages (+2)

  Thread 0x1249b    priority 47        
  36 start + 53 (MySQLWorkbench) [0xa1d5]
    36 NSApplicationMain + 1053 (AppKit) [0x92e82666]
      36 -[NSApplication run] + 951 (AppKit) [0x92edf69c]
        36 -[NSApplication sendEvent:] + 4278 (AppKit) [0x92fc597f]
          36 -[NSWindow sendEvent:] + 7432 (AppKit) [0x92fcab61]

<cut>
[31 Jul 2013 15:10] Philip Olson
Fixed as of MySQL Workbench 6.0.4, and here's the changelog entry:

Opening the context menu for a table in the expanded tables list in the
schemata explorer after running a query against the schema (before it was
expanded in the schemata explorer) would cause MySQL Workbench to freeze.

Thank you for the bug report.