lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

1) 5.1

2) CentOS 6.6

3) There is the big deal. It's right now intricated into dynamically linked libraries, and so on.

To summarize, I have at the beginning something like this:

    if (luaL_loadfile(L, "test.lua") || lua_pcall(L, 0, 0, 0)) {
        cout << "Error: " << lua_tostring(L, -1) << endl;

And then in a loop:

    lua_getglobal(L, "foo");
    luaT_pushudata(L, tensor, torch_Tensor);

    if (lua_pcall(L, 1, 0, 0)) {
        cout << "Error: " << lua_tostring(L, -1) << endl;

Note that I use Torch. I will try to extract some standalone example, but that is non-trivial.

On 10/07/2015 06:31 PM, Sean Conner wrote:
It was thus said that the Great Elie Michel once stated:
Is "13" really an error message?

My setup is a globally defined function, called many times from a C++
code. It works for the ~ 500 first calls and suddenly fails with this error.

Not easy to extract some simple example from my code, but I could
consider doing it if this "13" has ne clearer meaning…

   Some questions that might help with an answer:

	1) Which version of Lua?
	2) Which operating system?
	3) Which program is generating the error?
	   What code are you calling that is generating the error?