Bug #73580 Server menu items do nothing or cause crash
Submitted: 14 Aug 2014 10:11 Modified: 27 Aug 2014 3:20
Reporter: David Lahr Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:6.1.7 OS:MacOS (10.9.4)
Assigned to: CPU Architecture:Any

[14 Aug 2014 10:11] David Lahr
Description:
I am running an ssh tunnel through the command line to a remote server.  MySQL Workbench is configured to connect to localhost.  

I started workbench from the command line with:
/Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench --log-level=debug3

First, I attempt "Data Export" from the Server menu and nothing happens.  The log file reports:
05:50:10 [ERR][wb_admin_grt.py:openAdminSection:822]: No context found for editor in call to openAdminSection
05:50:10 [DB2][            grt]: wb.admin.open_into finished in 0.00s

Then I attempt "Management Access Settings..." from the Server menu and Workbench crashes.  Nothing is added to the log file, the command prompt reports:
libc++abi.dylib: terminating with uncaught exception of type grt::module_error: error calling Python module function WbAdmin.autoDetectLocalInstance
Abort trap: 6

Information from the crash report is attached.

How to repeat:
with an ssh tunnel running to a remote server:

1)  start Workbench from the command line
/Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench --log-level=debug3

2)  connect to the database

3)  from the "Server" menu, choose "Data Export"
nothing happens

4) from the "Server" menu, choose "Management Access Settings..."
[14 Aug 2014 17:17] MySQL Verification Team
Connected SSH

Attachment: ssh_connection.png (image/png, text), 371.56 KiB.

[14 Aug 2014 17:28] MySQL Verification Team
Thank you for the bug report.

Process:         MySQLWorkbench [1333]
Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
Identifier:      com.oracle.mysql.workbench
Version:         6.1.7 (1)
Code Type:       X86 (Native)
Parent Process:  launchd [393]
Responsible:     MySQLWorkbench [1333]
User ID:         501

Date/Time:       2014-08-14 14:28:02.700 -0300
OS Version:      Mac OS X 10.9.4 (13E28)
Report Version:  11
Anonymous UUID:  2A5B59E8-F98A-1451-49F8-DEC433009E11

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Performing @selector(callSlot:) from sender MFMenuItem 0xb44fd50
terminating with uncaught exception of type grt::module_error: error calling Python module function WbAdmin.autoDetectLocalInstance
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x96349952 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x99549167 pthread_kill + 101
2   libsystem_c.dylib             	0x95da729c abort + 155
3   libc++abi.dylib               	0x943366c9 abort_message + 169
4   libc++abi.dylib               	0x9435747d default_terminate_handler() + 264
5   libc++abi.dylib               	0x94354c30 std::__terminate(void (*)()) + 14
6   libc++abi.dylib               	0x9435464b __cxa_throw + 116
7   libgrt.dylib                  	0x0045a0fd grt::PythonModule::call_function(grt::BaseListRef const&, _object*, 
<CUT>
[27 Aug 2014 3:20] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.2.2 release, and here's the changelog entry:

The server management functionality would sometimes fail with connections
using SSH tunneling.

Thank you for the bug report.