sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17610
Re: [Question #227366]: java.lang.OutOfMemoryError: Java heap space-Eclipse
Question #227366 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/227366
Status: Open => Answered
RaiMan proposed the following answer:
the Sikuli features (exists() and click()) in ClickImage() method do not
seem to be the cause for your problem.
Minor:
if (s.exists(iMPath) != null) {
s.click(s.getLastMatch());
would save you the additional search for iMPath, which was just already
found by s.exists()
The only other candidate for increasing heapspace usage in the loop is the
JavascriptExecutor js = (JavascriptExecutor) driver;
that is called more than once, but I cannot judge this.
So if the cause is not in this method, but only the crash, then the bad
code must be earlier in other parts of your code.
Again: I recommend to use the profiler.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.