Bug #51803 MySQL Workbench crashes while connecting to remote server
Submitted: 7 Mar 2010 7:15 Modified: 16 Mar 2010 2:37
Reporter: Georgiy Okrokvertskhov Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.16 OS:Linux (Fedora 12)
Assigned to: CPU Architecture:Any
Tags: connect to remote, crash, linux, workbench

[7 Mar 2010 7:15] Georgiy Okrokvertskhov
Description:
MySQl Workbench crashes when for Server administration a remote host was chosen.

The following traces are shown in the console output:

** (mysql-workbench-bin:27059): WARNING **: Plugin 'wb.tools.quickTables' from module WbTools has invalid type ''

** (mysql-workbench-bin:27059): WARNING **: :718: link 'com.mysql.wb.menu.view.advanced' <object app.MenuItem> key=owner could not be resolved
_view_impl has NULL ptr at 14
_app_impl has NULL ptr at 5
** Message: function call error
Traceback (most recent call last):
  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 240, in tmpAdministratorShortcut
    tab = do_open_administrator(server)
  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 125, in do_open_administrator
    adminTab = AdministratorTab(server_instance)
  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 95, in __init__
    self.configuration = wb_admin_configuration.WbAdminConfiguration(server_instance_settings, self.ctrl_be, self.monitor)
  File "/usr/lib/mysql-workbench/modules/wb_admin_configuration.py", line 60, in __init__
    sys_config_path = self.ctrl_be.get_config_file_path()
  File "/usr/lib/mysql-workbench/modules/wb_admin_control_be.py", line 667, in get_config_file_path
    return self.expand_path_variables(self.settings.serverInfo['sys.config.path'].strip(" \r\t\n\b"))
AttributeError: 'NoneType' object has no attribute 'strip'

glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: error calling WbAdmin.tmpAdministratorShortcut: see output for details

aborting...

How to repeat:
1. Create server instance for remote host
2. Click Server administration
3. Choose created remote server instance
[8 Mar 2010 17:37] Joo Batista Neto
Same environment, but a LITTLE diferent error:

Traceback (most recent call last):

  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 149, in openAdministrator

    
do_open_administrator(server_instance)

  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 125, in do_open_administrator

    
adminTab = AdministratorTab(server_instance)

  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 95, in __init__

    
self.configuration = wb_admin_configuration.WbAdminConfiguration(server_instance_settings, self.ctrl_be, self.monitor)

  File "/usr/lib/mysql-workbench/modules/wb_admin_configuration.py", line 60, in __init__

    
sys_config_path = self.ctrl_be.get_config_file_path()

  File "/usr/lib/mysql-workbench/modules/wb_admin_control_be.py", line 667, in get_config_file_path

    
return self.expand_path_variables(self.settings.serverInfo['sys.config.path'].strip(" \r\t\n\b"))

AttributeError
: 
'NoneType' object has no attribute 'strip'

---------
System Info:

MySQL Workbench OSS for Linux/Unix version 5.2.16

Cairo Version: 1.8.8

Rendering Mode: Native requested (create a diagram to confirm)

OpenGL Driver Version: Not Detected

OS: Linux 2.6.31.12-174.2.22.fc12.i686.PAE

CPU: 2x Pentium(R) Dual-Core CPU       T4300  @ 2.10GHz 2100.000 MHz, 3,9 GB RAM

---------
How to reproduce:

1. In SQL Development, create an server instance using New Connection
2. In Server Administration, "New Server Instance"
3. "Take parameters from Existing Database Connection"
4. In the list of servers, choose the new configured server

---------
Adicional Info:

The server uses 5.0.18-nt version.
[8 Mar 2010 17:47] Joo Batista Neto
Another one, using the same configurated server to "Manage Import / Export", but now workbench dies...

** Message: function call error
Traceback (most recent call last):
  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 214, in openExportImport
    tab = do_open_administrator(server)
  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 125, in do_open_administrator
    adminTab = AdministratorTab(server_instance)
  File "/usr/lib/mysql-workbench/modules/wb_admin_grt.py", line 95, in __init__
    self.configuration = wb_admin_configuration.WbAdminConfiguration(server_instance_settings, self.ctrl_be, self.monitor)
  File "/usr/lib/mysql-workbench/modules/wb_admin_configuration.py", line 60, in __init__
    sys_config_path = self.ctrl_be.get_config_file_path()
  File "/usr/lib/mysql-workbench/modules/wb_admin_control_be.py", line 667, in get_config_file_path
    return self.expand_path_variables(self.settings.serverInfo['sys.config.path'].strip(" \r\t\n\b"))
AttributeError: 'NoneType' object has no attribute 'strip'

glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: error calling WbAdmin.openExportImport: see output for details

aborting...
[8 Mar 2010 17:58] Joo Batista Neto
Segmentation fault, sorry for the flood, guys...

Attachment: Segmentation_fault.log (application/octet-stream, text), 51.99 KiB.

[9 Mar 2010 2:34] MySQL Verification Team
Thank you for the bug report. Verified on Fedora Core 12 X64.
[15 Mar 2010 15:39] Jesse Shaffer
On line 666 of modules\wb_admin_config_be.py:

    def get_config_file_path(self):
	  scp = self.settings.serverInfo['sys.config.path']
	  if scp is None:
	    return None
	  return self.expand_path_variables(scp.strip(" \r\t\n\b"))
[16 Mar 2010 2:37] Alfredo Kojima
This is a duplicate of bug #51476 which has been fixed