PDA

View Full Version : LUA Errors whnm using DM



rpalmer68
October 12th, 2008, 04:57 PM
After a while I start getting a lot of LUA errors when sending DM commands to my LGTV.

Here's sending a single change aspect ratio command.


...\Girder5\luascript\Classes/Transport/Transaction.lua:398: Pending commands out of control, max = 40
[C]: in function `assert'
Locals
cmd : table: 06C9E230
self : table: 078E8680
C:\Program Files\Promixis\Girder5\luascript\Classes/Transport/Transaction.lua:398 in function <C:\Program Files\Promixis\Girder5\luascript\Classes/Transport/Transaction.lua:397>
(tail call): ?
(tail call): ?
(tail call): ?
Locals
value : 16:9
self : table: 06CC82D0
Upvalues
cmd : Aspect
C:\Program Files\Promixis\Girder5\luascript\Classes/Transport/ModelBased.lua:140 in function <C:\Program Files\Promixis\Girder5\luascript\Classes/Transport/ModelBased.lua:140>
Locals
value : 16:9
Upvalues
instance : table: 06CC82D0
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Providers/LGTV.lua:143 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Providers/LGTV.lua:143>
(tail call): ?
[C]: in function `xpcall'
Locals
pfunc : function: 015A5C40
pargs : table: 07BB5E80
arg : table: 07BB5E80
func : function: 07832940
Upvalues
clearLines : function: 07732378
errorHandler : function: 07732468
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Providers/Simple.lua:56 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Providers/Simple.lua:51>
Locals
self : table: 0774E1A0
Control : table: 07621198
Device : table: 06E488A0
newvalue : 16:9
Command : Action
Upvalues
Super : table: 076B9F78
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Providers/ComponentBased.lua:64 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Providers/ComponentBased.lua:62>
Locals
self : table: 06E488A0
newvalue : 16:9
Control : table: 07621198
Upvalues
DeviceCommands : table: 06DD3788
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Devices/Basic.lua:605 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Devices/Basic.lua:603>
Locals
newvalue : 16:9
self : table: 07621198
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Controls/Basic.lua:376 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Controls/Basic.lua:367>
Locals
newvalue : 16:9
Upvalues
self : table: 07621198
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Controls/Basic.lua:173 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Controls/Basic.lua:171>
Upvalues
arglist : table: 07955DE0
f : function: 07665538
C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:37 in function <C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:36>
[C]: in function `xpcall'
Locals
arglist : table: 07955DE0
c : function: 06C35560
arg : table: 07955DE0
f : function: 07665538
Upvalues
errorhandler : function: 07886748
C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:40 in function <C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:32>
Locals
self : table: 06E56908
_ : function: 07665538
(for state) : table: 0766E0A8
arg : table: 07AD1930
(for generator) : function: 06BB46F0
f : function: 07665538
Upvalues
callsubscriber : function: 06C144F8
C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:151 in function <C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:144>
Locals
self : table: 06E56908
time : 140599907.3495
arg : table: 06B0ED30
tt : false
C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:138 in function <C:\Program Files\Promixis\Girder5\luascript\Classes/Publisher.lua:111>
Locals
newvalue : 16:9
self : table: 07621198
C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Controls/Basic.lua:363 in function <C:\Program Files\Promixis\Girder5\luascript\DeviceManager/Controls/Basic.lua:362>
(tail call): ?
Locals
path : htpc1\LGTV\Lounge Plasma
Action : table: 06CA6620
control : table: 07621198
device : table: 06E488A0
Event : table: 07625668
settings : table: 06BB9790
Upvalues
ActionSource : Action
C:\Program Files\Promixis\Girder5\/plugins/treescript/Device Manager UI.lua:2759 in function <C:\Program Files\Promixis\Girder5\/plugins/treescript/Device Manager UI.lua:2744>


Initially after a girder reset nothing is logged when I send commands to the TV, but then after a day or so these errors start getting logged.

Richard

Rob H
October 13th, 2008, 02:00 AM
Either the TV has stopped responding to commands or there's a bug somewhere and one of the commands doesn't send a response when it's expected. This is going to be fun to track down.

Let me take a look at it

rpalmer68
October 13th, 2008, 03:36 AM
This is going to be fun to track down.


Oh great! :)

If I reset girder (F11) the errors go away for a while...

Let me know what I can do to help in terms of log details etc.

Richard

Rob H
October 13th, 2008, 05:47 AM
Setting the log level to something a bit lower might help so that we know what commands have been sent. That way we may be able to track down which command isn't producing a response.

rpalmer68
October 13th, 2008, 01:24 PM
Setting the log level to something a bit lower might help so that we know what commands have been sent. That way we may be able to track down which command isn't producing a response.

Set DM logging to debug and file logging on.

Here's a ZIP of all the logs generated plus the console, doesn;t seem to be a lot logged given it's debug level logging!

I reset girder (F11) and then sent aspect ratio change commands until I got the errors. I sent each command after the TV OSD had finished displaying the ratio change, so one every 20 seconds or so.

I also did the same with te source command and got the same results.

I will add that even when I get the errors the commands still work OK.

Richard

rpalmer68
November 5th, 2008, 02:33 AM
Hi Rob,

Just a reminder that I'm still getting these errors in the console.

Cheers
Richard

rpalmer68
October 13th, 2009, 02:10 PM
Um, err... I'm still getting these errors in my log.

Any ideas?

Thanks
Richard

Tieske8
July 20th, 2011, 06:51 AM
The problem is related to the queue size, the status polling fires a load of commands, which exceed the 40 max queue size.
Setting it to 200 fixed it.

rpalmer68
July 20th, 2011, 08:31 AM
The problem is related to the queue size, the status polling fires a load of commands, which exceed the 40 max queue size.
Setting it to 200 fixed it.

Great, how do I change the queue size please?

Tieske8
July 20th, 2011, 09:33 AM
Look for

local QueueSize = 40
in file


C:\Program Files\Promixis\Girder5\luascript\Classes\LGTV.lua
and set it to 200