Bug #60129 Crashes on startup
Submitted: 15 Feb 2011 7:58 Modified: 26 Mar 2011 14:41
Reporter: Brian Bailey Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.31.7115 OS:Windows (Windows7 64bit)
Assigned to: CPU Architecture:Any
Tags: crash, startup, windows7

[15 Feb 2011 7:58] Brian Bailey
Description:
Workbench crashes at the splash screen on windows 7 64bit.

When I run workbench from the command line it gives this message:

C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE>
Unhandled Exception: System.AccessViolationException: Attempted to read or write
 protected memory. This is often an indication that other memory is corrupt.
   at wb.WBContextUI.init(WBContextUI* , WBFrontendCallbacks* , WBOptions* )
   at MySQL.Workbench.WbContext.init(WbFrontendCallbacks callbacks, WbOptions op
tions)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)

I tried renaming the wb_options.xml, and wb_state.xml in (this was suggested): C:\Users\MyUserName\AppData\Roaming\MySQL\Workbench 

but still crashes.

I recently installed VisualStudio 2008 SP1 Redistributable, not sure if this has anything to do with it. I also recently installed SetupFactory 9.

How to repeat:
Start the application
[15 Feb 2011 8:16] Brian Bailey
Just checked the windows event log and get this:

Faulting application name: MySQLWorkbench.exe, version: 5.2.31.7115, time stamp: 0x4d04ebea
Faulting module name: nvd3d9wrap.dll, version: 8.17.12.6658, time stamp: 0x4d27c353
Exception code: 0xc0000005
Fault offset: 0x00007030
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13

so I tried the -swrender switch but that didn't work. 
I have a Nvidia Geforce GT 435M, Driver version 266.58
[15 Feb 2011 14:45] Joe T
This would appear to be a duplicate of #60115

Looks like several people have been having this problem, specifically on Win7 x64.

Don't think it's video drivers (though allegedly that worked for an ATI user). i have NVidia as well, and drivers downloaded yesterday didn't fix it for me.
[16 Feb 2011 11:54] Sebastian Felix
Any solution to this bug? I have the same problem with Windows XP 32 bits.
[20 Feb 2011 19:20] Kevin Campbell
I have this problem on windows vista
[20 Feb 2011 19:34] Kevin Campbell
Ok, I found a workaround for me. I'm running on Vista 32bit. Instead of click on "New Server Instance" Then clicked on "New" and named it "localhost". I went to "Manage Server Instances" and from there "Manage Connections" then "New". I then filled in all my database login info on the "Parameters" tab then clicked "Close"

