xml processing errors after latest upgrade
Hi, the latest update may have introduced problems for xml processing : For a document I could convert with version 2021.10.24 21:45 without problems gives me now this error : %%%%%%%%%%%%%%%%%%%%%%%%% ... structure > sectioning > title @ level 2 : 0.0 -> \documentvariable {title} fatal lua error: registered function call [929]: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: attempt to call a nil value (upvalue 'expandcurrent') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: in function <...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:27> (...tail calls...) mtx-context | fatal error: return code: 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change? (Ok, let's build a MWE..) Best, Denis
On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
You mean a problem with the update? I've wiped the cache and ran mtxrun --generate context --make But, no change. Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 1. Dezember 2021 10:52 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Trying a fresh installation.
-----Ursprüngliche Nachricht----- Von: Maier, Denis Christian (UB) Gesendet: Mittwoch, 1. Dezember 2021 10:59 An: 'Hans Hagen'
; mailing list for ConTeXt users Betreff: AW: [NTG-context] xml processing errors after latest upgrade You mean a problem with the update?
I've wiped the cache and ran mtxrun --generate context --make
But, no change.
Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 1. Dezember 2021 10:52 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Still the same error.
-----Ursprüngliche Nachricht----- Von: Maier, Denis Christian (UB) Gesendet: Mittwoch, 1. Dezember 2021 11:02 An: 'Hans Hagen'
; 'mailing list for ConTeXt users' Betreff: AW: [NTG-context] xml processing errors after latest upgrade Trying a fresh installation.
-----Ursprüngliche Nachricht----- Von: Maier, Denis Christian (UB) Gesendet: Mittwoch, 1. Dezember 2021 10:59 An: 'Hans Hagen'
; mailing list for ConTeXt users Betreff: AW: [NTG-context] xml processing errors after latest upgrade You mean a problem with the update?
I've wiped the cache and ran mtxrun --generate context --make
But, no change.
Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 1. Dezember 2021 10:52 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Ok, seems unrelated to XML. This here shows the problem: %%%%%%%%%%%%%%%%%%%% % no problems withouth setupinteraction \setupinteraction [ state=start, focus=standard, openaction=FitWidth, color=, contrastcolor=, style=, ] \starttext asdf \stoptext %%%%%%%%%%%%%%%%%%%% Best, Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 1. Dezember 2021 10:52 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Another problem. Maybe that's related? Running the file with the --luatex flag gives me this error message: tx-context | redirect luametatex -> luatex: luatex --luaonly "C:/context/tex/texmf-win64/bin/mtxrun.lua" --script mtx-context --luatex debug --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Denis Maier via ntg-context Gesendet: Mittwoch, 1. Dezember 2021 11:44 An: j.hagen@xs4all.nl; ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade Ok, seems unrelated to XML.
This here shows the problem:
%%%%%%%%%%%%%%%%%%%% % no problems withouth setupinteraction \setupinteraction [ state=start, focus=standard, openaction=FitWidth, color=, contrastcolor=, style=, ]
\starttext
asdf
\stoptext %%%%%%%%%%%%%%%%%%%%
Best, Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 1. Dezember 2021 10:52 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net __________________________________________________________ _________________________
Sorry for spamming the list, but I was able to narrow it further down: %%%%%%%%%%%%%%%%% \setupinteraction [ state=start, openaction=FitWidth, % comment this out to make it work ] \starttext asdf \stoptext %%%%%%%%%%%%%%%%% Can anyone confirm this?
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Denis Maier via ntg-context Gesendet: Mittwoch, 1. Dezember 2021 11:44 An: j.hagen@xs4all.nl; ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade Ok, seems unrelated to XML.
This here shows the problem:
%%%%%%%%%%%%%%%%%%%% % no problems withouth setupinteraction \setupinteraction [ state=start, focus=standard, openaction=FitWidth, color=, contrastcolor=, style=, ]
\starttext
asdf
\stoptext %%%%%%%%%%%%%%%%%%%%
Best, Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 1. Dezember 2021 10:52 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote:
Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change?
(Ok, let’s build a MWE..) a mix of old / new files?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net __________________________________________________________ _________________________
On 12/1/2021 2:03 PM, denis.maier@unibe.ch wrote:
Sorry for spamming the list, but I was able to narrow it further down:
%%%%%%%%%%%%%%%%% \setupinteraction [ state=start, openaction=FitWidth, % comment this out to make it work ]
\starttext
asdf
\stoptext %%%%%%%%%%%%%%%%%
Can anyone confirm this?
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Denis Maier via ntg-context Gesendet: Mittwoch, 1. Dezember 2021 11:44 An: j.hagen@xs4all.nl; ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade Ok, seems unrelated to XML.
This here shows the problem:
%%%%%%%%%%%%%%%%%%%% % no problems withouth setupinteraction \setupinteraction [ state=start, focus=standard, openaction=FitWidth, color=, contrastcolor=, style=, ]
\starttext
asdf
\stoptext %%%%%%%%%%%%%%%%%%%% you can patch this in scrn-ref.lua (and remakle the format)
local expandcurrent = structures.references.expandcurrent or function() end ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Confirmed that the following worked: 1. Run: rm -rf /tmp/luatex-cache/ (your cache directory location will differ) 2. Edit ./tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua 3. Replace line 15 to assign the empty function as Hans indicated 4. Save the file 5. Run: ./bin/mtxrun --generate 6. Run: ./tex/texmf-linux-64/bin/context --make Typesetting XML succeeds again.
On 12/1/21 2:03 PM, Denis Maier via ntg-context wrote:
Sorry for spamming the list, but I was able to narrow it further down: [...] \setupinteraction [state=start, openaction=FitWidth] % comment this out to make it work [...] Can anyone confirm this?
Hi Denis, I can confirm the issue. I get the following error message: registered function call [929]: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: attempt to call a nil value (upvalue 'expandcurrent') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: in function <...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:27> (...tail calls...) I hope it helps, Pablo
participants (4)
-
denis.maier@unibe.ch
-
Hans Hagen
-
Pablo Rodriguez
-
Thangalin