godot_luaAPI icon indicating copy to clipboard operation
godot_luaAPI copied to clipboard

Possible stack leak

Open KevBruner opened this issue 11 months ago • 1 comments

While debugging an issue using getVariant with a table that had a __pairs metamethod, I noticed that the stack top was creeping up 1 index per frame, even before I started modifying code.

By adding printf( "stack top %d\n", lua_gettop(state)); at the entry of getVariant it would produce a result that was constantly incrementing, which is suspicious. I'm not familiar enough with the rest of the code to investigate more deeply at the moment.

KevBruner avatar Mar 15 '24 21:03 KevBruner

Possible relation to https://github.com/WeaselGames/godot_luaAPI/issues/208?

SumianVoice avatar Apr 24 '24 04:04 SumianVoice