Page 1 of 1

Error in builtin/chatcommands.lua

PostPosted: Sun Jun 16, 2013 05:16
by BrandonReese
Using /unban
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
09:06:32: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: /home/brandon/minetest/bin/../builtin/chatcommands.lua:647: attempt to call field 'unban_player_or_ip' (a nil value)
09:06:32: ERROR[main]: stack traceback:

In thread b74d5700:
/home/brandon/minetest/src/main.cpp:2179: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b74d5700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))
(Leftover data: #4  void ItemStack::serialize(std::ostream&) const)

PostPosted: Sun Jun 16, 2013 09:18
by kaeza
BrandonReese wrote:Using /unban
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
09:06:32: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: /home/brandon/minetest/bin/../builtin/chatcommands.lua:647: attempt to call field 'unban_player_or_ip' (a nil value)
09:06:32: ERROR[main]: stack traceback:

In thread b74d5700:
/home/brandon/minetest/src/main.cpp:2179: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b74d5700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))
(Leftover data: #4  void ItemStack::serialize(std::ostream&) const)

Tried it just now; got the same error.

PostPosted: Sun Jun 16, 2013 12:09
by kahrl
This was a long standing typo that got "activated" by the scriptapi separation. Fixed in 4405310184.