sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28563
[Question #255315]: [sikuli api]finder.find seems memory leak
New question #255315 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255315
i used sikuliapi's img comparation feature in my jython script, the code is like this:
from sikuli import *
//param image is the image 's full path
finder=Finder(image)
finder.find(image2)
return finder.hasNext()
this code will be called at a jython server process
after run some cases, the memory of jython process will reach the memory limit.
i checked all other codes,not find any bug. and then i check the Finder.java, i find every time find will call Image class, and add the image to the Image's cache.
i print the Image object(call the Image.dump()),
imageFiles entries xx (always added)
ImageNames entries xx (always added)
cache state entries xx (always added) the used percent is not accurate, it jump from -xx% to xx%
i think there must some api to clear the cache, but dont know which one.
pls tell me how to clear the cache. now i have to restart the server if memory run out.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.