PDA

View Full Version : Webserver - weird behaviour



Mike C
August 29th, 2008, 06:25 PM
It seems that when changing locations in the webserver, device states are sent back to Girder. In case of Audio devices with Power switches, these devices are turned on. Log output below



Time Date Source Details Payloads
17:27:51:826 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z1\Power Value=On
17:27:51:748 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:51:591 8/29/2008 Russound RNET Remote:1:1:Display
17:27:50:748 8/29/2008 Russound RNET Zone Change:1:4:SharedSource=On
17:27:50:732 8/29/2008 Device Manager Main Floor\Dining Room\Audio:Shared Source=On
17:27:50:716 8/29/2008 Russound RNET Zone Change:1:1:SharedSource=On
17:27:50:701 8/29/2008 Device Manager Main Floor\Kitchen\Audio:Shared Source=On
17:27:50:685 8/29/2008 Russound RNET Zone Change:1:1:State=On
17:27:50:685 8/29/2008 Scripting Lua Success (Nothing Triggered)4831.gml:\testing\kitchen off\Scripting
17:27:50:670 8/29/2008 Device Manager Main Floor\Kitchen\Audio:Power=On
17:27:49:748 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:47:748 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:45:748 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:44:310 8/29/2008 Russound RNET Zone Change:Master:0:State=On
17:27:44:310 8/29/2008 Device Manager Home\Audio Master:Power=On
17:27:44:248 8/29/2008 Russound RNET Remote:1:1:Display
17:27:43:763 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z4\Power Value=On
17:27:43:748 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:43:732 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\00.5F.7C\Level Value=0
17:27:43:716 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z5\Bass Value=0
17:27:43:669 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z5\Treble Value=0
17:27:43:654 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z5\Balance Value=0
17:27:43:638 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z5\Volume Value=20
17:27:43:623 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\06.54.98\Level Value=0
17:27:43:607 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\07.A4.06\Level Value=0
17:27:43:591 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\00.48.F8\Level Value=0
17:27:43:576 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\06.88.BD\Level Value=0
17:27:43:560 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z3\Bass Value=50
17:27:43:529 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z3\Treble Value=55
17:27:43:513 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z3\Balance Value=0
17:27:43:498 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z3\Volume Value=20
17:27:43:482 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\01.08.48\Level Value=0
17:27:43:466 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\03.65.9F\Level Value=0
17:27:43:451 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\03.D2.9F\Level Value=0
17:27:43:435 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\03.B7.B0\Level Value=0
17:27:43:419 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\03.CD.13\Level Value=0
17:27:43:404 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z1\Bass Value=45
17:27:43:388 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z1\Treble Value=50
17:27:43:388 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z1\Balance Value=0
17:27:43:373 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z1\Volume Value=20
17:27:43:357 8/29/2008 Russound RNET Zone Change:1:4:State=On
17:27:43:357 8/29/2008 Device Manager Main Floor\Dining Room\Audio:Power=On
17:27:43:341 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\08.B8.0C\Level Value=0
17:27:43:326 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\06.52.9C\Level Value=0
17:27:43:310 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\0C.63.5B\Level Value=0
17:27:43:294 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\00.25.BC\Level Value=0
17:27:43:263 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z4\Bass Value=0
17:27:43:248 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z4\Treble Value=0
17:27:43:232 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z4\Balance Value=0
17:27:43:201 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\RussoundRNET\C1Z4\Volume Value=18
17:27:43:185 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\01.78.4C\Level Value=0
17:27:43:169 8/29/2008 WebServer /dmex2/ajax/setvalue.lhtml Control=haitx\InsteonC\00.25.BD\Level Value=0
17:27:42:185 8/29/2008 WebServer /dmex2/ajax/getdevicelist.lhtml id=484543 location=Main Floor
17:27:41:669 8/29/2008 WebServer /dmex2/ajax/getimage.lhtml Control=haitx\MediaBridge\ha1u:1\CovertArt r=1220048861669
17:27:41:654 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:39:669 8/29/2008 WebServer /dmex2/ajax/getimage.lhtml Control=haitx\MediaBridge\ha1u:1\CovertArt r=1220048859669
17:27:39:654 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:37:685 8/29/2008 WebServer /dmex2/ajax/getimage.lhtml Control=haitx\MediaBridge\ha1u:1\CovertArt r=1220048857685
17:27:37:654 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543
17:27:35:701 8/29/2008 WebServer /dmex2/ajax/getimage.lhtml Control=haitx\MediaBridge\ha1u:1\CovertArt r=1220048855701
17:27:35:654 8/29/2008 WebServer /dmex2/ajax/getstatus.lhtml id=484543

Mike C
August 29th, 2008, 06:32 PM
I am seeing this in the lua console when a client is using the webserver.

Also see "off" in the console. I think its coming from the webserver as well.

Ron
August 29th, 2008, 06:33 PM
Please be more precise. What exactly did you do.

Ron
August 29th, 2008, 06:35 PM
Regarding the image error, I assume something is trying to get an image (say weather radar) that has not yet been downloaded.

Mike C
August 29th, 2008, 06:39 PM
The attached log file shows a slow lua memory leak. Webserver connects at 640am or so...

Ron
August 29th, 2008, 06:40 PM
setvalue bug confirmed.

'off' i cannot see.

Mike C
August 29th, 2008, 06:42 PM
all i am doing is changing locations - ie goto a page, say main floor, go home, then go back to main floor and the audio devices turn on. i never press any buttons on the pages apart from navigating.

Mike C
August 29th, 2008, 06:46 PM
Regarding the image error, I assume something is trying to get an image (say weather radar) that has not yet been downloaded.

not using weather.... might be cover art. is there a way to determine which file it cannot find?

Ron
August 29th, 2008, 06:49 PM
Change the file getimage.lhtml in dmex2/ajax to output some more info about the control requested.

Ron
August 29th, 2008, 06:58 PM
setvalue bug fixed. Let me know if you still see it after the next release. I've applied this fixed to sliders and switches, i do not believe the other controls are affected.

Mike C
August 29th, 2008, 10:16 PM
setvalue bug fixed. Let me know if you still see it after the next release. I've applied this fixed to sliders and switches, i do not believe the other controls are affected.

any ideas on the memory leak?

Mike C
August 29th, 2008, 10:21 PM
Change the file getimage.lhtml in dmex2/ajax to output some more info about the control requested.

this is simply an image that is not ready. probably do not need this output every second to the console.

it seems the mb component does not get the cover art but the mb device has a coverart control

Mike C
September 2nd, 2008, 04:06 PM
The attached log file shows a slow lua memory leak. Webserver connects at 640am or so...


Ron, have you been able to reproduce this?

Ron
September 2nd, 2008, 04:10 PM
No but I had already started work on the webserver code before you submitted this. Testing over the weekend showed no significant memory increase after 60GB of data transfer (many hundreds of thousands of requests).

Mike C
September 14th, 2008, 05:23 PM
hi ron,

is an update coming on this?

Mike C
October 4th, 2008, 04:46 PM
the webserver on .540 is still leaking memory in lua.

2 clients connected. no interaction apart from the DM pages showing.

Ron
October 5th, 2008, 12:09 PM
Cannot reproduce.

Mike C
October 19th, 2008, 10:09 PM
Cannot reproduce.

It seems to be only when the mediabridge component is being used - and this is the one that generates an image failure (because the component does not get cover art). so something must be happening in the webserver when an image fails.