-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server crash when player joins #55
Comments
At the time of the crash, armor was on commit 1dec1f2, skinsdb was on commit Deleting the skin for the affected user does not help. Deleting the player entirely with My best guess is that armor is somehow getting an invalid or corrupt player object, and passing it as nil to skinsdb on-join, but it seems to only affect the one user. |
Got it. It's a typo in 3d_armor/wieldview/init.lua |
Looks like this is not yet fixed. Armor is at commit 38fc2cf and still seeing crashes, with identical error text (and line numbers). |
Hm player:get_player_name() does exists but player:get_string() does not? Is the method removed from minetest in the meantime? In skinsdb
is compatibility code for migration away from player inventory storage. The lines seems to be not compatible anymore to current minetest version and can be removed. Please test the change and setup an PR to skinsdb. |
I think the variable-name was just wrong, it should read from |
Is the bug really so old? The code is from 2018, for compatibility of previously skinsdb versions with player meta usage. Seem the compatibility newer worked? |
Since the issue is in skinsdb, I reopened minetest-mods/skinsdb#60 |
2021-06-26 07:17:44: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'wieldview' in callback environment_Step(): ...netest/worlds/Bananaland_World/worldmods/skinsdb/api.lua:8: attempt to call method 'get_string' (a nil value)
2021-06-26 07:17:44: ERROR[Main]: stack traceback:
2021-06-26 07:17:44: ERROR[Main]: ...netest/worlds/Bananaland_World/worldmods/skinsdb/api.lua:8: in function 'get_player_skin'
2021-06-26 07:17:44: ERROR[Main]: ...etest/worlds/Bananaland_World/worldmods/skinsdb/init.lua:47: in function 'update_player_visuals'
2021-06-26 07:17:44: ERROR[Main]: ...and_World/worldmods/minetest-3d_armor/wieldview/init.lua:64: in function 'update_wielded_item'
2021-06-26 07:17:44: ERROR[Main]: ...and_World/worldmods/minetest-3d_armor/wieldview/init.lua:75: in function 'func'
2021-06-26 07:17:44: ERROR[Main]: /usr/share/minetest/builtin/common/after.lua:20: in function </usr/share/minetest/builtin/common/after.lua:5>
2021-06-26 07:17:44: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:425: in function </usr/share/minetest/builtin/game/register.lua:409>
The text was updated successfully, but these errors were encountered: