This file does not compile after updating TeXLive 2013 :


\psaxes[linewidth=1pt,Dx=1,Dy=1,labels=none,ticksize=-0pt 0pt]{->}(0,0)(-2,-3)(5,3)


 ! LuaTeX error ...texmf-dist/tex/luatex/luaotfload/luaotfload-   database.lua:2121:
  attempt to call upvalue 'utf8length' (a nil value).
 <to be read again> 
 l.100 \fontencoding\encodingdefault\selectfont
  • 2
    I have submitted a bug report github.com/lualatex/luaotfload/issues/164 Restoring the previous version solves the issue (temporarily).
    – egreg
    Commented Jan 3, 2014 at 11:18
  • 2
    @egreg Delete the font cache and call luaotfload -u on the command line to rebuild it manually. Then it should work again. See also here github.com/lualatex/luaotfload/issues/156 Commented Jan 3, 2014 at 11:33
  • 2
    @UlrikeFischer Sorry, but this is by no means an acceptable way of doing things. Users should not be required to do mysterious and undocumented maneuvers. What cache should I remove? Getting an unusable system after an update is not nice, is it? Your situation was different, as you seemed to be testing a beta version.
    – egreg
    Commented Jan 3, 2014 at 11:37
  • 1
    @egreg: Run luaotfload-tool --help and you will get the pathes of the font caches. Delete the files there manually. You could also try luaotfload-tool --cache=purge oder --cache=erase. Commented Jan 3, 2014 at 11:41
  • 2
    @JuriRobl: Yes I meant all the font cache related files. Imho the important files to delete are the files in \texlive\2013\texmf-var\luatex-cache\generic\names, but it is probably a good idea to remove font related files too. Also I just tested the update: After removing the files in \names and running luaotfload-tool --update everything worked fine again. Commented Jan 3, 2014 at 12:07

1 Answer 1


You mention you use TeXLive. Until a bugfix to the luaotfload package is pushed to the CTAN, you may want to issue the command

sudo tlmgr restore luaotfload 31286

to revert to the previous version, numbered 2.3a, of this package. (The recent buggy version, numbered 2.4, has CTAN/TeXLive number 32538.)

  • 1
    A new version of luaotfload has been pushed a few minutes ago.
    – egreg
    Commented Jan 5, 2014 at 0:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .