LuaLaTeX luaotfload:LuaTeX 错误:堆栈溢出(参数太多)

LuaLaTeX luaotfload:LuaTeX 错误:堆栈溢出(参数太多)

当我尝试使用 LuaLaTex 编译文档时(之前编译得很好),lualatex 却出现错误:

luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.
luaotfload | db : Updating the font names database.
luaotfload | db : Blacklisting 8 files and directories.
luaotfload | db : Whitelisting 0 files.
luaotfload | db : Scanning TEXMF and OS fonts...
luaotfload | db : Scanned 2486 files, 890 new.
luaotfload | db : Scanning OS fonts...
luaotfload | db : Searching in static system directories...
! LuaTeX error ...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:2383:
 stack overflow (too many arguments).
<to be read again> 
relax 
l.100 \fontencoding\encodingdefault\selectfont

? 

来自这个帖子LuaLaTeX(luaotfload-database.lua)编译错误,虽然现在不应该是同样的问题,但我运行了以下命令,但仍然出现完全相同的错误:

$ luaotfload-tool --cache=purge
$ luaotfload-tool -u
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:2383: stack overflow (too many arguments)

另外,我想也许我的发行版中仍然存在相同的旧的错误版本,就像在线程中一样,所以我尝试:

$ sudo tlmgr restore luaotfload 31286[sudo] password for nico: 
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/nico/texmf at /usr/bin/tlmgr line 5336.

那么,我该怎么办?

如果这可能有用:

$ uname -a
Linux ometeotl 3.16.0-29-generic #39-Ubuntu SMP Tue Dec 16 20:54:13 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ lualatex --version
This is LuaTeX, Version beta-0.76.0-2013121407  (TeX Live 2013/dev/Debian) (rev 4627)

$ luaotfload-tool --version    
[...]    
luaotfload-tool version "2.4-3"
revision "bd307a8fe8047d322317037c1a832720c236fb48"
database version "2.41"
Lua interpreter: stock; version "Lua 5.2"
Luatex SVN revision 4627
Luatex version 0.76.0

答案1

因此,正如评论中所述,该帖子: luaotfload 字体名称数据库创建崩溃

让我这样做:

$ mv /etc/fonts/fonts.conf /etc/fonts/tmprm-fonts.conf

然后编译工作就结束了:

$ lualatex beamer_test.tex
.
.
.

之后,我将该文件重命名为原来的名称:

$ mv /etc/fonts/tmprm-fonts.conf /etc/fonts/fonts.conf

现在任何进一步的编译都可以正常工作了。我只需要在每个新框架中添加一个 \fontspec{Ubuntu}(本文档使用 beamer)即可使用此字体(尽管之前,在文档开头使用 \setsansfont{Ubuntu} 就足够了)。

相关内容