Today I was running codes that have been running daily for months and I noticed the speed of the running code was slower than usual. I’ve tried everything by now, the code already had the store | Fast | !ReplaySpeed, I tried adding a bunch more in random places of the code, I already rebooted the PC, reinstalled Kantu and it just keeps running slower than usual. Codes that used to run in like 5 minutes or less now take half an hour or more.
Looking just at a pause | 30000 | I looked that the seconds run weirdly, some run smoothly (1 real second per number in kantu) but in others it stucks like 3 real seconds.
I added some echo | ${!ReplaySpeed} | and it throws FAST, but it’s not actually running Fast
I remember it used to happen if the Kantu window was minimized and now I don’t minimize it, just leave it in the background, but it’s running so slooow
The macro is not failing, and yeah, I think it has to be that the ui vision’s window is in the background because i manually click to bring it to foreground and it runs smoothly
But I need it in the background to use searchImage. And as I said, it’s not minimized. Heres what I do:
xtype windows+d to minimize all apps
open ui vision’s windows again by clicking in the taskbar
open chrome
bring chrome to foreground
run everything else
That’s what all my macros do at the beggining, and it used to function just fine, but today it started running slow as if the ui vision’s window was minimized
Most of the problems are due to the fact that in the browser they interact multiple programs together, so many times I had to reist ui vision to fix seemingly inexplicable bugs
For this reason i do not use Chrome because need installation (portable version too) i prefer firefox portable in a pendrive, when there are a problem i delete folder and recreate a new firefox folder fresh and working.
Yes, if the window is minimized, Chrome slows down the Javascript execution dramatically. But just leaving it in the background should be fine! => Can you please post a screen video of the slow execution?
In our tests all works fine when the RPA software is in the background (= no focus is ok, hidden by another app is ok, even off screen is ok) but it must not be minimized.
This is a bug that’s now popping up in Chrome 86. This doesn’t happen in version 85. I’ve confirmed this on three different machines. It’s not about minimizing. I never minimize the window.
With the window in the background, the extension is running very slowly. This breaks pausing and looping in my scripts unless the window is in the foreground.
Make sure the tab isn’t in the background also. Chrome now throttles JS timers for background tabs. Try turning that off in chrome and see if that helps: In chrome://flags and looking for Throttle Javascript timers in background or #intensive-wake-up-throttling and disable it
This seems to have fixed my issue. I always keep the tab in the foreground and the RPA window in the background. After changing this flag RPA operates properly.
Yup, still not working
Reinstalled Chrome and UI.Vision and still going so slow. Tried disabling the Throttling flag and still going so slow.
I guess I’ll try to go back to version 85 of chrome or something
it’s not that easy to change the browser. But i guess I’ll do it.
have to change tons of code that worked with chrome path and chromelike windows :c
thak you @newuserkantu, i guess it is for better to change now than keep developing stuff in chrome
With firefox I can open multiple browser in same time, need only to create new folder with firefox portable (need not to create multiple profile like Chrome hard and slow).
With firefox you can run unlimited browser in few minutes if you need.
If i have a problem (corrupted browser or corrupted addon) I simple delete folder with firefox portable and recreate new folder and run again browser and ui vision in 30 seconds.