Memory leak issue in sikuli

Asked by saranya on 2013-05-15

Memory heap error issue happens all time and unable to complete test execution.

Using sikuli-api-1.0.2-stanlalone.jar and sikuli-script.jar from Sikuli-r930-win32 in Windows 64 bit.

Let me know which sikuli jar to be used to overcome this issue. Its very urgent..

java.lang.OutOfMemoryError: Java heap space
 at java.awt.image.DataBufferByte.<init>(
 at java.awt.image.ComponentSampleModel.createDataBuffer(
 at java.awt.image.Raster.createWritableRaster(
 at javax.imageio.ImageTypeSpecifier.createBufferedImage(
 at javax.imageio.ImageReader.getDestination(
 at com.sun.imageio.plugins.png.PNGImageReader.readImage(
 at org.sikuli.api.robot.desktop.DesktopScreen.getScreenshot(
 at org.sikuli.api.DefaultScreenRegion.capture(
 at org.sikuli.api.ImageTarget.getUnordredMatches(
 at org.sikuli.api.DefaultTarget.doFindAll(
 at org.sikuli.api.DefaultScreenRegion._find(
 at org.sikuli.api.DefaultScreenRegion.access$100(
 at org.sikuli.api.DefaultScreenRegion$
 at org.sikuli.api.DefaultScreenRegion.wait(
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 at java.lang.reflect.Method.invoke(
 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(
 at org.junit.internal.runners.statements.RunBefores.evaluate(

Question information

English Edit question
Ubuntu sikuli Edit question
No assignee Edit question
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

This is a support area for ubuntu, you are talking about Windows 64, so you are wrong here.

Maybe providing higher values for the heap size (-Xms and -Xmx parameters) helps for your problem.

Can you help with this problem?

Provide an answer of your own, or ask saranya for more information if necessary.

To post a message you must log in.