Solved Error : /boot/lua/loader.lua.511 : attempt to call a nil value (field 'hasUnicode').

Hello.

I'm trying to upgrade FreeBSD 14.2-RELEASE to 14.3-RELEASE on the RockPro64 and when I rebooted the board,I've got an error that prevents me from finishing the upgrade :

Error : /boot/lua/drawer.lua.511 : attempt to call a nil value (field 'hasUnicode').


WhatsApp Image 2025-09-09 at 15.04.29.jpeg


Thanks.

PS : I didn't modify the lua scripts. They are the default ones.
 
If I recall correctly a couple of scripts in /boot/lua/ got modified with the upgrade from 14.2 to 14.3. Not entirely sure which ones, so I looked at the timestamps:

Code:
dice@fbsd-test:~ % ll /boot/lua/
total 88
-r--r--r--  1 root wheel  6731 Dec  6  2024 cli.lua
-r--r--r--  1 root wheel  3183 May 31  2024 color.lua
-r--r--r--  1 root wheel 23977 Dec  6  2024 config.lua
-r--r--r--  1 root wheel 15477 Dec  6  2024 core.lua
-r--r--r--  1 root wheel 13954 Jun  5 17:04 drawer.lua
-r--r--r--  1 root wheel  2364 May 31  2024 gfx-beastie.lua
-r--r--r--  1 root wheel  2141 May 31  2024 gfx-beastiebw.lua
-r--r--r--  1 root wheel  1867 May 31  2024 gfx-fbsdbw.lua
-r--r--r--  1 root wheel  2388 May 31  2024 gfx-orb.lua
-r--r--r--  1 root wheel  2050 May 31  2024 gfx-orbbw.lua
-r--r--r--  1 root wheel  3249 May 31  2024 hook.lua
-r--r--r--  1 root wheel  2364 Dec  6  2024 loader.lua
-r--r--r--  1 root wheel 14984 Jun  5 17:04 menu.lua
-r--r--r--  1 root wheel  4250 May 31  2024 password.lua
-r--r--r--  1 root wheel  2140 Jun  5 17:04 screen.lua
drawer.lua, menu.lua and screen.lua all have a newer timestamp compared the rest (timestamp seems to coincide with the date I upgraded this test machine). drawer.lua is the file that seems to have an error on your system, so I suspect that's the one missing the changes.
 
If I recall correctly a couple of scripts in /boot/lua/ got modified with the upgrade from 14.2 to 14.3. Not entirely sure which ones, so I looked at the timestamps:

Code:
dice@fbsd-test:~ % ll /boot/lua/
total 88
-r--r--r--  1 root wheel  6731 Dec  6  2024 cli.lua
-r--r--r--  1 root wheel  3183 May 31  2024 color.lua
-r--r--r--  1 root wheel 23977 Dec  6  2024 config.lua
-r--r--r--  1 root wheel 15477 Dec  6  2024 core.lua
-r--r--r--  1 root wheel 13954 Jun  5 17:04 drawer.lua
-r--r--r--  1 root wheel  2364 May 31  2024 gfx-beastie.lua
-r--r--r--  1 root wheel  2141 May 31  2024 gfx-beastiebw.lua
-r--r--r--  1 root wheel  1867 May 31  2024 gfx-fbsdbw.lua
-r--r--r--  1 root wheel  2388 May 31  2024 gfx-orb.lua
-r--r--r--  1 root wheel  2050 May 31  2024 gfx-orbbw.lua
-r--r--r--  1 root wheel  3249 May 31  2024 hook.lua
-r--r--r--  1 root wheel  2364 Dec  6  2024 loader.lua
-r--r--r--  1 root wheel 14984 Jun  5 17:04 menu.lua
-r--r--r--  1 root wheel  4250 May 31  2024 password.lua
-r--r--r--  1 root wheel  2140 Jun  5 17:04 screen.lua
drawer.lua, menu.lua and screen.lua all have a newer timestamp compared the rest (timestamp seems to coincide with the date I upgraded this test machine). drawer.lua is the file that seems to have an error on your system, so I suspect that's the one missing the changes.

Where I can get the fixed script ? On my Intel PC where I have upgraded FreeBSD 14.2 to 14.3 it works ok. So,I've exchanged the working script from the PC to the RockPro64 board,but this didn't help.

Are the lua scripts written for FreeBSD for x64 bit the same that have been written for Arm64 ?
 
Back
Top