[Issue #513] Lost background heart beat when running command + 2more

while running scripts got message “lost background heart beat when running command” and scripts stops
While copying the text from the log is also taking time.

image

  1. Some time scripts clicks twicely on the links.

  2. Test suites is not stopping itself if any error occurs in mid, it stops that scripts and move on next.

guide me how to resolve it.

Do you have a test macro for these issues?

i wanted to be but i can not.
It can happen at any time, in any script, no specific scenario other then this error.

One day it is working fine but other day it is not.

apart from work, i got it today while i was exploring the csv read functionality.

i can share it now. its a testing file,
pic is-


source view is
{
“Name”: “url o 5march",
“CreationDate”: “2019-3-5”,
“Commands”: [
{
“Command”: “store”,
“Target”: “180”,
“Value”: “!timeout_macro”
},
{
“Command”: “store”,
“Target”: “fast”,
“Value”: “!replayspeed”
},
{
“Command”: “csvRead”,
“Target”: “url.csv”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Status = {!csvReadStatus}, line = {!csvReadLineNumber}”,
“Value”: “”
},
{
“Command”: “while”,
“Target”: “”{!csvReadStatus}\" == \"OK\"", "Value": "" }, { "Command": "echo", "Target": "Status = {!csvReadStatus}, line = {!csvReadLineNumber}", "Value": "" }, { "Command": "echo", "Target": "{!COL1}{!csvReadLineNumber}", "Value": "" }, { "Command": "open", "Target": "{!COL1}{!csvReadLineNumber}", "Value": "" }, { "Command": "storeEval", "Target": "{!csvReadLineNumber}+1",
“Value”: “!csvReadLineNumber”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorIgnore”
},
{
“Command”: “csvRead”,
“Target”: “url.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “false”,
“Value”: “!errorIgnore”
},
{
“Command”: “endWhile”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “csvRead”,
“Target”: “url.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “3\t”,
“Value”: “!csvReadLineNumber”
},
{
“Command”: “csvRead”,
“Target”: “url.csv”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “{!col1}", "Value": "" }, { "Command": "open", "Target": "{!col2}”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “{!col3}", "Value": "" }, { "Command": "comment", "Target": "Remove non alphanumeric chars from URL, so we can use it as screenshot file name", "Value": "" }, { "Command": "", "Target": "", "Value": "" }, { "Command": "storeEval", "Target": "var string = \"{!col1}”; var stripped = string.replace(/[^A-Za-z0-9]/g, ‘’); stripped;",
“Value”: “alphanumericonly”
},
{
“Command”: “captureScreenshot”,
“Target”: "screenshot_for
${alphanumericonly}”,
“Value”: “”
}
]
}

again getting error while running other suites.

image

I hope you team are still working on it.

Any Update Team.

image

Hi @sachin.gupta

This bug “lost background heart beat when running command” is caused when use the command open a site and connection lost or site is unreachable kantu remain stucked to wait the load of the site and don’t continue to work.

have a nice day

so what is the solution?

May I request you Admin pl. guide on it.
Thanks.
sg

Any ETA on it, so that we can not disturb you. its been a two month and dint get any solution on it.
I guess you people are working on it, but till the solution available, replying is the good way to keep things alive.
Thoughts?

This is a tricky issue to fix, but we plan to get it done this month (April).

wow,
Thats the things which will rock and Kantu on top.

Thanks Team,

sg

Is this fix already? cause I’m getting the same error

@acdeleon It is partly fixed (for some situations). If you still get the error in the latest version, can you please describe what you do when it happens?

I am very new to Kantu but this is probably the first challenge I need to face before I can go on. My script is simple - to open Google. That’s it.

{
  "Name": "testing",
  "CreationDate": "2019-5-22",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://www.google.com",
      "Value": ""
    }
  ]
}

The script runs normally at the first run when Firefox is first started. When the script is run again on another tab, I may get the “lost background heart beat when running command” error:

Sometimes the webpage loaded after a random number of minutes. (Actually I am brought to Google when I am typing this message).

I can connect to Google on the browser directly in one second but just cannot get it work on Kantu. I am using Kantu Web Browser Automation 4.2.7 on Firefox 66.0.5 / 67.0 (64-bit). Wish I am reporting the bug (?) at the right place.

I think the error “Lost background” is random, do not appears always, for me opinion is random.

If you retry your macro working like a charm.

I do not use firefox 66 because i has more bugs with Kantu, now I use firefox ESR 60 and i see few bugs.

its still need developers pen.

I close and lock this post as it is a duplicate of [Issue #513] Script freezes unexpectedly with no error written to log. Manual pause/resume brings it back - #61 by admin

Note: Issue solved (but if you still see issues, please post them in this ticket, or open a new one)