# Script application is hanging

**URL:** <https://community.homey.app/t/script-application-is-hanging/146946>\
**Category:** Questions & Help\
**Tags:** homeyscript\
**Created:** [December 15, 2025, 10:31am UTC](https://community.homey.app/t/script-application-is-hanging/146946 "2025-12-15T10:31:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ola\_Lennartsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ola_lennartsson/32/153891_2.png) [@Ola\_Lennartsson](https://community.homey.app/u/Ola_Lennartsson)\
**Post date:** [December 15, 2025, 10:31am UTC](https://community.homey.app/t/script-application-is-hanging/146946/1 "2025-12-15T10:31:28Z")

</div>

I am running a homeyscript, approx 300 lines of code. I can see in the memory and cpu insight of the script application that these are increasing over time until the entire homeyscript app is hanging and I need to restart. Any ideas how to overcome this? Feels dreastic to restart the script app every hour.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 15, 2025, 10:35am UTC](https://community.homey.app/t/script-application-is-hanging/146946/2 "2025-12-15T10:35:13Z")

</div>

> [@HomeyScript, “RangeError: Maximum call stack size exceeded” exact every 10 minutes](https://community.homey.app/t/homeyscript-rangeerror-maximum-call-stack-size-exceeded-exact-every-10-minutes/146939/):
>
> Since approximately November 20th, I’ve been experiencing an issue where the Homey Script App frequently crashes. This starts occurring just 15-30 minutes after a cold restart (PTP) of the Homey Pro 2023. After the HomeyScript App crashes and is restarted, it works correctly for another 5-15 minutes. With every subsequent restart of the HomeyScript App, the crash happens faster, until a call to a HomeyScript Flow card returns the message “Not Enough Memory Left To Start App,” at which point the …

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 15, 2025, 11:55am UTC](https://community.homey.app/t/script-application-is-hanging/146946/4 "2025-12-15T11:55:06Z")

</div>

Your LLM is hallucinating.

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [December 15, 2025, 1:49pm UTC](https://community.homey.app/t/script-application-is-hanging/146946/5 "2025-12-15T13:49:40Z")

</div>

Maybe it’s possible to upgrade the library here?

> **[GitHub - athombv/com.athom.homeyscript: HomeyScript is a JavaScript-based scripting...](https://github.com/athombv/com.athom.homeyscript)**
>
> HomeyScript is a JavaScript-based scripting language for Homey that empowers users to unleash their creativity.

Maybe npm install homey-api@latest will work here?
