Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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. –  Martin 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) –  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. –  monniaux Jun 14 '12 at 21:02

2 Answers 2

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.

share|improve this answer
    
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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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