Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crash when travelling with a beer tap #1

Open
ymph opened this issue Mar 10, 2023 · 0 comments
Open

Server crash when travelling with a beer tap #1

ymph opened this issue Mar 10, 2023 · 0 comments

Comments

@ymph
Copy link
Member

ymph commented Mar 10, 2023

Hello,

We have stumbled on the following error in our server log after a crash.
It is difficult to know what kind of action can lead to this situation, however it seems to stem from an interaction of a beer tap and a "travelnet" transporter :

minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback on_playerReceiveFields(): ...j/mods/home_workshop_modpack/home_workshop_misc/init.lua:48: attempt to index local 'itemstack' (a nil value)
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: stack traceback:
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...j/mods/home_workshop_modpack/home_workshop_misc/init.lua:48: in function 'right_click_action'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...l/share/minetest/games/unej/mods/travelnet/functions.lua:271: in function 'open_close_door'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...t/games/unej/mods/travelnet/actions/transport_player.lua:58: in function 'action'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...minetest/games/unej/mods/travelnet/on_receive_fields.lua:161: in function 'fn'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...t/games/unej/mods/monitoring/builtin/received_fields.lua:22: in function <...t/games/unej/mods/monitoring/builtin/received_fields.lua:20>
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	/usr/local/share/minetest/builtin/game/register.lua:431: in function </usr/local/share/minetest/builtin/game/register.lua:417>

We are going to submit you a simple correction that check that the handle "itemstack" is not nil before trying to access properties on it.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant