testserver minetest-tnt/init.lua:257: attempt to index local 'def' (a nil value) #5526
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#5526
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
2023-11-19 18:41:25: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'wielded_light' in callback luaentity_Step(): ...mt/5.7.0/Minetest_test/bin/../mods/minetest-tnt/init.lua:257: attempt to index local 'def' (a nil value)
2023-11-19 18:41:25: ERROR[Main]: stack traceback:
2023-11-19 18:41:25: ERROR[Main]: ...mt/5.7.0/Minetest_test/bin/../mods/minetest-tnt/init.lua:257: in function 'add_effects'
2023-11-19 18:41:25: ERROR[Main]: ...mt/5.7.0/Minetest_test/bin/../mods/minetest-tnt/init.lua:462: in function 'boom'
2023-11-19 18:41:25: ERROR[Main]: ....7.0/Minetest_test/bin/../mods/yl_nether_mobs/wither.lua:161: in function 'hit_node'
2023-11-19 18:41:25: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../mods/mobs_redo/api.lua:4230: in function 'func'
2023-11-19 18:41:25: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101>
Repro:
=> boom
apparently this is caused by trying to set the tnt explosion texture to the texture of the dropped node, but the dropped thing isn't a node. perhaps an anvil w/ a tool on it?
should be fixed here:
f4487dd093
If we're not sure, feel free to add logging to it so we can see what's actually happening. I'm fairly certain there was no anvil around.
it could have been something other than an anvil, anything that drops an item when it blows up. an ore node seems likely if there was no anvil nearby, there's ore in the nether.
Repro:
=> Bring a damaged balrog whip and an anvil
=> Boom
The commit above is on the testserver where the crash happened. It crashes as soon as a wither shot hits the anvil, the anvil and the damaged weapon survives the crash.
this is a separate bug w/ the anvil code. i apparently copied some code from "upstream" which wasn't compatible w/ our fork. i don't remember why i forked it, perhaps we should revisit that. should be fixed with this
7f43f0e8dd
either way, i should add a pre-commit check to our fork to ensure that we don't try to call undeclared globals, this was totally avoidable w/ automation.
QA
No more boom
assuming this is live because no boom