digtron icon indicating copy to clipboard operation
digtron copied to clipboard

Crash with minetest-5.8.0 when digging chest with inventory

Open dennisjenkins75 opened this issue 10 months ago • 1 comments

I did not witness this myself, just the player's report and the crash report in my server logs.

Player claims that the crash trigger is a digtron attempting to dig a node with an inventory (I assume a chest in a dungeon?). They items are obtained, but the chest remains. So this is also an item duplication glitch (at the expense of a server crash).

I have not attempted a manual repro, as I don't have a digtron and don't use them (my players do though).

1hit@EdgyNet:~$ ./opt/minetest/bin/minetestserver --version
Minetest 5.8.0 (Linux)
Using LuaJIT 2.1.0-beta3
BUILD_TYPE=Release
RUN_IN_PLACE=0
USE_CURL=1
STATIC_SHAREDIR="/home/1hit/opt/minetest/share/minetest"

ServerError: AsyncErr: Lua: Runtime error from mod 'digtron' in callback node_on_receive_fields(): .../1hit/worlds/world/worldmods/awards/src/api_triggers.lua:148: attempt to call method 'sub' (a nil value)
stack traceback:
        .../1hit/worlds/world/worldmods/awards/src/api_triggers.lua:148: in function 'notify_digtron_dig'
        /home/1hit/worlds/world/worldmods/digtron/awards.lua:32: in function 'award_item_dug'
        ...it/worlds/world/worldmods/digtron/util_execute_cycle.lua:334: in function 'execute_dig_cycle'
        ...orlds/world/worldmods/digtron/nodes/node_controllers.lua:166: in function 'auto_cycle'
        ...orlds/world/worldmods/digtron/nodes/node_controllers.lua:283: in function <...orlds/world/worldmods/digtron/nodes/node_controllers.lua:257>

dennisjenkins75 avatar Mar 24 '24 19:03 dennisjenkins75

worldmods/awards/src/api_triggers.lua:148

this looks like an award issue to me :thinking:

BuckarooBanzay avatar Mar 25 '24 12:03 BuckarooBanzay