Bug #56960 MySQL Workbench 5.2.28 CE Win32 Crash on launch
Submitted: 23 Sep 2010 4:00 Modified: 10 Jun 2013 14:03
Reporter: Victoria Khodorkovsky Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.28, 5.2.29 OS:Windows (XP)
Assigned to: CPU Architecture:Any

[23 Sep 2010 4:00] Victoria Khodorkovsky
Description:
I downloaded and installed mysql-workbench-gpl-5.2.28-win32.msi on an WinXP/Pro/SP3 system. When I try to run it, and it crashes immediately after showing the splash screen. I get a window titled "MySQL Workbench" that says, "MySQL Workbench has encountered a problem and needs to close." with a single "Close" button. Uninstall/Install and multiple reboots do not help.
I was not able to determine the reason for the crash.

How to repeat:
1. Install Workbench 5.2.28 on XP SP3 system
2. Launch it
3. Crash happens right after initial screen

Suggested fix:
Add debug button for determining what cases the crash.
[23 Sep 2010 11:57] Johannes Taxacher
Hi Victoria,

was this the first time you installed WB on this machine or have there been previous versions installed?
could you try launching the program adding the cmdline parameter 
  -swrendering
to check if the problem still persists?
Is it a 32 or 64bit winXP?
thanks in advance
[23 Sep 2010 17:25] Victoria Khodorkovsky
I've tried right click to bring up debug information, as was sugested by Mike Lischke, but it does not bring up any pop-up. 
Also I've tried start the app from the command line with option -swrendering, as Johannes Taxacher suggested in the bug comment - same result!
Answering Johannes questions, my system is 32-bit XP, and I did have previous version of Workbench installed on this system before.
Please, give me more suggestions!
Thanks in advance.

-- Vicky
[23 Sep 2010 17:32] Victoria Khodorkovsky
Here is some debug info - I've got it in command line after I've closed the error pop-up window:

C:\Program Files\MySQL\MySQL Workbench 5.2 CE>MySQLWorkbench.exe -swrendering

C:\Program Files\MySQL\MySQL Workbench 5.2 CE>
Unhandled Exception: System.InvalidOperationException: Nullable object must have
 a value.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resour
ce)
   at ScintillaNet.Configuration.Configuration.readLexerKeywords(XmlReader reade
r)
   at ScintillaNet.Configuration.Configuration.readLexer(XmlReader reader)
   at ScintillaNet.Configuration.Configuration.readLanguage(XmlReader reader)
   at ScintillaNet.Configuration.Configuration.Load(XmlReader reader)
   at ScintillaNet.Configuration.Configuration.Load(Stream inStream, Boolean use
XmlReader)
   at ScintillaNet.Configuration.Configuration..ctor(Stream inStream, String lan
guage, Boolean useXmlReader)
   at ScintillaNet.Configuration.ConfigurationManager.Configure()
   at ScintillaNet.Configuration.ConfigurationManager.set_Language(String value)

   at setup_editor(Scintilla scintilla, Boolean use_tabs, Int32 indentation, Str
ing language)
   at MySQL.Forms.CodeEditorImpl.create(CodeEditor* self)
   at MySQL.MCallback1<bool\,mforms::CodeEditor \*>.cpp_callback(CodeEditor* arg
1)
   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)
[24 Sep 2010 12:27] MySQL Verification Team
How much RAM has your box?. In prior version have you checked the option Automatically Reopen Previous Model When started?. Thanks in advance.
[24 Sep 2010 23:54] Victoria Khodorkovsky
My RAM is 2GB. Regarding the previous version, I have removed previous setting directory C:\Documents and Settings\vpk\Application Data\MySQL\Workbench. On startup the new one has been created, but it still fails with the same error.
[8 Oct 2010 18:52] TemiYemi Agbetunsin
I am experiencing the same problem.
[13 Oct 2010 12:22] Miranda Stobbe
I have a similar problem.
I also work on Windows XP and I had Workbench 5.2.21 installed, which worked perfect until today. It did not even matter I had previous installations... I installed 5.2.29 to try to solve it, but same error:

