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.
Closed

Help wanted with debugging

Hello,

I started using the com.athom.dru apps to control my fireplace. This fireplace can be controlled through a gateway using modbus TCP protocol. The app is working, but crashes after a period from 30-60 minutes.

The app was built by an intern from Atom but is not supported.

Debugging the app shows the following:

--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (1/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (2/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (3/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (4/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (5/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (6/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (7/30) ---
--- WARNING: com.athom.dru HAS RECEIVED A CPUWARN (8/30) ---
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
<--- Last few GCs --->

 5827311 ms: Scavenge 68.5 (88.5) -> 68.5 (88.5) MB, 5.6 / 0 ms (+ 74.8 ms in 2 steps since last GC) [allocation failure].

 5827446 ms: Scavenge 68.5 (88.5) -> 68.5 (88.5) MB, 5.4 / 0 ms (+ 129.4 ms in 1 steps since last GC) [allocation failure].
 5829539 ms: Mark-sweep 68.5 (88.5) -> 68.3 (87.5) MB, 1779.2 / 0 ms (+ 522.6 ms in 5 steps since start of marking, biggest step 313.6 ms) [last resort gc].
 5831388 ms: Mark-sweep 68.3 (87.5) -> 68.3 (87.5) MB, 1848.6 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================

Security context: 0x3b96d639 <JS Object>

    1: SparseMove(aka SparseMove) [native array.js:~197] [pc=0x247278e0] (this=0x3b9080dd <undefined>,o=0x4f2e0191 <JS Array[140998]>,Q=140592,R=1,A=140998,U=0)
    2: ArraySplice [native array.js:~630] [pc=0x3b1462b0] (this=0x4f2e0191 <JS Array[140998]>,au=0x5a9bc891 <String[6]: 140592>,ax=1)
    6: emit [/node_modules/jsmodbus/node_modules/stampit-event-bus/src/stampit-event-bus.js:24] [pc=0x3b1d...
--- INFO: com.athom.dru has been killed ---
Can anyone tell me what goes wrong and where I have to look in the code?
The code can be found at: https://github.com/apstemmer/com.athom.dru

Gr. Remco

This discussion has been closed.