sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55699
Re: [Question #692550]: IDE crash when OCR does not find anything. Only 272 unsuccessful calls of text() possible
Question #692550 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692550
RaiMan proposed the following answer:
... and this is my latest test showing memory usage:
Reg=Region(1400+0,675,365,51)
Reg.highlight(2)
import java.lang.Runtime as RT
jrt = RT.getRuntime()
print "max:", jrt.maxMemory(), "tot:", jrt.totalMemory(), "free:", jrt.freeMemory()
for i in range(1,2000):
Reg.text()
if i % 50 == 0:
print i, "free:", int(jrt.freeMemory()/(1024 * 1024))
One can see, when GC does its job.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.