Bug 16517 - fontconfig first run loading hangs
Summary: fontconfig first run loading hangs
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Drawing ()
Version: 3.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-11-29 12:23 UTC by Jonathan Brodsky
Modified: 2013-12-03 06:20 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

solution that hangs on a clean vm install. (22.82 KB, application/zip)
2013-11-29 12:24 UTC, Jonathan Brodsky

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 16517 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jonathan Brodsky 2013-11-29 12:23:52 UTC
When loading any assembly that requires gdiplus, mono hangs for up to 20 seconds, while fontconfig builds its caches. This can be tested by building the attached solution and running on a clean VM. I tested against 10.9, but I suspect that it will occur on other versions of osx. It needs to be a clean install or else your machine will have the caches already and not hang.

I seem to recall that this didn't occur on earlier versions of mono.
Comment 1 Jonathan Brodsky 2013-11-29 12:24:22 UTC
Created attachment 5570 [details]
solution that hangs on a clean vm install.
Comment 2 Jonathan Brodsky 2013-12-03 06:20:00 UTC
I have found references to this issue going back several years:


To be clear, if you do the fix suggested in the first post (changing the fontconfig path), it causes the second issue of the system hanging for 1:30 on first load.