I changed my code to account for the 5 extra stack slots, and things
seemed to work fine, but now i'm still getting those assertions even
with those explicit checks, in a different place this time
> ocgcore_lua_api_check(void * state, const char * error_message)
> lua_next(lua_State * L, int idx) Riga 1261 C++
> findfield(lua_State * L, int objidx, int level) Riga 56 C++
> findfield(lua_State * L, int objidx, int level) Riga 62 C++
> pushglobalfuncname(lua_State * L, lua_Debug * ar) Riga 83 C++
> pushfuncname(lua_State * L, lua_Debug * ar) Riga 101 C++
> luaL_traceback(lua_State * L, lua_State * L1, const char * msg, int
level) Riga 158 C++
> interpreter::print_stacktrace(lua_State * L) Riga 602 C++
This is how luaL_traceback is being called
> luaL_checkstack(L, 6, nullptr);
> luaL_traceback(L, L, nullptr, 1);
The raised assertion is
c:\edopro\ygopro-master\lua5.4\lapi.c:1261: (L->top.p <= L->ci->top.p)
&& "stack overflow
This is happening on lua 5.4.6, i haven't tested with the current 5.4.7
rc but i doubt it'll have any impact