Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

nil item crash #84

Closed
tenplus1 opened this issue Jun 30, 2019 · 1 comment
Closed

nil item crash #84

tenplus1 opened this issue Jun 30, 2019 · 1 comment
Labels

Comments

@tenplus1
Copy link
Member

tenplus1 commented Jun 30, 2019

2019-06-29 13:12:51: ACTION[Main]: Server: Shutting down
2019-06-29 13:12:52: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'craftguide' in callback on_playerReceiveFields(): /home/mtxanadu/.minetest/mods/craftguide/init.lua:409: attempt to index a nil value
2019-06-29 13:12:52: ERROR[Main]: stack traceback:
2019-06-29 13:12:52: ERROR[Main]: /home/mtxanadu/.minetest/mods/craftguide/init.lua:409: in function 'get_tooltip'
2019-06-29 13:12:52: ERROR[Main]: /home/mtxanadu/.minetest/mods/craftguide/init.lua:500: in function 'get_recipe_fs'
2019-06-29 13:12:52: ERROR[Main]: /home/mtxanadu/.minetest/mods/craftguide/init.lua:674: in function 'make_formspec'
2019-06-29 13:12:52: ERROR[Main]: /home/mtxanadu/.minetest/mods/craftguide/init.lua:695: in function 'show_fs'
2019-06-29 13:12:52: ERROR[Main]: /home/mtxanadu/.minetest/mods/craftguide/init.lua:900: in function 'on_receive_fields'
2019-06-29 13:12:52: ERROR[Main]: /home/mtxanadu/.minetest/mods/craftguide/init.lua:939: in function </home/mtxanadu/.minetest/mods/craftguide/init.lua:937>
2019-06-29 13:12:52: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:419: in function </usr/share/minetest/builtin/game/register.lua:399>

This points to this line inside get_tooltip() function:

	tooltip = reg_items[item].description
@kilbith kilbith added the bug label Jun 30, 2019
@kilbith
Copy link
Collaborator

kilbith commented Jun 30, 2019

Thanks for reporting.

mckaygerhard added a commit to minenux/minetest-mod-craftguide that referenced this issue Feb 25, 2022
* Fix nil item crash in get_tooltip() - Fixes minetest-mods#84, regression caused by d950c71
  backported minetest-mods@ca18ae0
* Fix possible crash: minetest-mods@97676d0
* Fix some crash minetest-mods@5e4a362
* Progressive mode fix crash on player leaving minetest-mods@4c0371c
  NOTE: the previous commit does not make sense for me,
  but well i will backport in any case to be in sync with code
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants