I noticed the following serious problem with Homey.
Homeyscript is consuming memory which increases in time.
After a short period (20 to 90 minuts) there is probably a cleanup function to reset the memory consumption.
During the memory cleanup (the dips in the graph) every Homeyscript freezes and does not run during 2 minuts
In the graph below I am sure there is no Homeyscript running. (based on triggers that could be fired.)
No, the app is using too much memory (more than 120MB for more than 50 seconds) and gets restarted. Which also explains why the cards are temporarily unavailable.
An app that gets restarted due to using too much memory basically crashes, which is different from a manual restart. Also, restarts due to crashes are delayed from anywhere between 10 to 120 seconds.
Yes I understand. But found no documentation about this.
So Homeyscript crashes because it has memory leaks ?
When not running any script. I see same behavior.
It’s not documented, I’m looking at Homey’s core code.
Right after the app is started it’s already consuming about 60MB of RAM. On my Homey, which does absolutely nothing, it’s about the same. However, I don’t see any notable increases in memory, so it’s not leaking memory when it has nothing to do.
As it says a simulator that reacts on Homeyscript SDK calls but without the physical Homey.
It runs a JS module and enables me to debug code as standalone VS Code debug target. It only supports static calls. Or in other words no live support of device responses. I use this for basic code structuring of Homeyscript development. For App development I use a setup which also enables live target debugging for Typescript with VS Code. Maybe somewhere in future there will be a Athom supported development environment for Homeyscript.
Robert thanks. Issue #53 is indeed related.
I discovered this issue a few months ago and reported this. Until today zero respons. Not even a confirmation of the receipt.
Further you said you have read this in the source code. Can you share ? I only have the SDK sources.