'FontFamily not found' error when trying to run application installer via Wine

I have a machine running Zorin OS 16 Lite (Xubuntu). I'm trying to set up some software called 'FE Builder GBA' with the installer I got from here: GitHub - FEBuilderGBA/FEBuilderGBA. The application is meant for Windows, so I'm trying to install it using Wine, but I get the following error:

$ wine febuilder-installer.exe
0034:err:menubuilder:init_xdg error looking up the desktop directory
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0


Unhandled Exception:
System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Windows.Forms.Control.get_DefaultFont () [0x0000e] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_Font () [0x00088] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_FontHeight () [0x000a9] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_PreferredHeight () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_DefaultSize () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor (System.Boolean autoInstallSyncContext) [0x000e3] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x0003a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBox..ctor () [0x0004a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox..ctor()
  at FEBuilderGBA_Downloader.Form1.InitializeComponent () [0x00031] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at FEBuilderGBA_Downloader.Form1..ctor () [0x00006] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at (wrapper remoting-invoke-with-check) FEBuilderGBA_Downloader.Form1..ctor()
  at FEBuilderGBA_Downloader.Program.Main () [0x0000b] in <16e0da63c0ce41b3991f075fde5fc626>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Windows.Forms.Control.get_DefaultFont () [0x0000e] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_Font () [0x00088] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_FontHeight () [0x000a9] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_PreferredHeight () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_DefaultSize () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor (System.Boolean autoInstallSyncContext) [0x000e3] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x0003a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBox..ctor () [0x0004a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox..ctor()
  at FEBuilderGBA_Downloader.Form1.InitializeComponent () [0x00031] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at FEBuilderGBA_Downloader.Form1..ctor () [0x00006] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at (wrapper remoting-invoke-with-check) FEBuilderGBA_Downloader.Form1..ctor()

i'm confused about your machine ,is it zorin 16 lite or xubuntu?
i guess you mean its XFCE DE ?
anyway have you installed the microsoft core fonts ?
sudo apt install ttf-mscorefonts-installer

You could create a bug report despite it's meant to be for Windows, someone could help anyway. But reading the third line of the output it looks like that a command is suggested, sysctl dev.i915.perf_stream_paranoid=0.

@14nd That's correct, the operating system is Zorin 16, and the desktop environment is Xcfe. Microsoft core fonts is installed, apt says that it already has the most recent version (3.7ubuntu6).

@Luca_Pavan I actually didn't see the suggested command :sweat_smile:. Running sysctl removed the Mesa-Intel warning, so now the error looks like this:

$ wine febuilder-installer.exe
0034:err:menubuilder:init_xdg error looking up the desktop directory

Unhandled Exception:
System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Windows.Forms.Control.get_DefaultFont () [0x0000e] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_Font () [0x00088] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_FontHeight () [0x000a9] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_PreferredHeight () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_DefaultSize () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor (System.Boolean autoInstallSyncContext) [0x000e3] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x0003a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBox..ctor () [0x0004a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox..ctor()
  at FEBuilderGBA_Downloader.Form1.InitializeComponent () [0x00031] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at FEBuilderGBA_Downloader.Form1..ctor () [0x00006] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at (wrapper remoting-invoke-with-check) FEBuilderGBA_Downloader.Form1..ctor()
  at FEBuilderGBA_Downloader.Program.Main () [0x0000b] in <16e0da63c0ce41b3991f075fde5fc626>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <17382bc97d2f4d15a0205bdae6abab7e>:0 
  at System.Windows.Forms.Control.get_DefaultFont () [0x0000e] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_Font () [0x00088] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control.get_FontHeight () [0x000a9] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_PreferredHeight () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase.get_DefaultSize () [0x00001] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor (System.Boolean autoInstallSyncContext) [0x000e3] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x0003a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at System.Windows.Forms.TextBox..ctor () [0x0004a] in <e42196e17ddc4ed89464fee8a5bcb492>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox..ctor()
  at FEBuilderGBA_Downloader.Form1.InitializeComponent () [0x00031] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at FEBuilderGBA_Downloader.Form1..ctor () [0x00006] in <16e0da63c0ce41b3991f075fde5fc626>:0 
  at (wrapper remoting-invoke-with-check) FEBuilderGBA_Downloader.Form1..ctor()

1 Like

Reading the second line of the output I understand that the software doesn't find a desktop directory, so for common sense creating it with what it's required might work. What does it expect to find there? The font in question?

I get the desktop directory error when running other applications with Wine, but they still work, so I think that probably isn't the issue.

I assume it's looking for the font "Generic Sans Serif", but I'm not really sure.