Memory leaking & Sikuli script crashing - Windows 7 & XP
Hi.
I am using an infinite loop - a script looking for specific images on screen - and after 1-2 hours, the script crashes with the following message for Windows 7:
Window title:
Microsoft Visual C++ Runtime Library
Message:
Runtime error!
Program: c:\Windows\
This application has requested the Runtime to to terminate it in an unusual way....
Something similar I receive in Windows XP
In my comand prompt window I also receive the following message in Windows 7:
OpenCV error: Insufficient memory (Failed to alocate 56699948 bytes) in unknown function, file ..\..\.
I read that memory leaking was fixed in version 0.10.1 so...I wonder, why my script was working before in Sikuli 0.9 under both XP and Windows 7, then in 0.10 but not in 0.10.1?!
I have some screen shots with those errors too, if somebody will want to take a look.
And, here is my script:
while True:
##import random
##interval = random.
##type("R", KEY_CTRL)
setThrowExcep
while True:
if exists(
assign = findAll(
if assign:
for x in assign:
click(x)
click(x)
click(x)
click(x)
click(x)
sleep(12)
sleep(12)
else:
break
break
else:
pass
setThrowExcep
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: