petz/api/api_helper_functions.lua:27: attempt to index local 'pos' (a nil value) #5711

Closed
opened 2023-12-16 00:10:38 +00:00 by AliasAlreadyTaken · 5 comments

Previously it was stated that this might have to do with "INVALID OBJECT?!" and a different issue, but the two errors happened about one day apart.

2023-12-15 19:44:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'petz' in callback on_playerReceiveFields(): ..._live/bin/../mods/petz/petz/api/api_helper_functions.lua:27: attempt to index local 'pos' (a nil value)
2023-12-15 19:44:06: ERROR[Main]: stack traceback:
2023-12-15 19:44:06: ERROR[Main]: 	..._live/bin/../mods/petz/petz/api/api_helper_functions.lua:27: in function 'isinliquid'
2023-12-15 19:44:06: ERROR[Main]: 	...0/Minetest_live/bin/../mods/petz/petz/api/api_orders.lua:31: in function 'standhere'
2023-12-15 19:44:06: ERROR[Main]: 	....0/Minetest_live/bin/../mods/petz/petz/api/api_forms.lua:302: in function 'func'
2023-12-15 19:44:06: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:101>
2023-12-15 19:44:06: ERROR[Main]: 	.../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:432>

Previously it was stated that this might have to do with "INVALID OBJECT?!" and a different issue, but the two errors happened about one day apart. ``` 2023-12-15 19:44:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'petz' in callback on_playerReceiveFields(): ..._live/bin/../mods/petz/petz/api/api_helper_functions.lua:27: attempt to index local 'pos' (a nil value) 2023-12-15 19:44:06: ERROR[Main]: stack traceback: 2023-12-15 19:44:06: ERROR[Main]: ..._live/bin/../mods/petz/petz/api/api_helper_functions.lua:27: in function 'isinliquid' 2023-12-15 19:44:06: ERROR[Main]: ...0/Minetest_live/bin/../mods/petz/petz/api/api_orders.lua:31: in function 'standhere' 2023-12-15 19:44:06: ERROR[Main]: ....0/Minetest_live/bin/../mods/petz/petz/api/api_forms.lua:302: in function 'func' 2023-12-15 19:44:06: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:101> 2023-12-15 19:44:06: ERROR[Main]: .../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_live/bin/../builtin/game/register.lua:432> ```
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
labels 2023-12-16 01:56:15 +00:00
Member

i'm pretty sure a repro for this is:

  1. create some lag
  2. get a tamed petz you own
  3. open its formspec
  4. the petz dies somehow (another player kills it, or environmental damage)
  5. tell the petz to "stand here"
  6. boom

i can't replicate this in a single-player world though....

i'm pretty sure a repro for this is: 0. create some lag 1. get a tamed petz you own 2. open its formspec 3. the petz dies somehow (another player kills it, or environmental damage) 4. tell the petz to "stand here" 5. boom i can't replicate this in a single-player world though....
flux added the
3. source/mod upstream
label 2023-12-16 23:50:33 +00:00
Member
upstream issue https://github.com/runsy/petz/issues/205
flux added the
4. step/ready to QA test
label 2023-12-17 20:55:55 +00:00
Member

upstream is fixed, though i'm not sure exactly how to replicate it, so QA might just be "hope it's gone"

upstream is fixed, though i'm not sure exactly how to replicate it, so QA might just be "hope it's gone"
AliasAlreadyTaken added this to the 1.1.123 milestone 2023-12-18 04:40:26 +00:00
Author
Owner

QA

hope it's gone, read:test on main

QA hope it's gone, read:test on main
AliasAlreadyTaken added the
ugh/QA main
label 2024-01-26 04:22:33 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-03-28 23:48:34 +00:00
Member

presuming this is fixed, keeping my eye open

presuming this is fixed, keeping my eye open
flux closed this issue 2024-03-28 23:48:47 +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#5711
No description provided.