EventType : clr20r3     P1 : mysqlworkbench.exe     P2 : 5.2.29.6756     
P3 : 4cb2cc03     P4 : mscorlib     P5 : 2.0.0.0     P6 : 4be90358     P7 : 2531
P8 : 0     P9 : system.io.filenotfoundexception

Any comments will be very welcome.

Miranda
[14 Oct 2010 9:56] Valeriy Kravchuk
All reporters,

Please, check if starting Workbench from the command line with -swrendering option makes any difference.
[21 Oct 2010 15:55] Tharsan Bhuvanendran
I am currently experiencing the same problem. I've tried using versions 5.2.29, 5.2.28 and 5.1.18.

Using the -swrendering switch doesn't help either.
[23 Oct 2010 12:36] David Goldfarb
Same issue.

First time install of MySQL Workbench (v 5.2.29) on Windows XP SP2 with 2GB of RAM.

I get the splash screen, and then it crashes with the following Java Stack.  It appears that it is trying to bring up the first time users setup dialog and is trying in import settings (which don't exist, because this is the first run)

There are only three files under Application Data:

C:/Documents and Settings/username/Application Data/MySQL/Workbench

./libraries
./modules
./scripts
./snippets
./snippets/DB Management.txt
./snippets/SQL DDL Statements.txt
./snippets/SQL DML Statements.txt

Unhandled Exception: System.InvalidOperationException: Nullable object must have
 a value.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resour
ce)
   at ScintillaNet.Configuration.Configuration.readLexerKeywords(XmlReader reade
r)
   at ScintillaNet.Configuration.Configuration.readLexer(XmlReader reader)
   at ScintillaNet.Configuration.Configuration.readLanguage(XmlReader reader)
   at ScintillaNet.Configuration.Configuration.Load(XmlReader reader)
   at ScintillaNet.Configuration.Configuration.Load(Stream inStream, Boolean use
XmlReader)
   at ScintillaNet.Configuration.Configuration..ctor(Stream inStream, String lan
guage, Boolean useXmlReader)
   at ScintillaNet.Configuration.ConfigurationManager.Configure()
   at ScintillaNet.Configuration.ConfigurationManager.set_Language(String value)

   at setup_editor(Scintilla scintilla, Boolean use_tabs, Int32 indentation, Str
ing language)
   at MySQL.Forms.CodeEditorImpl.create(CodeEditor* self)
   at MySQL.MCallback1<bool\,mforms::CodeEditor \*>.cpp_callback(CodeEditor* arg
1)
   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)

It appears it it is trying to read an XML file which may not exist....
[5 Nov 2010 17:36] Johannes Taxacher
can you try to download and launch the noinstall-zip package (just unzip it anywhere and run it).
thanks in advance
[5 Nov 2010 17:40] Johannes Taxacher
marked Bug #57115 as duplicate of this one
[6 Dec 2010 0: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".
[7 Oct 2011 7:11] Valeriy Kravchuk
Please, check if the same problem still happens with a newer version, 5.2.35.
[1 Dec 2011 7: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".
[21 May 2013 8:09] Soumya Banerjee
[Copied from Bug#37418...]

Just wanted to post my findings if at all that helps anyone experiencing this issue.
I have non-install (zip) version of MySQL 5.2.39 running on Windows XP SP3 inside VirtualBox 4.2.12. I was getting the very same error upon trying to run MySQLWorkbench.exe. I did have .NET versions 2.0 to 4.0 installed on my system.

While I was clueless, my attention turned to python executable (python.exe) in the installation folder. Guess what happened, when I tried running it. It said it couldn't find msvcrt100.dll. Source of error was clear (at least for me). All I did  - installed Microsoft VC Runtime 2010 SP1 x86[http://www.microsoft.com/en-us/download/details.aspx?id=8328]. 

Voila! MySQL Workbench now works....
[10 Jun 2013 14:03] MySQL Verification Team
I couldn't repeat with version 5.2.47.