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
URL:
Depends on:
Blocks:
 
Reported: 2013-11-29 12:23 UTC by Jonathan Brodsky
Modified: 2013-12-03 06:20 UTC (History)
1 user (show)

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


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


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:
Status:
NEW

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:

http://mono.1490590.n4.nabble.com/2-10-9-problem-How-to-avoid-Fonts-conf-calls-td4518347.html#a4518484
http://mono.1490590.n4.nabble.com/When-launching-my-app-for-the-first-time-it-took-a-very-long-time-to-start-1-minute-and-30-seconds-td4518554.html

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.