Bug #81906 Unhandled exception
Submitted: 17 Jun 2016 11:41 Modified: 21 Nov 2016 16:43
Reporter: Daniele Gessa Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.3.6 OS:Windows (Microsoft Windows 7 Home Premium Service Pack 1)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[17 Jun 2016 11:41] Daniele Gessa
Description:
13:17:24 [ERR][      Workbench]: Console redirection failed.
13:17:24 [INF][      WBContext]: Parsing application arguments.
13:17:24 [INF][      WBContext]:     C:\Program Files\MySQL\MySQL Workbench 6.3 CE\MySQLWorkbench.exe
13:17:24 [INF][      WBContext]:     -query
13:17:24 [INF][      WBContext]:     Local instance MySQL56
13:17:24 [INF][      Workbench]: Starting up Workbench
13:17:24 [INF][      Workbench]: Current environment:
	Command line: "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\MySQLWorkbench.exe" -query "Local instance MySQL56"
	CurrentDirectory: C:\Windows\system32
	HasShutdownStarted: False
	OSVersion: Microsoft Windows NT 6.1.7601 Service Pack 1
	SystemDirectory: C:\Windows\system32
	TickCount: 18108658
	UserInteractive: True
	Version: 4.0.30319.18063
	WorkingSet: 32641024
13:17:24 [INF][      Workbench]: Environment variables:
	COMPUTERNAME = DANG83-NOTEBOOK
	USERPROFILE = C:\Users\Dang83
	HOMEPATH = \Users\Dang83
	LOCALAPPDATA = C:\Users\Dang83\AppData\Local
	PSModulePath = C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
	PROCESSOR_ARCHITECTURE = AMD64
	Path = C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files (x86)\SlikSvn\bin;C:\Program Files\MySQL\MySQL Server 5.7\bin\
	CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
	ProgramFiles(x86) = C:\Program Files (x86)
	PROCESSOR_LEVEL = 16
	LOGONSERVER = \\DANG83-NOTEBOOK
	PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
	HOMEDRIVE = C:
	SystemRoot = C:\Windows
	SESSIONNAME = Console
	ALLUSERSPROFILE = C:\ProgramData
	PUBLIC = C:\Users\Public
	FP_NO_HOST_CHECK = NO
	APPDATA = C:\Users\Dang83\AppData\Roaming
	PROCESSOR_REVISION = 0503
	USERNAME = Dang83
	CommonProgramW6432 = C:\Program Files\Common Files
	CommonProgramFiles = C:\Program Files\Common Files
	OS = Windows_NT
	PROCESSOR_IDENTIFIER = AMD64 Family 16 Model 5 Stepping 3, AuthenticAMD
	ComSpec = C:\Windows\system32\cmd.exe
	SystemDrive = C:
	TEMP = C:\Users\Dang83\AppData\Local\Temp
	ProgramFiles = C:\Program Files
	NUMBER_OF_PROCESSORS = 3
	TMP = C:\Users\Dang83\AppData\Local\Temp
	ProgramData = C:\ProgramData
	ProgramW6432 = C:\Program Files
	windir = C:\Windows
	USERDOMAIN = Dang83-Notebook
13:17:24 [INF][      Workbench]: Current version given by meta info is: 6.3.6
13:17:25 [INF][      Workbench]: Setting PATH to: C:\Windows\system32;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files (x86)\SlikSvn\bin;C:\Program Files\MySQL\MySQL Server 5.7\bin\
13:17:25 [INF][ mforms managed]: Initializing mforms wrapper
13:17:26 [INF][   WBContext UI]: Initializing workbench context UI with these values:
	base dir: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	plugin path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	struct path: 
	module path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE/modules
	library path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	user data dir: C:\Users\Dang83\AppData\Roaming\MySQL\Workbench
	open at start: 
	open type: query
	run at startup: 
	run type: 
	Force SW rendering: No
	Force OpenGL: No
	quit when done: No
