sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22525
Re: [Question #239950]: script hangs after ten minutes when launched via popen
Question #239950 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/239950
Status: Open => Answered
RaiMan proposed the following answer:
"hangs" means what? Any symptoms, that could help?
Sikuli scripts usually do not hang on themselves.
Mostly it is some infinite waiting for an image (explicit with FOREVER) or via a loop, that is designed to run until something gets visible or vanishes.
If this is not your case:
what is the script doing in this moment? any idea?
Without any changes to the script, you could put -d 3 on the command line at the beginning before the -r
This would output more details of what Sikuli is doing and might help.
--- final possibility (from the Python docs):
Popen.wait()
Wait for child process to terminate. Set and return returncode attribute.
Warning This will deadlock when using stdout=PIPE and/or stderr=PIPE and the child process generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use communicate() to avoid that.
Now that I have read this: seems to be the most probable reason ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.