I still have the problem I asked about a year ago. (LuaTeX bug? Abrupt stop) When I compile


with lualatex test.tex, it fails, and writes the following error log:

2017-03-19 12:54:10,614+0100 FATAL lualatex - MultiByteToWideChar() did not succeed; last error code is 1113

I am certain the problem is caused by my Windows username (Márton), which contains an accented letter, and because of this, when some component of LuaTeX attempts to read or write some file in C:\Users\Márton\AppData they do a wrong encoding conversion and then fail.

Under the other question I received a comment saying

In any case it would shed a light on the problem if you could run Luatex in GDB and set a breakpoint at that function and post the backtrace to the Luatex list.

My question is, is it possible to debug the MiKTeX-supplied luatex.exe (does it include debug symbols), or do I need to build it from source (which seems hell of an ordeal)?

closed as off-topic by schtandard, Raaja, Mensch, AndréC, Zarko Aug 3 at 18:45

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    There is a bug report regarding this sourceforge.net/p/miktex/bugs/2586 but it says that the behaviour is irreproducible. You could try if a trace give some info miktex.org/diagnosing. You can also add a comment to the bug above. Christian can perhaps make you a special version to debug the problem. But first make sure that you really have the newest versions of everything! Or try texlive. – Ulrike Fischer Mar 19 '17 at 12:19
  • 2
    @UlrikeFischer: You should make it clearer that you mean Christian Schenk (provider of MikTeX), in my point of view ;-) Otherwise it is a little bit confusing – user31729 Mar 19 '17 at 12:23
  • 1
    Does is fail also if you run luatex (not lualatex) on a simple file abc\bye? – Ulrike Fischer Mar 19 '17 at 14:20
  • 1
    Although this does not solve the bug (assuming bug), it may help the OP: Both MiKtex and TeXlive can be installed as portable. Then, it may be possible to install to a path that is not in the User home directory. – user103221 Mar 19 '17 at 23:11
  • 5
    I'm voting to close this question as off-topic because the problem was due to a bug that has been fixed. – schtandard Aug 3 at 17:03