[lltx] Problems using custom format with luaTeX

Ismo Toijala ismo.toijala at gmail.com
Tue Apr 30 16:30:45 CEST 2013


Hello,

Now that using custom formats with luaTeX is possible I have been
testing all the packages I use.
I found problems with four packages: luacolor, pgf, fontspec and unicode-math.

All of the tests a simple file for the format and a simple document
with two pages.
All of the files are attached.

The formats are created with: luatex -ini '&lualatex format.tex\dump'
and loaded with: luatex '&format d.tex'

I am using a fully updated TL2013 pretest on x86_64-linux.

1. luacolor

The error is at the end of the first page.

(/home/ismo/.local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
! LuaTeX error [string "\directlua "]:1: attempt to index field 'luacolor' (a ni
l value)
stack traceback:
        [string "\directlua "]:1: in main chunk.
<argument> ...et("\luatexluaescapestring {\current at color }")}

l.3 \newpage

2. pgf

I reported the crash to the luaTeX bugtracker:
http://tracker.luatex.org/view.php?id=824

The crash is at the end of the document.

ABD: EveryShipout initializing macros
(/home/ismo/.local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/home/ismo/.local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/home/ismo/.local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty
(/home/ismo/.local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.st
y)) (/home/ismo/.local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/home/ismo/.local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/home/ismo/.local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))

(/home/ismo/.local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.c
fg)) [1{/home/ismo/.local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.
map}] [2]PANIC: unprotected error in call to Lua API (object in use)
Aborted (core dumped)

3. fontspec

The font can be found if it is loaded in the format, but not when
loaded in the document.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "LatinModernSans" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................

l.1 \setmainfont{Latin Modern Sans}

4. unicode-math

I reported the crash to the luaTeX bugtracker:
http://tracker.luatex.org/view.php?id=825

The crash is directly on loading the format.
The crash does not happen when \setmathfont is not used in the format,
but the fontspec bug makes it impossible to load a font in the
document.

This is LuaTeX, Version beta-0.76.0-2013042316 (rev 4627)
 restricted \write18 enabled.
Segmentation fault (core dumped)

5. unicode-math 2

If amsmath is loaded before unicode-math and \setmathfont is not used,
a different error results

! LuaTeX error [string "\directlua "]:1: attempt to index global 'lualatex' (a n
il value)
stack traceback:
        [string "\directlua "]:1: in main chunk.
\__lltxmath_set_mathchar:NN ...\int_eval:n {`#2})}
                                                  \scan_stop:
l.1 \begin{document}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests.zip
Type: application/zip
Size: 1769 bytes
Desc: not available
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20130430/711e6059/attachment.zip>


More information about the lualatex-dev mailing list