You are not logged in.

#1 2013-08-05 18:21:08

Markus00000
Member
Registered: 2011-03-27
Posts: 333

[SOLVED] luaotfload causing stack overflow

Since the recent update to Tex Live (texlive-core 2013.30962-2), I get this error from lualatex:

$ lualatex test.tex
[...]
luaotfload | db: Font names database not found, generating new one.
             This can take several minutes; please be patient.
! LuaTeX error ...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:1239:
 stack overflow (too many arguments).
<to be read again> 
relax 
l.100 \fontencoding\encodingdefault\selectfont

Minimal example which causes this error:

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\end{document}

I followed the instructions from the news and didn't see any errors.

Can anyone confirm this problem or identify the cause?

Last edited by Markus00000 (2013-09-21 15:38:37)

Offline

#2 2013-08-28 13:46:57

i_magnific0
Member
Registered: 2012-01-23
Posts: 9

Re: [SOLVED] luaotfload causing stack overflow

So yeah, I too have problems with luaotfload. Basically the version in the current texlive (2.2) contains some bugs, of which (presumably also yours) were fixed in the mean time. I have opened a bug report for my issue, maybe you can open one for yours or vote for mine. The solution imho is a simple as including a the new version the build.

https://bugs.archlinux.org/task/36644?dev=2264

Offline

#3 2013-08-28 13:59:18

Markus00000
Member
Registered: 2011-03-27
Posts: 333

Re: [SOLVED] luaotfload causing stack overflow

Thanks a lot! Voted for your bug report.

Offline

#4 2013-09-19 12:39:16

Markus00000
Member
Registered: 2011-03-27
Posts: 333

Re: [SOLVED] luaotfload causing stack overflow

@i_magnific0: In the bug report you say that texlive-core 2013.31589-1 fixed this issue for you. Have you done anything else other than updating?

I have updated but still get the same error, although the line number has changed:

luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.
! LuaTeX error ...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:1637:
 stack overflow (too many arguments).
<to be read again> 
relax 
l.100 \fontencoding\encodingdefault\selectfont
                                            
? 
! Emergency stop.
<to be read again> 
relax 
l.100 \fontencoding\encodingdefault\selectfont

I discovered the same thing happens without any tex document at hand:

$ luaotfload-tool --list="*"
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.
...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:1637: stack overflow (too many arguments)

SOLVED (finally):

font-manager created a couple of files (all found with `find ~ -iname "*font*"`) which resulted in luaotfload to enter a never-ending loop. All the problematic files/directories had comments/read-me-files explaining that they were put there by font-manager. After deleting all these files and directories, luaotfload was again able to update the font name database.

I only found the cause after adding the following line in /usr/share/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua right before line 1637 (the one causing the stack overflow):

report("both", 0, "db", "Here's the problem: %s", path)

It did continuously output the same path until the stack overflowed.

Running font-manager afterwards didn't create any problematic files anymore. Maybe they were a leftover from a previous version.

Last edited by Markus00000 (2013-09-21 15:38:06)

Offline

Board footer

Powered by FluxBB