Bug #62754 just installed, can not run workbench
Submitted: 16 Oct 2011 2:36 Modified: 16 Oct 2011 20:57
Reporter: Joseph Ware Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Utilities Severity:S1 (Critical)
Version: OS:Windows (7)
Assigned to: CPU Architecture:Any

[16 Oct 2011 2:36] Joseph Ware
Description:
MySQL Workbench has encountered a problem
The type initializer for 'ScintillaNet.PageInformation' threw an exception.

We are sorry for the inconvenience but an unexpected exception has been raised by one of the MySQL Workbench modules. In order to fix this issue we would kindly ask you to file a bug report. You can do that by pressing the [Report Bug] button below. 

Please make sure to include a detailed description of your actions that lead to this problem.

Thanks a lot for taking the time to help us improve MySQL Workbench!

The MySQL Workbench Team

How to repeat:
Opening / Running the Workbench
[16 Oct 2011 7:41] Joseph Ware
uninstalled and reinstalled, downloaded again, and still having same issue
[16 Oct 2011 7:44] Valeriy Kravchuk
Do you have .Net 4 environment and 32-bit VS 2010 runtime installed?

When you'll see this error again, please, right click somewhere in the error dialog box with no text and use Copy stack trace to clipboard context menu item. Send stack trace to this report.
[16 Oct 2011 8:20] Joseph Ware
Exception = System.TypeInitializationException
Message = The type initializer for 'ScintillaNet.PageInformation' threw an exception.
FullText = System.TypeInitializationException: The type initializer for 'ScintillaNet.PageInformation' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize)
   at ScintillaNet.PageInformation..cctor()
   --- End of inner exception stack trace ---
   at ScintillaNet.HeaderInformation..ctor(PageInformationBorder eBorder, InformationType eLeft, InformationType eCenter, InformationType eRight)
   at ScintillaNet.PageSettings..ctor()
   at ScintillaNet.PrintDocument..ctor(Scintilla oScintillaControl)
   at ScintillaNet.Scintilla..ctor(String sciLexerDllName)
   at ScintillaNet.Scintilla..ctor()
   at MySQL.Forms.ObjectImpl.create<ScintillaNet::Scintilla>(Object* backend, ObjectImpl wrapper)
   at MySQL.Forms.CodeEditorImpl.create(CodeEditor* self)
   at MySQL.MCallback1<bool\,mforms::CodeEditor \*>.cpp_callback(CodeEditor* arg1)
   at wb.WBContextUI.init(WBContextUI* , WBFrontendCallbacks* , WBOptions* )
   at MySQL.Workbench.WbContext.init(AppImpl application, WbOptions options, VoidStrUIFormDelegate create_main_form_view)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)
[16 Oct 2011 8:23] Joseph Ware
.NET 4 and VS i am not sure of, I am completely new to PHP and MySQL, can you provide links to these and i will get them :)
[16 Oct 2011 8:43] Joseph Ware
Just installed .Net 4
[16 Oct 2011 8:53] Joseph Ware
ytied looking for the VS 2010 Runtime but have found differences, will wait for a link to make sure i have the right one
[16 Oct 2011 15:15] Alfredo Kojima
This is a duplicate of bug #62529
[16 Oct 2011 16:26] Joseph Ware
.Net 4 installed, VS 2010 runtime installed, uninstalled and reinstalled workbench, problem persists

Exception = System.TypeInitializationException
Message = The type initializer for 'ScintillaNet.PageInformation' threw an exception.
FullText = System.TypeInitializationException: The type initializer for 'ScintillaNet.PageInformation' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize)
   at ScintillaNet.PageInformation..cctor()
   --- End of inner exception stack trace ---
   at ScintillaNet.HeaderInformation..ctor(PageInformationBorder eBorder, InformationType eLeft, InformationType eCenter, InformationType eRight)
   at ScintillaNet.PageSettings..ctor()
   at ScintillaNet.PrintDocument..ctor(Scintilla oScintillaControl)
   at ScintillaNet.Scintilla..ctor(String sciLexerDllName)
   at ScintillaNet.Scintilla..ctor()
   at MySQL.Forms.ObjectImpl.create<ScintillaNet::Scintilla>(Object* backend, ObjectImpl wrapper)
   at MySQL.Forms.CodeEditorImpl.create(CodeEditor* self)
   at MySQL.MCallback1<bool\,mforms::CodeEditor \*>.cpp_callback(CodeEditor* arg1)
   at wb.WBContextUI.init(WBContextUI* , WBFrontendCallbacks* , WBOptions* )
   at MySQL.Workbench.WbContext.init(AppImpl application, WbOptions options, VoidStrUIFormDelegate create_main_form_view)
   at MySQL.GUI.Workbench.Program.Main(String[] Args)
[16 Oct 2011 20:57] Joseph Ware
The problem is with the Arial font itself i just went and deleted the font and redownloaded the font

http://sourceforge.net/projects/corefonts/files/the%20fonts/final/arialb32.exe/download

Workbench is now starting up