ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Stepper code fails
@ 2014-03-28 10:30 Michael Guravage
  2014-03-28 10:47 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Guravage @ 2014-03-28 10:30 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1103 bytes --]

The Stepper example on the wiki,
<http://wiki.contextgarden.net/Stepper>from which the following
snippet comes,

\usemodule[pre-60] % use the stepper
\setuppapersize[S6][S6]

\defineoverlay[invoke] [\overlaybutton{InvokeStepper}]
\setupbackgrounds[text] [background=invoke]
\setupinteraction[state=start,click=off]

\starttext
ex nihilo
\stoptext


fails here with the following error:

! LuaTeX error
...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146: attempt to
call upvalue 'pdfaction' (a nil value)
stack traceback:
...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146: in
function '?'
...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:700: in
function 'run'
...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:722: in
function 'finalizepage'
[string "\latelua "]:1: in main chunk.


Though I am using the latest beta, I do not think this problem caused by
changes in the latest release. I have attached the log file for those who
are interested. Any suggestions how to rectify this problem would be much
appreciated.

With kind regards,

Michael Guravage

[-- Attachment #1.2: Type: text/html, Size: 1984 bytes --]

[-- Attachment #2: step.log --]
[-- Type: text/x-log, Size: 8197 bytes --]

(/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.03.27 20:04 MKIV beta  fmt: 2014.3.28  int: english/english

system          > 'cont-new.mkiv' loaded
(/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/cont-new.mkiv)
system          > files > jobname 'step', input './step', result 'step'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
(/tmp/step.tex
resolvers       > modules > 'pre-60' is loaded
(/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/s-pre-60.mkiv
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
(/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/java-imp-stp.mkiv)
interactions    > javascripts > loaded: library 'stp'
metapost        > library 'nav' is loaded (/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/meta-imp-nav.mkiv))
fonts           > preloading latin modern fonts (second stage)
(/ufs/guravage/opt/ConTeXt-beta/tex/texmf-project/tex/context/user/type-loc.tex)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
! LuaTeX error ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146: attempt to call upvalue 'pdfaction' (a nil value)
stack traceback:
	...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146: in function '?'
	...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:700: in function 'run'
	...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:722: in function 'finalizepage'
	[string "\latelua "]:1: in main chunk.

tex error       > error on line 1 in file /tmp/step.tex: LuaTeX error 

 1 >>  \usemodule[pre-60] % use the stepper
 2     \setuppapersize[S6][S6]
 3     
 4     \defineoverlay[invoke] [\overlaybutton{InvokeStepper}]
 5     \setupbackgrounds[text] [background=invoke]
 6     \setupinteraction[state=start,click=off]
 7     
 8     \starttext
 9     
10     ex nihilo
11     


\page_shipouts_normal ...box \shipoutscratchbox }}
                                                  \else \page_shipouts_ignor...
\page_boxes_shipout ... {\box \shipoutscratchbox }
                                                  \fi \setnextrealpageno \th...
\page_otr_construct_and_shipout ...cted_page #1#2}
                                                  \page_otr_flush_pending_co...
\page_sides_output_routine_nop ...de_float_output 
                                                  \global \d_page_sides_vsiz...
\page_sides_output_routine ..._output_routine_nop 
                                                  \fi 
\page_otr_triggered_output_routine ...and_routine 
                                                  \fi 
...
l.12 \stoptext
            
? x

system          > structure > start used structure

used structure  > text: step

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file       >    2: filename=cont-new.mkiv filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file       >    3: filename=lang-us.lua filetype=scripts foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file       >    4: filename=/tmp/step.tex foundname=/tmp/step.tex usedmethod=direct
used file       >    5: filename=s-pre-60.mkiv filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/s-pre-60.mkiv usedmethod=database
used file       >    6: filename=java-imp-stp.mkiv filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/java-imp-stp.mkiv usedmethod=database
used file       >    7: filename=lmmono10-regular filetype=otf format=otf foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf usedmethod=database
used file       >    8: filename=meta-imp-nav.mkiv filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/base/meta-imp-nav.mkiv usedmethod=database
used file       >    9: filename=type-loc.tex filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-project/tex/context/user/type-loc.tex usedmethod=database
used file       >   10: filename=lm.lfg filetype=tex foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file       >   11: filename=lmroman12-regular filetype=otf format=otf foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file       >   12: filename=latinmodern-math.otf filetype=opentypefonts foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >   13: filename=latinmodern-math.otf filetype=otf format=otf foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >   14: filename=lmroman12-bold filetype=otf format=otf foundname=/ufs/guravage/opt/ConTeXt-beta/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="1"
used option     > fulljobname="./step.tex"
used option     > input="./step.tex"
used option     > kindofrun="1"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./step.tex

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /ufs/guravage/opt/ConTeXt-beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.057 seconds, 1 scans with scantime 0.042 seconds, 20 shared scans, 14 found files, scanned paths: /ufs/guravage/texmf
mkiv lua stats  > stored bytecode data: 347 modules (0.106 sec), 69 tables (0.002 sec), 416 chunks (0.108 sec)
mkiv lua stats  > traced context: maxstack: 1, freed: 0, unreachable: 1
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 443 lists of 442
mkiv lua stats  > node memory usage: 72 hlist, 27 vlist, 1 disc, 89 glue, 42 kern, 9 penalty, 10 glyph, 165 attribute, 52 glue_spec, 55 attribute_list, 3 temp, 10 if_stack, 8 local_par, 2 dir, 2 pdf_literal, 2 late_lua
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 42 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules: 1 requested, all found (*-pre-60)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 200 direct, 603 indirect, 803 total
mkiv lua stats  > interactive elements: 1 references, 0 destinations
mkiv lua stats  > result saved in file: step.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, lmmono10-regular.otf, lmroman12-bold.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.225 seconds for 6 fonts, 2 shared in backend, 2 common vectors, 0 common hashes
mkiv lua stats  > pdf annotations: 1 links (1 unique), 0 special
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.78.2 (tex live 2014/dev) (rev 4746)
mkiv lua stats  > control sequences: 38828 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 42 MB (ctx: 41 MB), hash type: default, hash chars: min(unknown,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 2.629 seconds

LuaTeX warning: dangling objects discarded, no output file produced.


[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Stepper code fails
  2014-03-28 10:30 Stepper code fails Michael Guravage
@ 2014-03-28 10:47 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-03-28 10:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3/28/2014 11:30 AM, Michael Guravage wrote:
> The Stepper example on the wiki, <http://wiki.contextgarden.net/Stepper>
> from which the following snippet comes,
>
>     \usemodule[pre-60] % use the stepper
>     \setuppapersize[S6][S6]
>
>     \defineoverlay[invoke] [\overlaybutton{InvokeStepper}]
>     \setupbackgrounds[text] [background=invoke]
>     \setupinteraction[state=start,click=off]
>
>     \starttext
>     ex nihilo
>     \stoptext
>
>
> fails here with the following error:
>
>     ! LuaTeX error
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146:
>     attempt to call upvalue 'pdfaction' (a nil value)
>     stack traceback:
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146: in
>     function '?'
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:700: in
>     function 'run'
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:722: in
>     function 'finalizepage'
>     [string "\latelua "]:1: in main chunk.
>
>
> Though I am using the latest beta, I do not think this problem caused by
> changes in the latest release. I have attached the log file for those
> who are interested. Any suggestions how to rectify this problem would be
> much appreciated.

in back-pdf.mkiv change the order:

\registerctxluafile{lpdf-ano}{1.001}
\registerctxluafile{lpdf-mis}{1.001}

so, load mis after ano and remake the format

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-28 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28 10:30 Stepper code fails Michael Guravage
2014-03-28 10:47 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).