It seems like you're certainly narrowing down the problem and plugging leaks. My script is running even longer now but unfortunately it still crashes. I estimate that the running time has doubled to around 25 - 30 minutes before crashing at around 900MB.
I won't be able to work with Sikuli again until Tuesday, but I'm attaching my script in case it helps you find the problem. For testing you would need to use the Facebook game "Social City" and place a few houses and a factory. The script should take care of the rest. I'm afraid I don't have anything more useful to test with as none of my other scripts run on an endless loop and therefore all work perfectly without crashes.
Thanks for jumping on the problem again!
It seems like you're certainly narrowing down the problem and plugging leaks. My script is running even longer now but unfortunately it still crashes. I estimate that the running time has doubled to around 25 - 30 minutes before crashing at around 900MB.
I won't be able to work with Sikuli again until Tuesday, but I'm attaching my script in case it helps you find the problem. For testing you would need to use the Facebook game "Social City" and place a few houses and a factory. The script should take care of the rest. I'm afraid I don't have anything more useful to test with as none of my other scripts run on an endless loop and therefore all work perfectly without crashes.