← Back to team overview

sikuli-driver team mailing list archive

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:
Sikuli X versions beyond 900 should not produce any heapspace problems
any more.

Nevertheless you might try version 930
(http://www.sikuli.org/download.html).

Your problem:
in your code at
at com.qtpselenium.base.TestBase.ClickImage(TestBase.java:334)

you step into Sikuli API using the Region.exists() function.

Be sure to not block any Sikuli objects (Regions, Matches, ...) from
being eligible for garbage collection by permanent assignments.

Be especially careful with objects, that you produce as function
parameters or return values down the line, since these allocate space on
the heap.

Check your code with Eclipses profiling tools.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.