From TeXLive-2011: luatex complains:

! LuaTeX error ...1/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua:525: Cannot open the file $HOME/.config/font-manager/local.conf

where $HOME is the path of my home directory.

What is wrong and how can I fix it?

  • is the $HOME environment variable actually defined (or defined correctly) on your system? – ArTourter Jun 14 '12 at 18:03
  • Please add a minimal working example (MWE) that illustrates your problem. – Reinstate Monica - M. Schröder Jun 14 '12 at 18:11
  • Some of your font configuration files is including a non-existent $HOME/.config/font-manager/local.conf, check ~/.fonts.conf or ~/.fonts.conf.d/. But raising an error here is too much, luaotfload should fail gracefully (printing a message to the log is all it should do). – Khaled Hosny Jun 14 '12 at 18:43
  • 1
    Aaaaah... stracing showed: 8245 open("(MY HOME DIR)/.config/font-manager/local.conf", O_RDONLY) = -1 EMFILE (Too many open files) – David Monniaux Jun 14 '12 at 20:48
  • 2
    The reason is that lualatex opens this local.conf file several thousand times, without ever closing it, until the system refuses to open file descriptors (as seen from stracing). I consider this a bug in lualatex. – David Monniaux Jun 14 '12 at 21:02

For some reason, lualatex opens ~/.config/font-manager/local.conf repeatedly, without ever closing it, until the operating system refuses to return new file descriptors.

This most likely comes from a bug in lualatex, perhaps triggered for systems with many fonts installed.

  • May be you have a cyclic include somewhere, putting the code into an infinite loop, that is the only way I see this happening. – Khaled Hosny Jun 15 '12 at 1:37

I got bitten by the same bug today, and there was indeed a circular include in the file:

<include ignore_missing="yes">/home/rpinson/.config/font-manager/local.conf</include>

Commenting it out solved the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.