
Hi all, I've just recently updated ConTeXt to the most recent version and I get the following lua error at the end of the log in the terminal. I thought it was a bit strange at the time but since the instal finished "update done" I continued on. However, when I ran some tex files the same lua error appeared with no output. I tried the usual suggestions for when there is a crash, but no change. Any thoughts? Best wishes Keith %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% mtx-install | removing : mtxrun mtx-install | removing : context mtx-install | linked : mtxrun mtx-install | linked : context mtx-install | xbit set : /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/luametatex mtx-install | xbit set : /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/luatex mtx-install | xbit set : /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun mtx-install | xbit set : /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/context mtx-install | running: /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun --generate lua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') mtx-install | running: /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun --script cache --erase lua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') mtx-install | running: /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun --generate lua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') mtx-install | running: /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/context --make en lua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') mtx-install | running: /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/context --luatex --generate lua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') mtx-install | running: /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/context --luatex --make en lua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') mtx-install | mtx-install | tex/texmf : 0 files with 0 bytes installed mtx-install | tex/texmf-context : 153 files with 13667067 bytes installed mtx-install | tex/texmf-osx-arm64 : 3 files with 10098550 bytes installed mtx-install | mtx-install | ConTeXt LMTX with LuaMetaTeX is still experimental and when you get a crash this mtx-install | can be due to a mismatch between Lua bytecode and the engine. In that case you can mtx-install | try the following: mtx-install | mtx-install | - wipe the texmf-cache directory mtx-install | - run: mtxrun --generate mtx-install | - run: context --make mtx-install | mtx-install | When that doesn't solve the problem, ask on the mailing list (ntg-context@ntg.nl). mtx-install | mtx-install | update, done %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

On 7/5/2025 6:18 PM, Keith McKay wrote:
Hi all, I've just recently updated ConTeXt to the most recent version and I get the following lua error at the end of the log in the terminal. I thought it was a bit strange at the time but since the instal finished "update done" I continued on. However, when I ran some tex files the same lua error appeared with no output. I tried the usual suggestions for when there is a crash, but no change. Any thoughts?
not the latest binary ... i didn't check the build for that ... but it looks like that mac is off line in the meantime: ua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh') in that mtxrun.lua file go to those lines and comment the mesh bit or replace it with local mesh = vector.mesh if mesh then local ismesh = mesh.ismesh local totable = mesh.totable setinspector("mesh",function(v) if ismesh(v) then inspect(totable(v)) return true end end) end do the same at the end of l-math.lua in order to be able to make a format. If Mojca gets the machien online i'll update. Sorry for the problem, Hans Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

No problem Hans.
Thanks for the solution.
Best wishes
Keith
On Sat, 5 Jul 2025, 18:43 Hans Hagen via ntg-context,
On 7/5/2025 6:18 PM, Keith McKay wrote:
Hi all, I've just recently updated ConTeXt to the most recent version and I get the following lua error at the end of the log in the terminal. I thought it was a bit strange at the time but since the instal finished "update done" I continued on. However, when I ran some tex files the same lua error appeared with no output. I tried the usual suggestions for when there is a crash, but no change. Any thoughts?
not the latest binary ... i didn't check the build for that ... but it looks like that mac is off line
in the meantime:
ua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh')
in that mtxrun.lua file go to those lines and comment the mesh bit or replace it with
local mesh = vector.mesh
if mesh then
local ismesh = mesh.ismesh local totable = mesh.totable
setinspector("mesh",function(v) if ismesh(v) then inspect(totable(v)) return true end end)
end
do the same at the end of l-math.lua in order to be able to make a format.
If Mojca gets the machien online i'll update. Sorry for the problem,
Hans
Hans
----------------------------------------------------------------- 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net
___________________________________________________________________________________

Hi Hans, I didn't have time on Saturday night to implement your solution so when I got back to it on Sunday I saw their was an update which I decided to install. However it came up with an error on installation as follows: lua error > lua error on line 48 in file mlib-ctx.mkxl: token call, execute: ...m64/tex/texmf-context/tex/context/base/mkxl/mlib-msh.lmt:45: attempt to index a nil value (local 'contour') stack traceback: ...m64/tex/texmf-context/tex/context/base/mkxl/mlib-msh.lmt:45: in local 'code' ...m64/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:97: in field 'loadedluacode' ...m64/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:108: in field 'luafilechunk' ...m64/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt:82: in field 'registercode' [ctxlua]:1: in main chunk <empty file> I left it till today and decided to do a complete reinstall is case I had mucked something up, but I still got the same error. Could you have another look please? If you need the full terminal output on installation from my M1 mac mini, let me know, it's about 300kB. I have ConTeXt on an old windows laptop which I use as a backup and it updated successfully. Thanks and Best Wishes Keith On 05/07/2025 18:57, Keith McKay wrote:
No problem Hans. Thanks for the solution. Best wishes Keith
On Sat, 5 Jul 2025, 18:43 Hans Hagen via ntg-context,
wrote: On 7/5/2025 6:18 PM, Keith McKay wrote: > Hi all, > I've just recently updated ConTeXt to the most recent version and I get > the following lua error at the end of the log in the terminal. I thought > it was a bit strange at the time but since the instal finished "update > done" I continued on. However, when I ran some tex files the same lua > error appeared with no output. I tried the usual suggestions for when > there is a crash, but no change. > Any thoughts?
not the latest binary ... i didn't check the build for that ... but it looks like that mac is off line
in the meantime:
ua error : function call: ...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673: attempt to index a nil value (field 'mesh')
in that mtxrun.lua file go to those lines and comment the mesh bit or replace it with
local mesh = vector.mesh
if mesh then
local ismesh = mesh.ismesh local totable = mesh.totable
setinspector("mesh",function(v) if ismesh(v) then inspect(totable(v)) return true end end)
end
do the same at the end of l-math.lua in order to be able to make a format.
If Mojca gets the machien online i'll update. Sorry for the problem,
Hans
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl http://www.pragma-ade.nl | www.pragma-pod.nl http://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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________

On 7/7/2025 4:12 PM, Keith McKay wrote:
Hi Hans, I didn't have time on Saturday night to implement your solution so when I got back to it on Sunday I saw their was an update which I decided to install. However it came up with an error on installation as follows:
lua error > lua error on line 48 in file mlib-ctx.mkxl:
token call, execute: ...m64/tex/texmf-context/tex/context/base/mkxl/ mlib-msh.lmt:45: attempt to index a nil value (local 'contour') stack traceback:
ah, same issue ... that code expects the latest bin the good news is that Mojca figured out why the mac didn't compile so i can now make a new bin Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

Thanks to Hans and Mojca the new bin works on my mac. Best Wishes Keith On 07/07/2025 16:53, Hans Hagen wrote:
On 7/7/2025 4:12 PM, Keith McKay wrote:
Hi Hans, I didn't have time on Saturday night to implement your solution so when I got back to it on Sunday I saw their was an update which I decided to install. However it came up with an error on installation as follows:
lua error > lua error on line 48 in file mlib-ctx.mkxl:
token call, execute: ...m64/tex/texmf-context/tex/context/base/mkxl/ mlib-msh.lmt:45: attempt to index a nil value (local 'contour') stack traceback:
ah, same issue ... that code expects the latest bin
the good news is that Mojca figured out why the mac didn't compile so i can now make a new bin
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Keith McKay