Bug #60412 Startup failure
Submitted: 10 Mar 2011 8:54 Modified: 15 Jun 2011 20:08
Reporter: Salvatore Piccione Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.32 OS:Windows (Server 2003 R2 Service Pack 2)
Assigned to: CPU Architecture:Any

[10 Mar 2011 8:54] Salvatore Piccione
Description:
The startup of the application fails: the Splash screen appears for some seconds , then it disappears and the application window is not shown.
MS Event Log reports the followind .NET Error:
Event Type:	Error
Event Source:	.NET Runtime
Event Category:	None
Event ID:	1026
Date:		3/10/2011
Time:		9:43:07 AM
User:		N/A
Computer:	WIN2003
Description:
Application: MySQLWorkbench.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
Stack:
   at MySQL.Utilities.SysUtils.Win32.DwmIsCompositionEnabled()
   at MySQL.Utilities.ControlUtilities.IsCompositionEnabled()
   at MySQL.GUI.Workbench.MainForm.AdjustGlassFrame(Int32)
   at MySQL.GUI.Workbench.MainForm.DockDocument(MySQL.Controls.ITabDocument, Boolean, Boolean)
   at MySQL.GUI.Workbench.MainForm.ApplicationCommand(MySQL.Forms.AppCommand, MySQL.Forms.AppViewImpl, System.String)
   at MySQL.Forms.AppImpl.app_command_wrapper(std.basic_string<char,std::char_traits<char>,std::allocator<char> >*, MySQL.Forms.AppCommand, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at MySQL.Forms.AppImpl.dock_view(mforms.App*, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at MySQL.MCallback3<void\,mforms::App \*\,mforms::AppView \*\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(mforms.App*, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at <Module>.wb.WBContextUI.init(wb.WBContextUI*, wb.WBFrontendCallbacks*, wb.WBOptions*)
   at MySQL.Workbench.WbContext.init(MySQL.Forms.AppImpl, MySQL.Workbench.WbOptions, VoidStrUIFormDelegate)
   at MySQL.GUI.Workbench.Program.Main(System.String[])

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

How to repeat:
1. Install MySQL Workbench 5.2.32
2. Double click on the application icon to start it
[10 Mar 2011 8:57] Salvatore Piccione
The Application Error Event Log

Attachment: MySQL Workbench 5.2.32 Application Error.txt (text/plain), 967 bytes.

[10 Mar 2011 8:57] Salvatore Piccione
The .NET Error Event Log

Attachment: MySQL Workbench 5.2.32 .NET Error.txt (text/plain), 1.70 KiB.

[10 Mar 2011 18:29] Alfredo Kojima
Do you have the .NET 4 framework installed?
[13 Mar 2011 17:16] Salvatore Piccione
Yes, I do
[15 Mar 2011 3:16] Tarkan Shahho
I am also having this problem. Is there a fix for it?
[15 Mar 2011 10:42] Johannes Taxacher
Bug #60419 and Bug #60444 have been marked as duplicate of this one
[22 Mar 2011 17:49] Salvatore Piccione
Also MySQLWorkbench 5.2.33b has this issue.
[22 Mar 2011 17:50] Salvatore Piccione
.Net Error during MySQL Workbench 5.2.33b startup

Attachment: MySQL Workbench 5.2.33b .NET Error.txt (text/plain), 1.71 KiB.

[22 Mar 2011 17:51] Salvatore Piccione
.Net Runtime Error during MySQL Workbench 5.2.33b startup

Attachment: MySQL Workbench 5.2.33b .NET Runtime Error.txt (text/plain), 1.72 KiB.

[24 Mar 2011 1:27] Alan Capesius
Fails on XP x64 as well.  

This appears to be a dependency on dwmapi.dll which is only available in Vista or higher.
[26 Mar 2011 14:41] Alfredo Kojima
bug #60129 is a duplicate
[27 Mar 2011 6:29] Eric Moore
Having the same problem. The non install version doesn't work either. This is a real issue. Any ETA on when it might be fixed?
[6 Apr 2011 9:14] Ivan Döpp
Hello,

i've got the same error witch MySQL Workbench 5.2.33 and the newest 5.2.33b.
I could not resolve that problem by trying to reinstall .Net Framework 4 and MySQL Workbench.

MySQL Workbench 5.2.29 works fine!

I could'nt find this older Version on mysql.com so i had to download from a Non-MySQL Website.

Best regards
Ivan
[9 Apr 2011 12:27] Ernest Wilson II
Same problem here too.:
MySQL Workbench shows splash screen for a few seconds and then crashes / goes away.
I tried uninstalling, rebooting, reinstalling, rebooting, no help.

Installed: mysql-workbench-gpl-5.2.33b-win32.msi
Platform: Windows 2003 server 32bit
I have Microsoft .NET versions:
- .NET 2.0 SP2
- .NET 3.0 SP2
- .NET 3.5 SP1
- .NET 4 Client
- .NET 4 Extended

The Windows event log shows two (2) Errors:

1. Event ID: 5000
   Source: .NET Runtime 4.0 Error 
EventType clr20r3, P1 mysqlworkbench.exe, P2 5.2.33.7508, P3 4d820632, P4 base.windows, P5 1.0.0.0, P6 4d82012f, P7 f, P8 9, P9 system.dllnotfoundexception, P10 NIL.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp

2. Event ID: 1025
   Source: .NET Runtime
Application: MySQLWorkbench.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
Stack:
   at MySQL.Utilities.SysUtils.Win32.DwmIsCompositionEnabled()
   at MySQL.Utilities.ControlUtilities.IsCompositionEnabled()
   at MySQL.GUI.Workbench.MainForm.AdjustGlassFrame(Int32)
   at MySQL.GUI.Workbench.MainForm.DockDocument(MySQL.Controls.ITabDocument, Boolean, Boolean)
   at MySQL.GUI.Workbench.MainForm.ApplicationCommand(MySQL.Forms.AppCommand, MySQL.Forms.AppViewImpl, System.String)
   at MySQL.Forms.AppImpl.app_command_wrapper(std.basic_string<char,std::char_traits<char>,std::allocator<char> >*, MySQL.Forms.AppCommand, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at MySQL.Forms.AppImpl.dock_view(mforms.App*, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at MySQL.MCallback3<void\,mforms::App \*\,mforms::AppView \*\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(mforms.App*, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at <Module>.wb.WBContextUI.init(wb.WBContextUI*, wb.WBFrontendCallbacks*, wb.WBOptions*)
   at MySQL.Workbench.WbContext.init(MySQL.Forms.AppImpl, MySQL.Workbench.WbOptions, VoidStrUIFormDelegate)
   at MySQL.GUI.Workbench.Program.Main(System.String[])
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
[9 Apr 2011 12:54] Ernest Wilson II
A little more research and looking at the error message:
system.dllnotfoundexception

Leads me to think it means:
system.dll
not
found
exception

In the raw data I see:
0068: 62 00 61 00 73 00 65 00   b.a.s.e.
0070: 2e 00 77 00 69 00 6e 00   ..w.i.n.
0078: 64 00 6f 00 77 00 73 00   d.o.w.s.

Which I think means:
base.windows.dll

I see this DLL located here:
C:\Program Files\MySQL\MySQL Workbench 5.2 CE

I tried adding this location to my PATH
and even copying it to \Windows\System32
But, I still see the same errors in the log.
It looks like Workbench and/or .NET can't find a DLL it wants.
[11 Apr 2011 16:00] Alan Oshry
This issue seems to occur as of version 5.2.32. I am able to use the previous  version 5.2.31a without issue.
[11 Apr 2011 17:10] Alfredo Kojima
There is a test binary that is meant to fix this issue at mysql-workbench-gpl-snapshot-5.2.34.7605-win32-noinstall.zip:
As this is a development test binary, please only use it to confirm whether it fixes the issue only, not for production. A new release containing the fix will be available later.
[13 Apr 2011 2:38] Alfredo Kojima
bug #60555 is a duplicate
[13 Apr 2011 2:39] Alfredo Kojima
bug #60555 is a duplicate
[13 Apr 2011 7:49] Salvatore Piccione
Hi Alfredo,

thanks for your support. Where can we download mysql-workbench-gpl-snapshot-5.2.34.7605-win32-noinstall.zip?
[14 Apr 2011 9:09] Tanel Abel
Event Type:	Error
Event Source:	.NET Runtime
Event Category:	None
Event ID:	1026
Date:		14.04.2011
Time:		11:13:36
User:		N/A
Computer:	
Description:
Application: MySQLWorkbench.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
Stack:
   at MySQL.Utilities.SysUtils.Win32.DwmIsCompositionEnabled()
   at MySQL.Utilities.ControlUtilities.IsCompositionEnabled()
   at MySQL.GUI.Workbench.MainForm.AdjustGlassFrame(Int32)
   at MySQL.GUI.Workbench.MainForm.DockDocument(MySQL.Controls.ITabDocument, Boolean, Boolean)
   at MySQL.GUI.Workbench.MainForm.ApplicationCommand(MySQL.Forms.AppCommand, MySQL.Forms.AppViewImpl, System.String)
   at MySQL.Forms.AppImpl.app_command_wrapper(std.basic_string<char,std::char_traits<char>,std::allocator<char> >*, MySQL.Forms.AppCommand, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at MySQL.Forms.AppImpl.dock_view(mforms.App*, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at MySQL.MCallback3<void\,mforms::App \*\,mforms::AppView \*\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(mforms.App*, mforms.AppView*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
   at <Module>.wb.WBContextUI.init(wb.WBContextUI*, wb.WBFrontendCallbacks*, wb.WBOptions*)
   at MySQL.Workbench.WbContext.init(MySQL.Forms.AppImpl, MySQL.Workbench.WbOptions, VoidStrUIFormDelegate)
   at MySQL.GUI.Workbench.Program.Main(System.String[])

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
[18 Apr 2011 17:23] Mr No
Not resolved BUG.

1 Remove latest 5.2.33b
2 Install NET 3.51
3 Install 5.2.31a Work FINE

Download previous release this 
http://download.softagency.net/mysql/Downloads/MySQLGUITools/
[25 Apr 2011 13:54] Leo Heska
Mr. No's 3-step reinstall solution worked perfectly for me.

The .NET install was so fast that I wondered if anything had actually happened.

Thanks!
[25 Apr 2011 13:55] Leo Heska
Mr. No's 3-step reinstall solution worked perfectly for me.

The .NET install was so fast that I wondered if anything had actually happened.

Thanks!
[25 Apr 2011 22:43] Alfredo Kojima
bug #60969 is a duplicate
[27 Apr 2011 15:59] Deborah Dube
Hi, same .net 4 error in event log, uninstall, reinstall etc. Platform Windows 2003 svr x64 sp2/connected to via RDC from 32bit xp client.

where can we download the fix: 
mysql-workbench-gpl-snapshot-5.2.34.7605-win32-noinstall.zip ?
[4 May 2011 0:44] Alfredo Kojima
Test binary is at ftp://ftp.mysql.com/pub/mysql/download/gui-tools/mysql-workbench-gpl-snapshot-5.2.34.7605-...
[4 May 2011 7:47] Salvatore Piccione
Alfredo, I tried to connect to that link using FileZilla but it gives me an error 500. Please, find below the FTP connection log:

Stato:	Risoluzione dell'indirizzo IP  ftp.mysql.com in corso
Stato:	Connessione a 192.9.72.98:21...
Stato:	Connessione stabilita, in attesa del messaggio di benvenuto...
Risposta:	220 Welcome to MySQL AB's FTP service
Comando:	USER anonymous
Risposta:	331 Please specify the password.
Comando:	PASS **************
Risposta:	230 Login successful.
Stato:	Connesso
Stato:	Lettura elenco cartelle...
Comando:	CWD /pub/mysql/download/gui-tools
Risposta:	250 Directory successfully changed.
Comando:	TYPE I
Risposta:	200 Switching to Binary mode.
Comando:	PASV
Risposta:	500 OOPS: vsf_sysutil_bind
Comando:	PORT 172,16,152,187,9,217
Risposta:	500 OOPS: child died
Errore:	Non è stato possibile leggere il contenuto della cartella
Errore:	Connessione chiusa dal server
Status:	Resolving address of ftp.mysql.com
Status:	Connecting to 192.9.72.98:21...
Status:	Connection established, waiting for welcome message...
Response:	220 Welcome to MySQL AB's FTP service
Command:	USER anonymous
Response:	331 Please specify the password.
Command:	PASS **************
Response:	230 Login successful.
Status:	Connected
Status:	Retrieving directory listing...
Command:	CWD /pub/mysql/download/gui-tools/mysql-workbench-gpl-snapshot-5.2.34.7605-win32-noinstall.zip
Response:	550 Failed to change directory.
Command:	PWD
Response:	257 "/"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	500 OOPS: vsf_sysutil_bind
Command:	PORT 172,16,152,187,9,219
Response:	500 OOPS: child died
Error:	Failed to retrieve directory listing
Error:	Connection closed by server
[4 May 2011 22:33] Keith Cottrell
I tried the test binary and I still get the same error
[5 May 2011 0:18] Keith Cottrell
I was able to correct this issue by reinstalling the Ariel font located in the C:\Windows\winsxs\amd64_microsoft-windows-font-truetype-arial_31bf3856ad364e35_6.1.7600.16385_none_ce7861d6c70c1a93 directory.
[6 May 2011 13:36] MySQL Verification Team
http://bugs.mysql.com/bug.php?id=61079 marked as duplicate.
[7 Jun 2011 0:20] Tim Oliver
I received the same error on a machine running Windows XP (64-bit) when trying to run the software from a different user, an administrator. The error resolved when the Compatibility settings for the shortcut properties in the start menu for all users was modified by checking the box to run in compatibility mode for Windows XP.
[15 Jun 2011 20:08] Paul DuBois
Noted in 5.2.34 changelog.

Workbench tries to determine whether it can use Aero, but did not 
correctly check the platform. On Windows Server 2003, a call was made
to a non-existing DLL, causing a .NET crash.