13:17:26 [INF][      WBContext]: WbContext::init
13:17:27 [INF][            grt]: Scanning module directory C:\Users\Dang83\AppData\Roaming\MySQL\Workbench\modules.	
13:17:27 [INF][            grt]: Scanning module directory ..	
13:17:28 [INF][            grt]: Scanning module directory C:\Program Files\MySQL\MySQL Workbench 6.3 CE/modules.	
13:17:34 [INF][            WBA]: Looking for extension modules for WBA...
13:17:34 [INF][            WBA]: 0 extension modules found
13:17:35 [WRN][            grt]: C:\Program Files\MySQL\MySQL Workbench 6.3 CE\data/table_templates.xml:21: link 'com.mysql.rdbms.mysql.datatype.timestamp' <object db.SimpleDatatype> key=simpleType could not be resolved
13:17:35 [WRN][            grt]: C:\Program Files\MySQL\MySQL Workbench 6.3 CE\data/table_templates.xml:106: link 'com.mysql.rdbms.mysql.datatype.varchar' <object db.SimpleDatatype> key=simpleType could not be resolved
13:17:35 [WRN][            grt]: C:\Program Files\MySQL\MySQL Workbench 6.3 CE\data/table_templates.xml:229: link 'com.mysql.rdbms.mysql.datatype.int' <object db.SimpleDatatype> key=simpleType could not be resolved
13:17:35 [INF][            grt]: Scanning module directory C:\Program Files\MySQL\MySQL Workbench 6.3 CE.	
13:17:35 [WRN][            grt]: C:\Users\Dang83\AppData\Roaming\MySQL\Workbench\connections.xml:26: link '{4862063E-13C9-434C-BD95-88A0B2DA79AE}' <object GrtObject> key=owner could not be resolved
13:17:36 [INF][      WBContext]: System info:
 	MySQL Workbench Community (GPL) for Windows version 6.3.6 CE build 511 (64 bit)
	Configuration Directory: C:\Users\Dang83\AppData\Roaming\MySQL\Workbench
	Data Directory: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	Cairo Version: 1.10.2
	OS: Microsoft Windows 7 Home Premium Service Pack 1
	CPU: 3x AMD Phenom(tm) II N830 Triple-Core Processor, 6.0 GiB RAM
	Active video adapter ATI Mobility Radeon HD 5650      
	Installed video RAM: 1024 MB
	Current video mode: 1366 x 768 x 4294967296 colori
	Used bit depth: 32
	Driver version: 8.713.3.3000
	Installed display drivers: atiu9p64.dll,atiuxp64.dll,atiuxp64.dll,atiu9pag,atiuxpag,atiuxpag,atiumdva,atiumd6a.cap,atitmm64.dll
	Current user language: Italiano (Italia)

13:17:36 [INF][    WQE backend]: Found auto-save workspace C:\Users\Dang83\AppData\Roaming\MySQL\Workbench\sql_workspaces\Dang83-1.autosave
13:17:36 [INF][      Workbench]: UI is up
13:17:37 [INF][      WBContext]: Opening SQL Editor window to 'Local instance MySQL56'...
13:17:37 [INF][      SqlEditor]: Opened connection 'Local instance MySQL56' to MySQL Community Server (GPL) version 5.7.12-log
13:17:40 [INF][     AutoCCache]: Initializing autocompletion cache for Local_instance_MySQL56
13:17:43 [INF][        WQE.net]: Launching SQL IDE
13:17:45 [INF][      Workbench]: Running the application
13:17:45 [INF][        WQE.net]: SQL IDE UI is ready
13:18:10 [INF][wb_admin_control.py:server_polling_thread:540]: Monitoring thread running...
13:18:13 [ERR][       pymforms]: Unhandled exception in Python code: object of type 'NoneType' has no len()
<traceback object at 0x0000000022698E48>

How to repeat:
I try to reinstall MySQLServer only. First time that I have used Workbench for create an user and import a database(with a Java application), the server is ok. The second time I have this error : Unhandled exception in Python code: object of type 'NoneType' has no len(). After this I have this actions 2 times with same results.
The same database (with same user) in the other machine works fine. The machine isn't directly connects, the dump is upload from dropbox.

Suggested fix:
I have supposed that can be a problem with import with different version(database dump is created with different machines) but this time MySql has same version in this machines. I tried revoke privilege at the user created too.
[17 Jun 2016 12:33] MySQL Verification Team
Please try version 6.3.7.
[19 Jun 2016 6:01] Daniele Gessa
I have tried to install this version but I have same problem. Is the problem in the server version?
[21 Jun 2016 16:52] Daniele Gessa
I have downgraded to version server 5.6.24 and Workbench 6.3.6 and there isn't problems, in the other machine too. I suppose that the problem is somewhere in server 5.7 version...
[21 Oct 2016 16:43] MySQL Verification Team
Please try the new version 6.3.8. Thanks.

http://dev.mysql.com/downloads/workbench/
[22 Nov 2016 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".