3d_armor/3d_armor/api.lua:723: attempt to index local 'inv' (a nil value) #5978

Open
opened 2024-01-14 12:11:26 +00:00 by AliasAlreadyTaken · 4 comments
2024-01-14 12:10:27: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'petz' in callback environment_Step(): ....7.0/Minetest_live/bin/../mods/3d_armor/3d_armor/api.lua:723: attempt to index local 'inv' (a nil value)
2024-01-14 12:10:27: ERROR[Main]: stack traceback:
2024-01-14 12:10:27: ERROR[Main]: 	....7.0/Minetest_live/bin/../mods/3d_armor/3d_armor/api.lua:723: in function 'func'
2024-01-14 12:10:27: ERROR[Main]: 	...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:27: in function <...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:11>
2024-01-14 12:10:27: 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>

``` 2024-01-14 12:10:27: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'petz' in callback environment_Step(): ....7.0/Minetest_live/bin/../mods/3d_armor/3d_armor/api.lua:723: attempt to index local 'inv' (a nil value) 2024-01-14 12:10:27: ERROR[Main]: stack traceback: 2024-01-14 12:10:27: ERROR[Main]: ....7.0/Minetest_live/bin/../mods/3d_armor/3d_armor/api.lua:723: in function 'func' 2024-01-14 12:10:27: ERROR[Main]: ...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:27: in function <...e/mt/5.7.0/Minetest_live/bin/../builtin/common/after.lua:11> 2024-01-14 12:10:27: 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
label 2024-01-14 13:05:44 +00:00
AliasAlreadyTaken added the
2. prio/critical
label 2024-01-14 13:18:32 +00:00
Member

ServerError: AsyncErr: Lua:
Alias says server was restarted manually.

`ServerError: AsyncErr: Lua:` Alias says server was restarted manually.
flux added the
4. step/ready to QA test
label 2024-01-21 22:54:53 +00:00
Member

whoops, forgot to note that i reported this upstream. it should be fixed now https://github.com/minetest-mods/3d_armor/issues/132

how to test:

local player_name = "Boris" -- or whoever
local player = minetest.get_player_by_name(player_name)
local armor = ItemStack("3d_armor:helmet_wood")
armor:equip(player, armor)
armor:unequip(player, armor)
minetest.disconnect_player(player_name)
whoops, forgot to note that i reported this upstream. it should be fixed now https://github.com/minetest-mods/3d_armor/issues/132 how to test: ```lua local player_name = "Boris" -- or whoever local player = minetest.get_player_by_name(player_name) local armor = ItemStack("3d_armor:helmet_wood") armor:equip(player, armor) armor:unequip(player, armor) minetest.disconnect_player(player_name) ```
AliasAlreadyTaken added this to the 1.1.123 milestone 2024-02-26 12:37:55 +00:00
AliasAlreadyTaken added the
ugh/QA main
label 2024-02-26 12:37:59 +00:00
Author
Owner

QA

Testing via to avoid global armor and local armor conflict

local player_name = "Boris" -- or whoever
local player = minetest.get_player_by_name(player_name)
local item = ItemStack("3d_armor:helmet_wood")
armor:equip(player, item)
armor:unequip(player, item)
minetest.disconnect_player(player_name)

At the end I get disconnected, but upon next login, I wear the helmet: OK

Running this in snippets results in a crash, but it appears only somewhat related to this issue: your-land/bugtracker#6358

QA Testing via to avoid global `armor` and local `armor` conflict ``` local player_name = "Boris" -- or whoever local player = minetest.get_player_by_name(player_name) local item = ItemStack("3d_armor:helmet_wood") armor:equip(player, item) armor:unequip(player, item) minetest.disconnect_player(player_name) ``` At the end I get disconnected, but upon next login, I wear the helmet: OK Running this in snippets results in a crash, but it appears only somewhat related to this issue: your-land/bugtracker#6358
Member

the upstream fix isn't actually valid - it doesn't check whether the player is still connected.

the upstream fix isn't actually valid - it doesn't check whether the player is still connected.
flux added
3. source/mod upstream
and removed
4. step/ready to QA test
ugh/QA main
labels 2024-03-29 22:38:59 +00:00
flux removed this from the 1.1.123 milestone 2024-03-29 22:39:04 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#5978
No description provided.