Page 1 of 1

Frequent Crash in builtin/misc.lua

PostPosted: Sun Dec 08, 2013 19:55
by BrandonReese
My server keeps crashing with this error.

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
14:46:40: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: /home/minetest/minetest/bin/../builtin/misc.lua:17: attempt to call field 'func' (a nil value)
14:46:40: ERROR[main]: stack traceback:
14:46:40: ERROR[main]:  /home/minetest/minetest/bin/../builtin/misc.lua:17: in function </home/minetest/minetest/bin/../builtin/misc.lua:9>

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

PostPosted: Sun Dec 08, 2013 20:11
by PilzAdam
A mod causes this.

PostPosted: Sun Dec 08, 2013 20:35
by BrandonReese
PilzAdam wrote:A mod causes this.


Any idea what I might look for in a mod that could cause this?

PostPosted: Sun Dec 08, 2013 20:44
by kaeza
From what I see, it seems like a mod is passing a nil parameter to register_globalstep. You may want to grep for that.

PostPosted: Sun Dec 08, 2013 21:05
by PilzAdam
BrandonReese wrote:
PilzAdam wrote:A mod causes this.


Any idea what I might look for in a mod that could cause this?

Look for minetest.after() calls which second parameter is nil.