sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02060
[Bug 748036] Re: JVM OOM Java Heap Error on Mac OSX 10.6.6
OK worries are gone!
It turns out to be the build.xml
The maxmemory for the build xml in runAll targets was not set causing
the test to blow up. However, the maxmemory enhancement in the build.xml
was necessary due to java errors when using sikuli. I increased the
.plist file and forkmode adjustments in the xml. The problem is now
gone.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/748036
Title:
JVM OOM Java Heap Error on Mac OSX 10.6.6
Status in Sikuli:
New
Bug description:
Hey Sikuli devs,
first off thanks for making such a great product.
I am experiencing a Java heap error when running my tests. Here is my
scenario
Mac OSX 10.6.6
Eclipse
Ant (latest)
Fest (latest)
Jenkins
tests written in Java using your libraries (latest)
java version "1.6.0_22"
in my build xml i set the maxmemory as follows:
<junit forkmode="perTest" printsummary="yes" haltonfailure="no"
haltonerror="no" maxmemory="2048m">
The test begins and almost finishes, at the end of the test my build fails with this error:
Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
at java.awt.image.BufferedImage.(BufferedImage.java:324)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:539)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:523)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:191)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:186)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:927)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:550)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:54)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:982)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:168)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3261)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3246)
at org.sikuli.script.OpenCV.convertBufferedImageToByteArray(OpenCV.java:30)
at org.sikuli.script.OpenCV.convertBufferedImageToMat(OpenCV.java:36)
at org.sikuli.script.Finder.(Finder.java:56)
at org.sikuli.script.Region.doFind(Region.java:769)
at org.sikuli.script.Region$RepeatableFind.run(Region.java:1160)
at org.sikuli.script.Region$Repeatable.repeat(Region.java:1131)
at org.sikuli.script.Region.wait(Region.java:406)
at org.sikuli.script.Region.find(Region.java:308)
at org.sikuli.script.Region.getLocationFromPSRML(Region.java:856)
at org.sikuli.script.Region.click(Region.java:488)
at com.eharmony.iphoneautomation.tests.TestNewMemberScreenInput.testFindMyMatches(Unknown Source)
on the mac I am using its 64bit so i know i can set the memory higher for JVM. Is there something in sikuli I can set
thanks
References