Minetest_game: sfinv nil value crash in on_joinplayer()

Created on 13 Jul 2017  路  8Comments  路  Source: minetest/minetest_game

2017-07-13 13:03:15: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sfinv' in callback on_joinplayer(): ...minetest/games/minetest_game/mods/creative/inventory.lua:85: attempt to index local 'inv' (a nil value)
2017-07-13 13:03:15: ERROR[Main]: stack traceback:
2017-07-13 13:03:15: ERROR[Main]:       ...minetest/games/minetest_game/mods/creative/inventory.lua:85: in function 'get_formspec'
2017-07-13 13:03:15: ERROR[Main]:       /usr/share/minetest/games/minetest_game/mods/sfinv/api.lua:111: in function 'set_player_inventory_formspec'
2017-07-13 13:03:15: ERROR[Main]:       /usr/share/minetest/games/minetest_game/mods/sfinv/api.lua:132: in function </usr/share/minetest/games/minetest_game/mods/sfinv/api.lua:130>
2017-07-13 13:03:15: ERROR[Main]:       /usr/share/minetest/builtin/game/register.lua:412: in function </usr/share/minetest/builtin/game/register.lua:392>
Package: minetest
Version: 0.4.16-ppa5~ubuntu16.04.1
Priority: optional
Section: games
Maintainer: Juhani Numminen <[email protected]>
Installed-Size: 22.9 MB
Depends: libc6 (>= 2.15), libcurl3-gnutls (>= 7.16.2), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:3.0), libirrlicht1.8, libleveldb1v5, libluajit-5.1-2, libncurses5 (>= 6), libopenal1 (>= 1.14), libsqlite3-0 (>= 3.5.9), libstdc++6 (>= 5.2), libtinfo5 (>= 6), libvorbisfile3 (>= 1.2.0), libx11-6, zlib1g (>= 1:1.1.4)
Conflicts: minetestc55
Replaces: minetest-server, minetestc55
Download-Size: 7,376 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/minetestdevs/stable/ubuntu xenial/main amd64 Packages
Description: Infinite-world block sandbox game and engine
 Minetest is an infinite-world block sandbox game and a game engine, inspired
 by InfiniMiner, Minecraft and the like.

N: There is 1 additional record. Please use the '-a' switch to see it
Unconfirmed bug

Most helpful comment

@ignaciomartinCFR Your report is invalid. capturetheflag requires 0.4.17-dev to work. If you look carefully, the source of this issue is denoted in the top most line, which states that the error's source is found in the crafting mod.
Check out this forum post to compile it on your computer: https://forum.minetest.net/viewtopic.php?p=319392#p319392

All 8 comments

What have you done when this happened?
Please set a better title.

@rubenwardy

I'm not sure how this is possible. The line before then calls update_inventory which calls init_inventory which would set inventory. I can't see any paths by which it wouldn't work. Unless:

minetest.get_player_by_name(name).get_player_name() ~= name

hmmm

Mods:https://github.com/zaoqi/minetestmodpack_reality
Map:https://forum.minetest.net/viewtopic.php?f=12&t=9496

@rubenwardy I came across a similar issue once before #1722, not sure if it is related though.

Unconfirmed, can reopen if reproduced.

2018-05-24 13:01:53: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sfinv' in callback on_joinplayer(): ...ver/.minetest/games/capturetheflag/mods/crafting/api.lua:272: attempt to call field 'sha1' (a nil value)
2018-05-24 13:01:53: ERROR[Main]: stack traceback:
2018-05-24 13:01:53: ERROR[Main]: ...ver/.minetest/games/capturetheflag/mods/crafting/api.lua:272: in function 'calc_inventory_list_hash'
2018-05-24 13:01:53: ERROR[Main]: ...minetest/games/capturetheflag/mods/crafting/stations.lua:39: in function 'get_formspec'
2018-05-24 13:01:53: ERROR[Main]: ...server/.minetest/games/capturetheflag/mods/sfinv/api.lua:111: in function 'set_player_inventory_formspec'
2018-05-24 13:01:53: ERROR[Main]: ...server/.minetest/games/capturetheflag/mods/sfinv/api.lua:132: in function <...server/.minetest/games/capturetheflag/mods/sfinv/api.lua:130>
2018-05-24 13:01:53: ERROR[Main]: /usr/share/games/minetest/builtin/game/register.lua:412: in function

@rubenwardy
@paramat

ii minetest-server 0.4.16+repack-4
Ubuntu 18.04 LTS \n \l

@ignaciomartinCFR Your report is invalid. capturetheflag requires 0.4.17-dev to work. If you look carefully, the source of this issue is denoted in the top most line, which states that the error's source is found in the crafting mod.
Check out this forum post to compile it on your computer: https://forum.minetest.net/viewtopic.php?p=319392#p319392

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cx384 picture cx384  路  6Comments

MarkuBu picture MarkuBu  路  5Comments

FeXoR-o-Illuria picture FeXoR-o-Illuria  路  4Comments

Desour picture Desour  路  6Comments

paramat picture paramat  路  6Comments