Kantu stops running macro intermittently when window is minimized

I have a macro that’s designed to run infinitely until it times out, which is kept to a big number (99999999999), which would be few years from now.

I am accessing 2 websites using this macro in infinite while loop. One website is single page (no interaction) and on other web site, I am performing a login and then few more page navigation.

Issue is intermittently it stops running macro and logs show "macro competed in xx seconds). Also, I notice it pauses macro execution, when window is minimized or not on focus. I am running kantu on a remote machine, which is projected on a TV screen. Also noticed, that when this issue happens frequently, next run fails very quickly in few seconds unless I restart browser and run macro again.

Please let me know, if there’s a way to work around with this tool.

Browser: Mozilla Firefox 62.0.3
Kantu version: 3.1.9
OS: red hat enterprise linux server 7.4 (maipo) fedora

Logs from macro execution:
[status]

    Playing macro Portal_Login_v6

    [info]

    Executing:  | store | fast | !replayspeed | 

    [info]

    Executing:  | store | true | !ErrorIgnore | 

    [info]

    Executing:  | open | https://www.google.com |  | 

    [error][ignored]

    lost background heart beat when running command

    [info]

    Executing:  | while | 1 == 1 |  | 

    [error][ignored]

    lost background heart beat when running command

    [info]

    Executing:  |  |  |  | 

    [error][ignored]

    lost background heart beat when running command

    [info]

    Macro completed (Runtime 133.82s)

Interesting… so with Kantu in front all works fine?

I am not very sure, if its due to long running macro or due to kantu window not in focus.
As I mentioned, its running from a remote box to be projected on TV. So, plan is to make it run as long as it can support. But for some reason, at some random interval kantu macro execution stops.

But last few lines of logs are always the same, when it stops.

Executing:  | while | 1 == 1 |  |
[error][ignored]
lost background heart beat when running command
[info]
Executing:  |  |  |  | 
[error][ignored]
lost background heart beat when running command
[info]
Macro completed (Runtime 133.82s)

Hello I have the same problem so I wrote a very basic script just looping.
It hangs after a random number of iteration.
This is the code if you want to reproduce. It uses no web site nor css file.

{
“Name”: “HANG”,
“CreationDate”: “2019-4-7”,
“Commands”: [
{
“Command”: “storeEval”,
“Target”: “1”,
“Value”: “CT”
},
{
“Command”: “while”,
“Target”: “{CT}<1000", "Value": "" }, { "Command": "echo", "Target": "{CT}”,
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “${CT}+1”,
“Value”: “CT”
},
{
“Command”: “endWhile”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Done”,
“Value”: “”
}
]
}