What does "LuaInterface::StartEngine returned false: 0" mean

Hi

I am trying to run some code from the Test Luup window (under Apps) but I receive the following message

01 08/26/13 19:32:47.651 LuaInterface::StartEngine returned false: 0 <0x30c8b680>
01 08/26/13 19:32:47.651 JobHandler_LuaUPnP::RunLua failed: username = “parkerc@iemail.com

Does anyone know what this means,. there are no other references to this error on the forum that I can see, i’m also not sure if it is even related to the code I am trying to run in the test window, but the two seem to occur at the same time…

This is normal if your Test Luup code returned false.

Hi Rex

Thanks,

Shouldn’t that error occur after the other RunLua failed error?
Also if I am looking for either a true or false (yes/no) response from the code is that first error therefore positive?

The Test Luup facility is seriously flawed. It will always throw an error if your code returns false. It will also throw an error if there is a syntax error in your code. The log doesn’t make it too easy to figure-out where the problem is.

For this reason, many of us use external Lua environments to pre-test code before trying it in Vera. I use, and recommend, Lua for Windows. It does not support luup.xxx calls but it will help you get the rest of your Lua working correctly before you add those calls and test it in Test Luup or a scene.