Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Girder 5 Crashing 2-3 times a day......narrowed down to Script

  1. #1

    Default Girder 5 Crashing 2-3 times a day......narrowed down to Script

    I am running Girder 5 Build 542 on Windows XP SP3 Home Edition.

    Girder has been crashing consistently for a month at 2-3 times every day. I disabled all plugins and events, and narrowed it down to the following script. I am using it to grab images from my security cameras and send them to my netremote touchscreens to view the video feed. The timer is set to update the images every 3000ms.

    local url = "http://192.168.2.5:81/mobile/channel01.jpg"
    NetRemote.SetImageURL("camera01", url)

    local url = "http://192.168.2.5:81/mobile/channel02.jpg"
    NetRemote.SetImageURL("camera02", url)

    local url = "http://192.168.2.5:81/mobile/channel03.jpg"
    NetRemote.SetImageURL("camera03", url)


    local url = "http://192.168.2.5:81/mobile/channel04.jpg"
    NetRemote.SetImageURL("camera04", url)


    local url = "http://192.168.2.5:81/mobile/channel05.jpg"
    NetRemote.SetImageURL("camera05", url)


    local url = "http://192.168.2.5:81/mobile/channel06.jpg"
    NetRemote.SetImageURL("camera06", url)


    local url = "http://192.168.2.5:81/mobile/channel07.jpg"
    NetRemote.SetImageURL("camera07", url)


    local url = "http://192.168.2.5:81/mobile/channel08.jpg"
    NetRemote.SetImageURL("camera08", url)

    local url = "http://192.168.2.5:81/mobile/channel09.jpg"
    NetRemote.SetImageURL("camera09", url)

    local url = "http://192.168.2.5:81/mobile/channel10.jpg"
    NetRemote.SetImageURL("camera10", url)

    local url = "http://192.168.2.5:81/mobile/channel11.jpg"
    NetRemote.SetImageURL("camera11", url)

    local url = "http://192.168.2.5:81/mobile/channel12.jpg"
    NetRemote.SetImageURL("camera12", url)

    local url = "http://192.168.2.5:81/mobile/channel14.jpg"
    NetRemote.SetImageURL("camera14", url)

    local url = "http://192.168.2.5:81/mobile/channel15.jpg"
    NetRemote.SetImageURL("camera15", url)

    local url = "http://192.168.2.5:81/mobile/channel16.jpg"
    NetRemote.SetImageURL("camera16", url)
    I am not positive, but it seemed like Girder was not crashing when I only had 2 or 3 camera images being set. Once I added more, it started crashing. Any idea as to what is causing this problem? I don't know how else to go about it! Thanks!

  2. #2
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Can you try this using build 543?

    Each call to NetRemote.SetImageURL will create a new thread. Perhaps you're creating too many threads?
    --Rob

  3. #3

    Default

    I just updated to the latest. I will see if it fixes the issue.

    I have the camera script running off of a timer script which is set to a timeout of 3000ms.

    Also, about every third or fourth time the script runs, I get an error that says Netremote: the image could not be set for http://.... or something like that.

  4. #4

    Default

    Upgraded to the latest build. It is still crashing.

  5. #5
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    When you say that Girder is crashing, what do you mean exactly?

    Does it shut down completely? With an error message? Or does it just lock up?

    What concerns me is the number of threads you're creating - each call to SetImageFromURL spawns a thread, so you're currently creating 16 threads every 3 seconds. This should be fine, providing your webserver can service all 16 requests in the 3 second period. If it can't, then you'll simply be piling on the threads each time that script is called.

    If you increase the time to say 5000 does that improve matters?

    I've attached a replacement for luascript\NetRemote.lua that adds a function SyncSetImageURL that doesn't use threads - try using this function instead of SetImageURL and see if it works better.
    Attached Files Attached Files
    --Rob

  6. #6
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    One other thing... I use this type of call myself for my security cameras however I have a variable set that toggles the function on and off. It only makes the calls when the Netremote popup for the camera viewing is open. This reduces the burden since I am not staring at those camera feeds all the time.
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

  7. #7

    Default

    Quote Originally Posted by Rob H View Post
    When you say that Girder is crashing, what do you mean exactly?

    Does it shut down completely? With an error message? Or does it just lock up?
    It appears to lock up. Whenever I check on it after it has "crashed", the Girder screen is still up, but I get the windows program error report. I click don't send and Girder closes. So I suppose it is locking up, not crashing. I apologize for the confusion.

    I will try both the 5000 approach and the new script approach. Thanks!

  8. #8

    Default

    I am getting the following error now for each camera image

    Time Date Source Details Payloads
    10:22:30:694 5/18/2009 NetRemote Error: Connection Closed sending image variable camera12

  9. #9
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    Can you post the content of the windows error report?
    Ron
    No support through PM

  10. #10

    Default

    Would you like for me to revert back to the old netremote image script so I can cause the error?

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •