-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command prompt not closing after execution - pending replication details #551
Comments
Hi @sandeep14897 can you provide replication step by step how to create this? If you run TagUI script by typing |
And do you mean command prompt not closing (issue title) or closing (issue description)? |
@kensoh I am running TagUi script as tagui file_name chrome. After executing all steps in the code the execution was not stopping, and there were no activities to execute further. |
I see.. I have not encounter this problem before. Can you try if the same problem happen on another laptop or computer? Maybe your colleague computer, and see if the issue happens? Without details to replicate the issue, it is hard to troubleshoot the problem from my computer. |
Some other things you can try is run simple script like below and see if it works. But the best will be try your script on another colleague's laptop to see if the same issue happens. If another laptop works, then find the difference between the 2 laptops to see if it is due to some environment settings or security / firewall / virus scanner issues. Run demo_script
|
@kensoh to use These are the cmd's those are open in back ground can you please refer these. |
From your SikuliX log file, it looks like there may be some admin issue. When I try to run a simple script on my laptop (macOS), there is no error message like your one saying mouse actions are blocked. script
pc.png It will be difficult to troubleshoot as I don't have your laptop environment config to test. Instead of using clicking on the close-file-explorer image, are you able to use keyboard combinations to do what you need? For example, |
Let me know if you try to run a simple script like above example works? For eg click on the Windows start menu button. If the simple example does not work, then most likely it is due to the error message in your SikuliX log above, saying that the automation was launched without appropriate user permissions |
Hello @kensoh And also can I know if TagUI can work in the VM (background automation) if we schedule it in Windows task scheduler. If Yes, can i know the VM requirements. Please, let me know. Thanks |
I see.. Can you try to create a minimal replication script with the loop and a simple click to see where could the problem happen? After you create the most basic script with loop and click image that has this problem, share with me the script so I can try to replicate the behaviour. I see.. I know some enterprise users of TagUI run it on Windows VM, but I don't know the details of their implementation because it is done directly by their IT team and I have no visibility. You can try it out to see if that works. For VM requirements, TagUI just need a basic computer specs to work. It can run on macOS, Windows, Linux. But I have not tested how far back in Windows versions will it run properly. |
Hi @kensoh . My problem was similar to #417. In the background my tagui cmds are still open. Can i know where should i use the helper scripts. I was trying to write a batch file, for scheduling my bot and can i write helper scripts in batch file? after Thank you |
Hi @sandeep14897 I see.. Yes you can try that using batch files. The helper scripts to kill all TagUI processes is in src folder. For Windows it is However, if your environment does not let TagUI to terminate and return control back to the batch file, then when you put |
Another way to implement is call these helper script at the start of your batch file, or have it scheduled in task manager. So that the open windows are terminated when you run the next time, or when user need to use the laptop. |
@Kenosh Will I be able to run tagui in Windows workspace with 2GB RAM and 1
core ? Because we want to schedule our not in that VM and the schedule is
not running when VM got disconnected. Can you please help me on this.
Thank you
…On Sat, 7 Sep 2019, 19:09 Ken Soh, ***@***.***> wrote:
Another way to implement is call these helper script at the start of your
batch file, or have it scheduled in task manager. So that the open windows
are terminated when you run the next time, or when user need to use the
laptop.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#551>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI37S4L52PXPQUWMK7QTLF3QIOVKBANCNFSM4ITEXKLA>
.
|
I have not done testing of TagUI for VM, but I will think 2GB is enough. From my understanding of VM, if the VM is not online, then it only exists as an image and does not do anything at all. |
@Kenosh I see. Means now my bot will not run if I log out of the VM right?
Is there any alternative for that?
Thank you
…On Sat, 7 Sep 2019, 19:36 Ken Soh, ***@***.***> wrote:
I have not done testing of TagUI for VM, but I will think 2GB is enough.
From my understanding of VM, if the VM is not online, then it only exists
as an image and does not do anything at all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#551>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI37S4J2XM6UMIEZOIX3AEDQIOYM5ANCNFSM4ITEXKLA>
.
|
@Kenosh but in 2GB the process is going slow. The CPU utilisation is
exceeding more than 80% while bot is running.
Why?
…On Sat, 7 Sep 2019, 19:51 Sandeep Thota, ***@***.***> wrote:
@Kenosh I see. Means now my bot will not run if I log out of the VM right?
Is there any alternative for that?
Thank you
On Sat, 7 Sep 2019, 19:36 Ken Soh, ***@***.***> wrote:
> I have not done testing of TagUI for VM, but I will think 2GB is enough.
> From my understanding of VM, if the VM is not online, then it only exists
> as an image and does not do anything at all.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#551>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AI37S4J2XM6UMIEZOIX3AEDQIOYM5ANCNFSM4ITEXKLA>
> .
>
|
The main processes that are running are PhantomJS, Chrome and if visual automation is used, SikuliX (which is based on Java). Performance testing was never done in breadth for different types of computer specifications for TagUI, as it wasn't designed to be run on VM, so there is no data on minimum requirements. |
@ken soh
Thank you for the very quick response.
It is really helpful .
…On Sat, 7 Sep 2019, 20:54 Ken Soh, ***@***.***> wrote:
The main processes that are running are PhantomJS, Chrome and if visual
automation is used, SikuliX (which is based on Java).
Performance testing was never done in breadth for different types of
computer specifications for TagUI, as it wasn't designed to be run on VM,
so there is no data on minimum requirements.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#551>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI37S4LPJ4B7XMWXVNOJTV3QIPBUPANCNFSM4ITEXKLA>
.
|
Closing this issue to follow-up at #560 on using helper script to kill processes. |
Hi @kensoh
I was getting this message in console and end_process also not executing as it was not getting to next step in batch file. If i should run as admin how can i do that? Thank you in advance. |
Hi @sandeep14897 when you click to run command prompt, try to right-click and see if there is a menu to run as admin. See if that helps. Interesting, I have not yet heard feedback on the end_processes.cmd not working. Can you share more what is your Windows system version and what folder you install TagUI? |
Hi @kensoh I am using TagUi in VM and also in Window 10 machine. My VM specs are Windows server 2019 datacenter 64 bit operating system. I have installed tagui in C:\apps\tagui\src. Thank you |
The folder name seems ok, and the Windows spec. Have you try the most minimal script that can produce the error? You said above when you add for loop script hangs, but without for loop script is ok. What is the shortest script that you can write with for loop that can hang the system? |
Lastly, can you find a Windows laptop with similar spec and setup as your VM. And try if that works? If that works on the Windows laptop, then it means there is some issue using on VM. TagUI has not been tested and designed to work on VM, but I heard of successful deployments by users. |
Hi @kensoh I was not able to execute end_Process command as i was struck on |
Hi @kensoh I want to schedule my bot through task scheduler for every 10 minutes of duration whether the user is logged in or not and I shut down the VM. But my task was not scheduling can i know why? Sikulix Operations are not performed when i come out of VM. Thank you |
I see.. I'm afraid I'm unable to help further.. Above screenshot seems to show that the execution run all the way until vision type step at the bottom and then stuck there without exiting. It might be SikuliX or might be the way TagUI's execution engine PhantomJS works in VM. Your use case in VM probably can't work. See if anyone else experience the same problem and feedback. |
Hi @kensoh ,
After the execution of the all the steps in the code my command prompt was getting closed. After that there were no other steps for execution even, do not know why that was happening. Can you help in resolving this issue.
Thanks in advance.
The text was updated successfully, but these errors were encountered: