Reposted: Memory leaking & Sikuli script crashing - Windows 7 & XP
This is a second attempt for an infinite loop and my script is throwing again an "insufficient memory" error message after 20-30 minutes of activity. It happens in Windows 7 (Home edition) and Windows XP. Here is my code..perhaps there's something wrong with it although I don't think so:
while True:
switchApp(
if exists(<image>,1):
click(<image>)
wait(6)
click(<image>)
paste(<image>,"http://
wait(3)
paste(<image>,"http://
if exists(<image>,1):
paste(<image>,"http://
wait(1)
type(Key.ENTER)
wait(1)
click(<image>)
wait(4)
wait(1)
And, here's the error that's bugging me for few days (taken from the command prompt - cmd.exe) - I also get a window with a runtime error:
...
...
...
[sikuli] click on (76,163), MOD: 0
[sikuli] click on (302,61), MOD: 0
[sikuli] type "
", mod: (0)
[sikuli] click on (76,163), MOD: 0
OpenCV Error: Insufficient memory (Failed to allocate 56699948 bytes) in unknown
function, file ..\..\.
C:\Users\
It will be useful to know what I am doing wrong because I looked all over for an idea and beside making the script smaller, I don't know what else I can improve. The waiting time between clicks/
Thanks!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sikuli User
- Solved:
- Last query:
- Last reply: