Time  Nick        Message
01:02 gnstaxo     Hi there.
01:07 * Lone_Wolf waves
01:54 df458       Hello
01:54 df458       Oh, actually they logged off in the interim
01:55 df458       Ah well
03:05 swift110    hey all
17:49 scr267      huh
17:50 scr267      well, finally I am able to reproduce this bug minetest/src/script/cpp_api/s_base.cpp:89: static int ScriptApiBase::luaPanic(lua_State*): A fatal error occurred: LUA PANIC: unprotected error in call to Lua API (attempt to call a nil value)
17:50 scr267      It happens when I chat
17:52 SwissalpS   I'm working on a technic tool and would like the charge-bar to show straight after creation (crafting/give). Is there a way to do this without hooking in to minetest.register_on_craft() ?
17:53 SwissalpS   basically adding metadata in minetest.register_tool()
17:56 Krock       scr267: try vanilla minetest, no mods, and an up-to-date client
17:56 scr267      Krock, yeah just doing that right now... actually that crash was happening with all the mods disabled
17:57 scr267      I've just configured a new basic world
17:57 scr267      WoaW
17:57 scr267      and it crashed
17:57 scr267      Krock: I will try with an up-to-date client
17:59 scr267      Krock yep, even with an up-to-date client it crashes on chat
17:59 Krock       (also disable csms)
17:59 Krock       using a build from today?
17:59 scr267      Would you like to give it a try?  aurelium.minetest.land 30002
17:59 scr267      hum, I can rebuild it - it's a build from yesterday
18:00 scr267      from branch stable-5
18:00 Krock       uhm stable
18:01 scr267      crashed
18:01 scr267      Thanks for testing
18:01 scr267      2020-02-05 13:01:09: ACTION[Server]: player Krock (id=2, hp=20) punched player scr267 (id=1, hp=19), damage=1
18:01 scr267      2020-02-05 13:01:10: ERROR[Server]: In thread 7f0e4d3ae700:
18:01 scr267      2020-02-05 13:01:10: ERROR[Server]: /builds/aurelium/aurelium-project/build/minetest/src/script/cpp_api/s_base.cpp:89: static int ScriptApiBase::luaPanic(lua_State*): A fatal error occurred: LUA PANIC: unprotected error in call to Lua API (attempt to call a nil value)
18:01 scr267      Ooops, sorry for the line spamming
18:01 Krock       interesting
18:02 scr267      I'll try recompiling once more
18:02 Krock       stable-5 minetest_game as well?
18:02 scr267      yes
18:02 scr267      ll
18:02 scr267      oops, I thought I was in my CLI, soryr
18:03 Krock       tbh I never got any error like that. It looks like something's going wrong with the function calling in the API
18:03 Krock       missing callbacks, for example
18:03 scr267      I'm git pulling again and ill recompile
18:04 Krock       Minetest tries to call a function which does not exist in Lua
18:04 Krock       so either your "builtin" was modified, or is modified by a mod. or an object definition/callback is not defined correctly
18:05 scr267      Yeah I had assumed maybe something in my DB, so I just created a new empty world.. no mods, nothing.
18:06 Krock       you could try to compile with LuaJIT or builtin Lua (whatever currently isn't in use), but that's unlikely to change anything there
18:08 scr267      Huh... brand new build and same error... I recompiled just now
18:10 scr267      I've got a core dump, I'll try to gdb into it
18:14 scr267      Krock, here's the backtrace.. looks like something in the formatChatMessage
18:14 scr267      https://paste.centos.org/view/0d919b12
18:16 Krock       formatChatMessage calls to a Lua functions
18:16 scr267      I'm going to rebuild without using luajit
18:17 Krock       core.format_chat_message is needed
18:17 Krock       https://github.com/minetest/minetest/blob/stable-5/builtin/game/chat.lua#L19
18:18 Krock       your builtin code is incomplete
18:19 scr267      er
18:19 scr267      let me check what I've got
18:19 scr267      I have that code locally
18:20 scr267      Oh maybe its using another location's code
18:23 scr267      Krock, I think you figured it out... the binary was pointing to minetest resources in /usr/local/share/minetest by default I guess.
18:23 scr267      those were not updated :(
18:23 scr267      ARG
18:23 Krock       !next
18:23 MinetestBot Another satisfied customer. Next!
18:24 scr267      I'll rebuild, and copy all the files over and give it another run
18:30 SwissalpS   sorry if I budged in out of order earlier O:-)
19:23 scr267      Krock, by the way - thanks again!!!!
19:23 scr267      It works
19:23 Krock       np
21:26 MinetestBot 02[git] 04sfan5 -> 03minetest/minetest_game: Convert minetest.sound_play uses to ephemeral 13d3e26db https://git.io/JvZmq (152020-02-05T21:24:23Z)
22:50 Corey[m]    Well, that was new
22:50 Corey[m]    Just got an OOM (Out of Memory) error