pgundlach / lvdebug

LuaTeX package lua-visual-debug
16 stars 1 forks source link

Cannot compile when the package lua-visual-debug is enabled #4

Closed domb4 closed 7 years ago

domb4 commented 7 years ago

There is an error message when I'm compiling the example with the package lua-visual-debug. I'm using Texlive 2016 with Texworks and I'm compiling with LuaLatex.

I've tried with this command line, the problem is the same.

lualatex.exe visual-debug-lua-test.tex

Please find the example below:

\documentclass{article}
\usepackage{lua-visual-debug}
\usepackage{lmodern}
\setlength\textwidth{300pt}
\setlength\textheight{10cm}
\begin{document}
\section{A short story}
A wonderful serenity has taken possession of my entire soul, like these sweet
mornings of spring which I enjoy with my whole heart. I am alone, and feel
the charm of existence in this spot, which was created for the bliss of souls
like mine. I am so happy, my dear friend, so absorbed in the exquisite sense
of mere tranquil existence, that I neglect my talents\footnote{A very special
,→ note for you}.
\begin{itemize}
\item one
\item two
\item three
\end{itemize}
\bgroup\fontsize{30}{34}\selectfont
\centerline{\TeX}
\egroup
\vbox{\strut Hello}\kern .5cm\vbox{\strut World}
\[ \int_e^x=mc^2 \]
\end{document}

And the output console:

This is LuaTeX, Version 0.95.0 (TeX Live 2016/W32TeX) restricted system commands enabled. (./visual-debug-lua-test.tex LaTeX2e <2016/03/31> Babel <3.9r> and hyphenation patterns for 1 language(s) loaded. (d:/apps/texlive/2016/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (d:/apps/texlive/2016/texmf-dist/tex/latex/base/size10.clo)) (d:/apps/texlive/2016/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.s ty (d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty) (d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty (d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty) (d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty))) (d:/apps/texlive/2016/texmf-dist/tex/latex/lm/lmodern.sty) (./visual-debug-lua-test.aux) (d:/apps/texlive/2016/texmf-dist/tex/latex/lm/ot1lmr.fd) (d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omllmm.fd) (d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omslmsy.fd) (d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omxlmex.fd) (d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omslmr.fd)...mf-dist/tex/luatex/l ua-visual-debug/lua-visual-debug.lua:139: attempt to compare nil with number stack traceback: ...mf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua:139: in function ' show_page_elements' [\directlua]:1: in main chunk.

...ow_page_elements(tex.box["AtBeginShipoutBox"])} l.24 \end{document} ?
pgundlach commented 7 years ago

Your input file looks fine to me. Can you add

\listfiles

to the preamble of your document (for example in line 2) and put the output of the file list here?

such as

 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
lua-visual-debug.sty    2016/05/30 v0.5 Visual debugging in LuaLaTeX (PGU)
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
atbegshi.sty    2016/06/09 v1.18 At begin shipout hook (HO)
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
   ifpdf.sty    2016/05/14 v3.1 Provides the ifpdf switch
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
  ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omslmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
 ***********
domb4 commented 7 years ago

Please find the output with the option listfiles added:

This is LuaTeX, Version 0.95.0 (TeX Live 2016/W32TeX) 
 restricted system commands enabled.
(./visual-debug-lua-test.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 1 language(s) loaded.
(d:/apps/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(d:/apps/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
(d:/apps/texlive/2016/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.s
ty (d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/atbegshi.sty
(d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(d:/apps/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)))
(d:/apps/texlive/2016/texmf-dist/tex/latex/lm/lmodern.sty)
(./visual-debug-lua-test.aux)
(d:/apps/texlive/2016/texmf-dist/tex/latex/lm/ot1lmr.fd)
(d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omllmm.fd)
(d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omslmsy.fd)
(d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omxlmex.fd)
(d:/apps/texlive/2016/texmf-dist/tex/latex/lm/omslmr.fd)...mf-dist/tex/luatex/l
ua-visual-debug/lua-visual-debug.lua:139: attempt to compare nil with number
stack traceback:
    ...mf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua:139: in function '
show_page_elements'
    [\directlua]:1: in main chunk.
<argument> ...ow_page_elements(tex.box["AtBeginShipoutBox"])}

l.25 \end{document}

? ?
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? R
OK, entering \nonstopmode...
[1{d:/apps/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./visual-debug-lua-test.aux)

 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
lua-visual-debug.sty    2012/04/06 v0.4 Visual debugging in LuaLaTeX (PGU)
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
atbegshi.sty    2016/05/16 v1.17 At begin shipout hook (HO)
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
   ifpdf.sty    2016/05/14 v3.1 Provides the ifpdf switch
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
  ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omslmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
 ***********

)
(see the transcript file for additional information)
 405 words of node memory still in use:
   2 hlist, 1 vlist, 1 rule, 15 glue, 39 glue_spec, 1 write, 1 pdf_literal node
s
   avail lists: 2:16,3:29,4:2,5:44,6:397,7:171,8:9,9:47,10:1,11:18
{d:/apps/texlive/2016/texmf-dist/fonts/enc/dvips/lm/lm-rm.enc}{d:/apps/texlive/
2016/texmf-dist/fonts/enc/dvips/lm/lm-mathit.enc}{d:/apps/texlive/2016/texmf-di
st/fonts/enc/dvips/lm/lm-mathex.enc}{d:/apps/texlive/2016/texmf-dist/fonts/enc/
dvips/lm/lm-mathsy.enc}<d:/apps/texlive/2016/texmf-dist/fonts/type1/public/lm/l
mbx12.pfb><d:/apps/texlive/2016/texmf-dist/fonts/type1/public/lm/lmex10.pfb><d:
/apps/texlive/2016/texmf-dist/fonts/type1/public/lm/lmmi10.pfb><d:/apps/texlive
/2016/texmf-dist/fonts/type1/public/lm/lmmi7.pfb><d:/apps/texlive/2016/texmf-di
st/fonts/type1/public/lm/lmr10.pfb><d:/apps/texlive/2016/texmf-dist/fonts/type1
/public/lm/lmr17.pfb><d:/apps/texlive/2016/texmf-dist/fonts/type1/public/lm/lmr
6.pfb><d:/apps/texlive/2016/texmf-dist/fonts/type1/public/lm/lmr7.pfb><d:/apps/
texlive/2016/texmf-dist/fonts/type1/public/lm/lmr8.pfb><d:/apps/texlive/2016/te
xmf-dist/fonts/type1/public/lm/lmsy10.pfb>
Output written on visual-debug-lua-test.pdf (1 page, 139605 bytes).

SyncTeX written on visual-debug-lua-test.synctex.gz.Transcript written on visual-debug-lua-test.log.
pgundlach commented 7 years ago

You have an old version of lua-visual debug (0.4, 0.5 is the current version). Please update your TeXlive version. I'll close this report. You can open another one if the problem persists.

domb4 commented 7 years ago

Last version works fine. Thank you.