View Issue Details

IDProjectCategoryView StatusLast Update
0000824luatexluatex bugpublic2014-01-06 11:27
Reporteritoijala Assigned ToHans Hagen  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSArch Linux 
Summary0000824: Loading format that includes pgf crashes luaTeX
DescriptionDoing the below steps crashes luaTeX. Only loading the format (luatex '&h') does not crash. The crash happens at \end{document}.

It could be that pgf (or another package loaded by pgf) is partly at fault. On the other hand, luaTeX shouldn't just crash.
Steps To Reproduceh.tex:
\documentclass{article}
\usepackage{pgf}

d.tex:
\begin{document}
foo
\newpage
bar
\end{document}

luatex -ini '&lualatex h.tex\dump'
luatex '&h d.tex'

This is LuaTeX, Version beta-0.76.0-2013042316 (rev 4627)
 restricted \write18 enabled.
(./d.tex
LaTeX2e <2011/06/27>
LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation patterns for engli
sh, dumylang, nohyphenation, loaded.
No file d.aux.
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)
Additional InformationFully updated TL2013 pretest

See also https://www.tug.org/pipermail/luatex/2010-April/001517.html
TagsNo tags attached.

Activities

greenux

2013-07-07 12:00

reporter   ~0001109

I have the same problem using Windows 7, Miktex 2.9 (last update 07.07.2013):

"PANIC: unprotected error in call to Lua API (object in use)" at end of document.

Creating format with
 lualatex -ini -shell-escape -job-name="main" "&lualatex _preamble/static.tex\dump"
without error.
Building pdf with
  lualatex -shell-escape -synctex=1 -job-name="main" -interaction=nonstopmode "&main \input{main.tex}"
failed at end of document if and only if any kind of pgf package is include in the format e.g. \usepackage{tikz}
Everything works fine, if pgf packages are NOT in the format (=not in static.tex).

Hans Hagen

2013-12-04 10:19

manager   ~0001135

Macro packages that use lua code and set up some variables during format generation also need to make sure that it is initialized right again after a format is loaded. The 'current' lua state is (and will and cannot be) saved in the format. It's probably hard to catch all errors and wrapping everything in some protected call will not happen. So ... it's a macro )package) issue.

Hans Hagen

2014-01-06 11:27

manager   ~0001215

macro package management issue (there is no way we can catch all assumptions that macro packages and lua libraries make)

Issue History

Date Modified Username Field Change
2013-04-27 13:35 itoijala New Issue
2013-07-07 12:00 greenux Note Added: 0001109
2013-12-04 10:19 Hans Hagen Note Added: 0001135
2014-01-06 11:27 Hans Hagen Note Added: 0001215
2014-01-06 11:27 Hans Hagen Status new => closed
2014-01-06 11:27 Hans Hagen Assigned To => Hans Hagen
2014-01-06 11:27 Hans Hagen Resolution open => fixed