testserver mobs_monster/lava_flan.lua:324: attempt to index local 'def' (a nil value) #5601

Closed
opened 2023-12-03 20:04:10 +00:00 by AliasAlreadyTaken · 6 comments

That happens when obsidian flans shoot at Miocene and back

2023-12-03 19:54:27: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback luaentity_Step(): ...7.0/Minetest_test/bin/../mods/mobs_monster/lava_flan.lua:324: attempt to index local 'def' (a nil value)
2023-12-03 19:54:27: ERROR[Main]: stack traceback:
2023-12-03 19:54:27: ERROR[Main]: 	...7.0/Minetest_test/bin/../mods/mobs_monster/lava_flan.lua:324: in function 'hit_node'
2023-12-03 19:54:27: ERROR[Main]: 	/home/mt/5.7.0/Minetest_test/bin/../mods/mobs_redo/api.lua:4299: in function 'func'
2023-12-03 19:54:27: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101>

That happens when obsidian flans shoot at Miocene and back ``` 2023-12-03 19:54:27: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback luaentity_Step(): ...7.0/Minetest_test/bin/../mods/mobs_monster/lava_flan.lua:324: attempt to index local 'def' (a nil value) 2023-12-03 19:54:27: ERROR[Main]: stack traceback: 2023-12-03 19:54:27: ERROR[Main]: ...7.0/Minetest_test/bin/../mods/mobs_monster/lava_flan.lua:324: in function 'hit_node' 2023-12-03 19:54:27: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../mods/mobs_redo/api.lua:4299: in function 'func' 2023-12-03 19:54:27: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101> ```
AliasAlreadyTaken added the
1. kind/bug
3. source/mod upstream
2. prio/critical
labels 2023-12-03 20:04:22 +00:00
AliasAlreadyTaken changed title from mobs_monster/lava_flan.lua:324: attempt to index local 'def' (a nil value) to testserver mobs_monster/lava_flan.lua:324: attempt to index local 'def' (a nil value) 2023-12-03 20:04:29 +00:00
AliasAlreadyTaken added this to the 1.1.122 milestone 2023-12-03 20:04:34 +00:00
Author
Owner
Upstream issue: https://codeberg.org/tenplus1/mobs_monster/issues/1
Member

That happens when obsidian flans shoot at Miocene and back

that should only happen if the projectile hit an unknown node. did it?

> That happens when obsidian flans shoot at Miocene and back that should only happen if the projectile hit an unknown node. did it?
Author
Owner

No, that happened to any node. Even if it only happens to unknown nodes, we better brace for that, too. Even though YL tries to hunt down unknown nodes, we can't 100% make sure.

No, that happened to any node. Even if it only happens to unknown nodes, we better brace for that, too. Even though YL tries to hunt down unknown nodes, we can't 100% make sure.
Member

Even if it only happens to unknown nodes, we better brace for that, too

of course. but the logic error in that code should only trigger if there's no definition for the given node name... if there wasn't an unknown node around, something weirder is going on, possibly a deeper bug in mobs_redo logic.

> Even if it only happens to unknown nodes, we better brace for that, too of course. but the logic error in that code should only trigger if there's no definition for the given node name... if there wasn't an unknown node around, something weirder is going on, possibly a deeper bug in mobs_redo logic.
Author
Owner

QA

It's fixed upstream :)

QA It's fixed upstream :)
AliasAlreadyTaken added the
4. step/ready to QA test
ugh/QA OK
labels 2023-12-04 12:41:47 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-12-18 22:38:02 +00:00
Member

presuming this is live

presuming this is live
flux closed this issue 2023-12-18 22:38:10 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#5601
No description provided.