vector.lua:59: attempt to index local 'b' (a nil value) #1028
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#1028
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?
2021-11-10 02:00:35: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): ...ve1/5.4.1/Minetest_live/bin/../builtin/common/vector.lua:59: attempt to index local 'b' (a nil value)
2021-11-10 02:00:35: ERROR[Main]: stack traceback:
2021-11-10 02:00:35: ERROR[Main]: ...ve1/5.4.1/Minetest_live/bin/../builtin/common/vector.lua:59: in function 'dist2tgt'
2021-11-10 02:00:35: ERROR[Main]: /home/mtlive1/.minetest/mods/water_life/behaviors.lua:1226: in function 'func'
2021-11-10 02:00:35: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:621: in function 'execute_queues'
2021-11-10 02:00:35: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'func'
2021-11-10 02:00:35: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
Wait a moment.
These stem from water_life, too:
#972
#896
#396
2021-11-14 03:59:49: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): ...ve1/5.4.1/Minetest_live/bin/../builtin/common/vector.lua:59: attempt to index local 'b' (a nil value)
2021-11-14 03:59:49: ERROR[Main]: stack traceback:
2021-11-14 03:59:49: ERROR[Main]: ...ve1/5.4.1/Minetest_live/bin/../builtin/common/vector.lua:59: in function 'dist2tgt'
2021-11-14 03:59:49: ERROR[Main]: /home/mtlive1/.minetest/mods/water_life/behaviors.lua:1226: in function 'func'
2021-11-14 03:59:49: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:621: in function 'execute_queues'
2021-11-14 03:59:49: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'func'
2021-11-14 03:59:49: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
2021-11-14 04:01:06: WARNING[Main]: system-wide share not found at "/usr/local/share/minetest"
The server crashes must end. Let's start and hopefully finish operation "snake lobotomy" this week. Even if the waterlife snake mob gets dumber as a result, that is better than returning a nil in some abstract attack vector thing and crashing the server.
this is the function in question
function water_life.hq_snake_warn(self,target,prty,duration,anim)
anim = anim or 'warn'
local init = true
end
unfortunately this goes way beyond my current horizon, as I first have to look into what the mobkit is and how it works.
Good news, we have a repro.
BOOM!
=>
But why? We obviously have a playerobject. Only that its get_pos() returns nil when logging out??
That's what the debug says:
Try it yourself, you may take a couple of attempts to log out the right moment, but its a 100% repro over here by now. No lag or other mods involved but mtg, mobkit and water_life :)
Fixed in 1e28fc84d386217c17ca10dd330c8fc2c0269bb0