Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Something is eating my memory.....


Question

Posted

Hi,

I am looking for help to figure out what is causing the memory (RAM) consumption on my HC2 to climb to 90%.

If I reboot the HC in the evening the memory seem to climb over night and the following morning some scenes will start to fail and the box will ultimately become unresponsive.

 

My setup is as follows (approx.)

  • HC2 - 4.070
  • 60 devices
  • 15 virtual devices
  • 24 scenes – mix of “when true do” and ones that start vix a button
  • 35 global variables (mostly SonosLastCmd and TTS as I have 14 zones)

 

From reading on the forum I understand that the number of scenes, global variables, devices and virtual devices is not an issue for the HC2 from a capacity.

 

I suspect I have a rogue scene but have been through them all looping for infinite loops that accumulate resources over time. All of my scenes are Lua and reasonably simply. Determine house occupancy from a number of sensors, wat for a global variable to change and trigger an action, etc

 

I there some way to review a log of all that is happening so I can pick my way though it for issue. Or is there another way to see what is consuming the memory. I could disable one scene every evening but that would take too long and I am writing new scenes every week.

 

Any help appreciated

Thanks

-F

  • Answers 44
  • Created
  • Last Reply

Top Posters For This Question

Recommended Posts

  • 0
Posted
On 2/5/2016 at 11:32 PM, AutoFrank said:

One last one if I might.

Do you have any issues with global variables not updating when you use "setGlobal"

I have one for day/night based on lux and it seems unreliable

 

Hi @AutoFrank.

Did you solve your unreliability of "setGlobal"?  I'm having that exact issue at the moment.  I can read a value (UHASGuestState), check if it is "Yes" or "No", and set it to the opposite, then read it back.  Sometimes it changes, sometimes it doesn't.

 

Cheers,
Geoff.

  • 0
  • Inquirer
  • Posted
    38 minutes ago, clowg said:

     

    Hi @AutoFrank.

    Did you solve your unreliability of "setGlobal"?  I'm having that exact issue at the moment.  I can read a value (UHASGuestState), check if it is "Yes" or "No", and set it to the opposite, then read it back.  Sometimes it changes, sometimes it doesn't.

     

    Cheers,
    Geoff.

    @clowg

     

    I didn't really TBH, it just seemed to disappear...

    I have seen the globals get "corrupted" or just not responding as expected and using a delete and recreate the variable works for me...

    • 0
    Posted

    Huh.  Can’t do that with UHAS variables...  @Sankotronic might get a tad pissed off :)

     

    I’ve tried adding a second delay between the read and write, and second read but that didn’t help.

    • 0
    Posted
    3 hours ago, clowg said:

    Huh.  Can’t do that with UHAS variables...  @Sankotronic might get a tad pissed off :)

     

    I’ve tried adding a second delay between the read and write, and second read but that didn’t help.

     

    @clowg,

     

    I will definitely not get pissed off if you try to change something. UHAS is actually checking global variables before using them and recreating if found any trouble. Only global variable that I had problem with corruption was UHASWeatherState, but at the end I found that was corrupted by my bug in code and not by system itself. I have now corrected that bug in UHAS Weather State VD so it should not happen again.

     

    Also, in rear occasions Main scene FTBE stops (not UHAS version, but the one version before) due to some problems with global variables probably, but never found real reason. UHAS beta version didn't stop until now even it is now reading UHASSchedTable global variable on each loop run.

     

    UHASGuestState is standard predefined global variable that is fully supported by HC2 so I'm surprised that you have problems with it. I can understand that global variables which stores tables can have problems and can be destroyed if Save button is used in global variable panel, but predefined should not have any problems and I haven't noticed that.

     

    Can you send me code that you use to change global variable value and read it's value? 

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


    ×
    ×
    • Create New...