@moopf, I haven't seen this particular error but I quite often see Lua errors that aren't accompanied by a stack trace. This makes finding the issue (which invariably is a coding error on my part) very difficult. Perhaps @atilim could take a look to see if this lack of stack trace can be fixed.
You may be able to get your own stack traceback using the debug.traceback function and maybe calling GTween with the pcall function. The trouble is, by the time you can call debug.traceback, the stack may have already unwound...
Atilim should ensure, whenever he uses lua_pcall, there is an appropriate error handler function on the Lua stack and the last arg of lua_pcall references this.
http://www.lua.org/manual/5.1/manual.html#pdf-next The behavior of next is undefined if, during the traversal, you assign any value to a non-existent field in the table. You may however modify existing fields. In particular, you may clear existing fields.
Here is a minimal code to get this error:
local t ={a =1}for k,v inpairs(t)do
t.a =nil-- deletion is allowed while iterating
t.b =2-- but insertion is notend
Let me look GTween's code and try to find where I violate this rule. Also let me try to find why I cannot see the stack traceback for this case.
Comments
best regards
http://www.giderosmobile.com/forum/discussion/comment/266#Comment_266
https://sites.google.com/site/xraystudiogame
Atilim should ensure, whenever he uses lua_pcall, there is an appropriate error handler function on the Lua stack and the last arg of lua_pcall references this.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
The behavior of next is undefined if, during the traversal, you assign any value to a non-existent field in the table. You may however modify existing fields. In particular, you may clear existing fields.
Here is a minimal code to get this error:
As a side note, to get stack traceback, I'm using db_errorfb function http://www.lua.org/source/5.1/ldblib.c.html#db_errorfb with lua_pcall internally.
Another option might be to use luaL_traceback instead..?
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
best regards
Best regards