Reposted: Memory leaking & Sikuli script crashing - Windows 7 & XP

Asked by Sikuli User

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("Internet Explorer")

 if exists(<image>,1):
  click(<image>)
  wait(6)
  click(<image>)
  paste(<image>,"http://www.google.us")
  wait(3)
  paste(<image>,"http://www.yahoo.com")

 if exists(<image>,1):
  paste(<image>,"http://ebay.com")
  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 ..\..\..\..\ocv\opencv\src\cxcore\cxalloc.cpp, line 52
C:\Users\Me\Desktop\clickRefresh.sikuli>

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/typing/pasting should not be a problem I'd say and I really would need even smaller times.

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:
Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#1

It's confirmed as a memory leaking bug.

Revision history for this message
Sikuli User (hidden-hidden) said :
#2

Thanks! Hopefully will be fixed soon so we can continue to enjoy working with Sikuli!

Revision history for this message
JasonFu (jasonfu1988) said :
#3

dear friends, I have encountered the same problem as you and got the error message after 2 to 3 hours of activity.Have you solve it? thank you.