This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
apps regualy randomly are crashing
B3rt
Member
since a few days (nothing is changed) several random apps seem to be crashing without any reason.
Eachtimne it are other apps.
I have to press restart of the app and then it works again.
Is there any way to get to know why these apps are crashing and to fix this?
Eachtimne it are other apps.
I have to press restart of the app and then it works again.
Is there any way to get to know why these apps are crashing and to fix this?
Comments
the best thing is to use candy for automaticly restart of a crashed app,make a flow so that there is a gap of 5 min between the crashing of the app and the restart
how to use this : https://forum.athom.com/discussion/comment/52250/#Comment_52250
It can happen because of a memory leak in some app, have seen an example of someone who created a loop in a flow that made BL crash all the time. Or you guys have just bad luck and encountered some bugs in various apps.
But to have an idea what may have caused this, a stracktrace is needed
Also this app itself has crashed a few times.
I will look for stacktrace the nexttime
Had several crashes but this app never did anything.
The flow which i created to restart a crashed app also has a action to report me that the app is restarted, unit now never received any message and i had to restart every app manually.
Installed this about 1 week ago, had at least 20 app crashes the last week and none of them where restarted or reported by the candy app.
flow looks like:
if: (candy card) app crashed
then: (candy card) Restart app by ID (use ID tag of IF statement) + send push message to my iphone.
As mentioned never did anything...
Stack trace:
No stack trace available
Exit code: null
Exit signal: SIGKILL
You didn't created a loop in your flows by accident? (Seen that before)
Did you restart homey? And how long after restarting homey does the problem start?
memory:
7.18 MB free of 511.54 MB , swap: 448.00 MB
memory usage::I am running more than 30 apps,
- Systeem (205.34 MB)
- Homey (86.31 MB)
- ...
and less than 300 MB swap,I think (know) we are reaching Homey's capability by installing more and more apps,
That's why they give a warning above 16 apps.
Maybe you have a BadApp that leaks memory, this could always bring Homey to kill Apps if it leaks enough.
Did you create an Issue in Github and send log (after Homey running for a couple of days and Apps Crashing)
Maybe Athom can pinpoint to the BaddApp for you. (and remove that BadApp ;-) )
Github is not the corrct place to ask for general support is my opiniun, it is for reporting bug found in the code.
Because i do not know if and where is a fault/bug i classify this under general support, dunno if this is correct.
Waiting on a reply from athom support, hope they can help
And on all of them no stack trace, only SIGKILL
Crashed this time where: betterlogic, countdown, present, flow backup and 1 more (which i don't remember)
I have seen someone on Slack who had a loop in Better logic that might have overloaded the processor and crashed as well...Not that you are having a flow that runs with better logic, countdown and presence and that gets looped
https://github.com/SergeRegoor/nl.regoor.flowbackup/blob/master/app.js
It must be an other app that triggers Homey's OS to do something to survive because of an memory problem somewhere else.
Did you send logs and email the id to support?
If you open Homey logger you can maybe see if flows loop or variables that continually change....
Great idea to check homey logger indeed <span></span>
Just 'normal' logs of devices and flows which are triggered, nothing strange to detect what would look like a flow error what could create a loop etc.
Got a response from them after 4 days with an answer what is for me useless.
They answered that this happens because the apps on homey use to much resourses and homey simply kills them.
No solution whatsoever...
Still have no idea which app is causing this
Why no solution such as:
- app X is causing problem
- try to change this to fix it
- Homey can only run 1 app, remove 27 apps
- Homey is not suitable for 3th party apps etc etc
Very disapointed in the support of athom.
But again, don't believe this is a flow issue...
AT the moment the last 2 days i had NO app crash (flows still running) but at the moment Homey is very very slow..
When i try to open the settings menu and view the apps it takes almost 30 seconds to show them
When i start logging it takes almost 1 minute before logging is visable, when running nothing is really happening.
Other menu's have same problems, opening them (using app or chrome) take very long time.
Just gave a reboot command, hope this will solve the problem of slow response.
some-one left:
set away-mode:
When away-mode is set:
That last one caused a loop which "saturated" Homey and caused apps to kill themselves.
If there's a memory-leak of 5 bytes in node.js, this loop alone will quickly cause issues... Indeed I think it's no use to post the flowbackup-json, rather unreadable...