In the box labeled "Connection" make sure the connection you just created is selected. I then clicked on "Connect and Check" I then clicked on the tab "System Profile" this information by default was wrong for my setup. After updating this information I was then able to go back to the start up screen and see my server and just double click on it. I hope this works for others.
[26 Feb 2011 23:14] mike schrempp
I just loaded workbench and have the same problem (exact same message as the top of the thread when running from the command prompt. I an running Win 7 on a Lenovo T410 laptop, which has an intel graphics chipset. 

Wondering if the fact that I'm running 32bit ODBC connector, and MYSQL query browser and 64bit MySQL server. Not enough tech knowledge to know if that's a stupid question or not.
[14 Mar 2011 18:26] Rafael Antonio Bedoy Torres
Hi Brian,

I'm trying to reproduce your bug using the same OS you mentioned on your description but I'm able to open the application by command line.
C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE>MySQLWorkbench.exe

Please, send the results of Help > System Info menu item. What version of server are you working with?
[24 Mar 2011 20:13] Hugh Redmon
I get a similar error and WorkBench crashes  Here's the Windows Event Log:

Event Type:	Error
Event Source:	.NET Runtime 2.0 Error Reporting
Event Category:	None
Event ID:	1000
Date:		3/24/2011
Time:		3:30:31 PM
User:		N/A
Computer:	HQWS44561
Description:
Faulting application mysqlworkbench.exe, version 5.2.31.7115, stamp 4d04ebea, faulting module libmysql.dll, version 0.0.0.0, stamp 4b8c387c, debug? 0, fault address 0x0003794c.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 00 70 00 70 00 6c 00   A.p.p.l.
0008: 69 00 63 00 61 00 74 00   i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00   i.o.n. .
0018: 46 00 61 00 69 00 6c 00   F.a.i.l.
0020: 75 00 72 00 65 00 20 00   u.r.e. .
0028: 20 00 6d 00 79 00 73 00    .m.y.s.
0030: 71 00 6c 00 77 00 6f 00   q.l.w.o.
0038: 72 00 6b 00 62 00 65 00   r.k.b.e.
0040: 6e 00 63 00 68 00 2e 00   n.c.h...
0048: 65 00 78 00 65 00 20 00   e.x.e. .
0050: 35 00 2e 00 32 00 2e 00   5...2...
0058: 33 00 31 00 2e 00 37 00   3.1...7.
0060: 31 00 31 00 35 00 20 00   1.1.5. .
0068: 34 00 64 00 30 00 34 00   4.d.0.4.
0070: 65 00 62 00 65 00 61 00   e.b.e.a.
0078: 20 00 69 00 6e 00 20 00    .i.n. .
0080: 6c 00 69 00 62 00 6d 00   l.i.b.m.
0088: 79 00 73 00 71 00 6c 00   y.s.q.l.
0090: 2e 00 64 00 6c 00 6c 00   ..d.l.l.
0098: 20 00 30 00 2e 00 30 00    .0...0.
00a0: 2e 00 30 00 2e 00 30 00   ..0...0.
00a8: 20 00 34 00 62 00 38 00    .4.b.8.
00b0: 63 00 33 00 38 00 37 00   c.3.8.7.
00b8: 63 00 20 00 66 00 44 00   c. .f.D.
00c0: 65 00 62 00 75 00 67 00   e.b.u.g.
00c8: 20 00 30 00 20 00 61 00    .0. .a.
00d0: 74 00 20 00 6f 00 66 00   t. .o.f.
00d8: 66 00 73 00 65 00 74 00   f.s.e.t.
00e0: 20 00 30 00 30 00 30 00    .0.0.0.
00e8: 33 00 37 00 39 00 34 00   3.7.9.4.
00f0: 63 00 0d 00 0a 00         c.....  

I am using WorkBench 5.2.31 CE Revision 7115 on Win XP Pro.
[24 Mar 2011 21:38] Hugh Redmon
Here's the output when I try to run WorkBench on a 64-bit Windows Server from the command line.

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\h_redmon>"C:\Program Files (x86)\MySQL\MySQL Workbench
 5.2 CE\MySQLWorkbench.exe"

C:\Documents and Settings\h_redmon>
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'dwmapi.dll
': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

   at MySQL.Utilities.SysUtils.Win32.DwmIsCompositionEnabled()
   at MySQL.Utilities.ControlUtilities.IsCompositionEnabled()
   at MySQL.GUI.Workbench.MainForm.AdjustGlassFrame(Int32 toolbarHeight)
   at MySQL.GUI.Workbench.MainForm.DockDocument(ITabDocument document, Boolean m
ain, Boolean activate)
   at MySQL.GUI.Workbench.MainForm.ApplicationCommand(AppCommand command, AppVie
wImpl view, String str)
   at MySQL.Forms.AppImpl.app_command_wrapper(basic_string<char\,std::char_trait
s<char>\,std::allocator<char> >* , AppCommand command, AppView* view, basic_stri
ng<char\,std::char_traits<char>\,std::allocator<char> >* str)
   at MySQL.Forms.AppImpl.dock_view(App* app, AppView* view, basic_string<char\,
std::char_traits<char>\,std::allocator<char> >* position)
   at MySQL.MCallback3<void\,mforms::App \*\,mforms::AppView \*\,std::basic_stri
ng<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(A
pp* a1, AppView* a2, basic_string<char\,std::char_traits<char>\,std::allocator<c
har> >* a3)
   at wb.WBContextUI.init(WBContextUI* , WBFrontendCallbacks* , WBOptions* )
   at MySQL.Workbench.WbContext.init(AppImpl application, WbOptions options, Voi
dStrUIFormDelegate create_main_form_view)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)
[26 Mar 2011 10:07] Valeriy Kravchuk
Please, check if the same problem happens with a newer version, 5.2.33b.
[26 Mar 2011 14:41] Alfredo Kojima
This is a duplicate of bug #60412
[6 Apr 2011 19:38] Marcelo da Silva Monteiro
in my case it´s still crashing at startup
[22 Feb 2012 8:45] Gurminder Shokar
Issue: I have below error during startup Workbench on window 7 64 bit

c:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE>
Unhandled Exception: System.AccessViolationException: Attempted to read or write
 protected memory. This is often an indication that other memory is corrupt.
   at wb.WBContextUI.init(WBContextUI* , WBFrontendCallbacks* , WBOptions* )
   at MySQL.Workbench.WbContext.init(WbFrontendCallbacks callbacks, WbOptions op
tions)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)

Solution: this is work for me
 Rename the caused graphics driver dll file 
		File: C:\Windows\SysWOW64\aticfx32.dll 
		Rename: C:\Windows\SysWOW64\aticfx321.dll