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 Homey Pro needs to be restarted again.
In the past few days, I have replaced or disabled many HomeyScript flow cards with an alternative. Errors related to memory or CPU usage no longer occur. I am now only left with the following RangeError.
The strange thing is that this error occurs at an exact 10-minute interval, for example: 14-12-2025 22:30:00 and 14-12-2025 22:40:00. I can no longer find a time-based trigger in my Flows that could cause this (I have changed all occurrences of 10 minutes to a different value). I also checked all larger HomeyScripts for recursion and manually started all Flows containing a HomeyScript Flow card, hoping a fault would occur within the 10-minute interval. Unfortunately, this yielded no results.
I have extensive logging via the Easy Logger App. I cannot find any suspicious calls between two error messages either.
Error occurring every 10 minutes:
RangeError: Maximum call stack size exceeded
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:853:9)
at WebSocket.dispatchEvent (node:internal/event_target:778:26)
at fireEvent (node:internal/deps/undici/undici:11853:14)
at failWebsocketConnection (node:internal/deps/undici/undici:11934:9)
at closeWebSocketConnection (node:internal/deps/undici/undici:12205:9)
at WebSocket.close (node:internal/deps/undici/undici:12866:9)
at WS.doClose (/app/node_modules/engine.io-client/lib/transports/websocket.js:248:13)
at Transport.close (/app/node_modules/engine.io-client/lib/transport.js:98:10)
at Socket.onClose (/app/node_modules/engine.io-client/lib/socket.js:713:20)
at Socket.onError (/app/node_modules/engine.io-client/lib/socket.js:691:8)
The error message suggests infinite recursion in a HomeyScript, possibly in combination with a Flow. Does anyone have an idea how I can find the cause of this error with an exact 10-minute interval?