
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
___________________________________________________________________________________
participants (2)
-
Hans Hagen
-
Keith McKay