[Mono-osx] Fontconfig error

Antoine Polatouche antoine at jabron.com
Thu May 28 22:08:07 EDT 2009


Hi!

Newbie question:
I can run console applications, I can run xcalc,
I can't run winforms applications.

What should I do ?
Any clue?

Config:
Mac OS X 10.5.7
X11 1.1.3 - XFree86 4.4.0
Mono 2.4
MonoDevelop 2.1.0

Here is the application output:
-------------------------------------
Fontconfig error: Cannot load default config file

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for
System.Windows.Forms.WindowsFormsSynchronizationContext --->
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeEngine --->
System.ArgumentException: The requested FontFamily could not be found
[GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x001e7] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:249

  at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily)
[0x0005d] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/System.Drawing/FontFamily.cs:93

  at (wrapper remoting-invoke-with-check)
System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/System.Drawing/FontFamily.cs:122

  at System.Drawing.Font.CreateFont (System.String familyName, Single
emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean
isVertical) [0x0000d] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/System.Drawing/Font.cs:70

  at System.Drawing.Font..ctor (System.String familyName, Single emSize,
FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean
gdiVerticalFont) [0x00011] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/System.Drawing/Font.cs:371

  at System.Drawing.Font..ctor (System.String familyName, Single emSize,
System.String systemName) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/Assembly/AssemblyInfo.cs:1

  at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor
(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/System.Drawing/SystemFonts.cs:76

  at System.Windows.Forms.Theme..ctor () [0x00011] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs:201

  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/Consts.cs:1
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/Consts.cs:1
  at System.Windows.Forms.ThemeEngine..cctor () [0x0002d] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeEngine.cs:49

  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined
() [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SystemInformation.cs:346

  at System.Windows.Forms.Control..ctor () [0x000e3] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:1060

  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
[0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/Consts.cs:1
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00014] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:1030

  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/Consts.cs:1
  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/Consts.cs:1
  at System.Windows.Forms.Form..ctor () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/Consts.cs:1
  at WFormsApp.Form1..ctor () [0x00000]
  at (wrapper remoting-invoke-with-check) WFormsApp.Form1:.ctor ()
  at WFormsApp.Program.Main () [0x00000]

L'application s'est terminée suite au signal: SIGHUP



More information about the Mono-osx mailing list