java.lang.OutOfMemoryError

Share any Issues you may have had and any solutions you found.
Post Reply
thestarsatnight
User
User
Posts: 1
Joined: Tue Dec 11, 2012 3:46 am
First Name: Joy
Last Name: Chavez
Company: Gemini Observatory

java.lang.OutOfMemoryError

Post by thestarsatnight » Tue Jan 15, 2013 12:24 am

Hi,

I am running the latest version of T-Plan Robot (3.3) on a Mac OS 10.7.5. I am trying to run a series of tests on a virtual linux machine (Red Hat RHEL 6, 64 bit), but T-Plan Robot keeps crashing. Below is the error message stored in the LogViewer. As I run the tests, I can see the little bar on the bottom right showing the percentage of memory(?) increasing. Can I increase this Memory limit? Can T-Plan use less memory?

Thanks,
-Joy

Mon Jan 14 12:45:27 HST 2013, T-Plan Robot Enterprise v3.3-20130108.1
Java(TM) SE Runtime Environment v1.6.0_37 (64-bit) from Apple Inc. on Mac OS X v10.7.5 (64-bit, 8 CPUs)
Memory (heap) size limit: 505MB

---------------------------------------------------
RECORDED APPLICATION LOGS
---------------------------------------------------
Exception in thread "first round" java.lang.OutOfMemoryError: Java heap space
at com.tplan.robot.util.Utils.getPixels(Utils.java:653)
at com.tplan.robot.imagecomparison.search.SearchImageComparisonModule.compareToBaseImage(SearchImageComparisonModule.java:212)
at com.tplan.robot.scripting.commands.impl.WaitforCommand$WaitForListener.run(WaitforCommand.java:1364)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "t+9000ms" java.lang.OutOfMemoryError: Java heap space
at com.tplan.robot.util.Utils.getPixels(Utils.java:653)
at com.tplan.robot.imagecomparison.search.SearchImageComparisonModule.compareToBaseImage(SearchImageComparisonModule.java:212)
at com.tplan.robot.scripting.commands.impl.WaitforCommand$WaitForListener.run(WaitforCommand.java:1364)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "t+6000ms" java.lang.OutOfMemoryError: Java heap space
at com.tplan.robot.util.Utils.getPixels(Utils.java:653)
at com.tplan.robot.imagecomparison.search.SearchImageComparisonModule.compareToBaseImage(SearchImageComparisonModule.java:212)
at com.tplan.robot.scripting.commands.impl.WaitforCommand$WaitForListener.run(WaitforCommand.java:1364)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "t+12000ms" java.lang.OutOfMemoryError: Java heap space
at com.tplan.robot.util.Utils.getPixels(Utils.java:653)
at com.tplan.robot.imagecomparison.search.SearchImageComparisonModule.compareToBaseImage(SearchImageComparisonModule.java:212)
at com.tplan.robot.scripting.commands.impl.WaitforCommand$WaitForListener.run(WaitforCommand.java:1364)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "t+18000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+15000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+21000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+24000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+27000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+30000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+33000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+36000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+39000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+42000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+45000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "t+48000ms" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Last round" java.lang.OutOfMemoryError: Java heap space
Exception in thread "XSLReportProvider status screen shot timer" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Memory Component Timer" java.lang.OutOfMemoryError: Java heap space

rpes
User
User
Posts: 74
Joined: Thu Oct 29, 2009 5:43 pm
First Name: Robert
Last Name: Pes
Company: T-Plan

Re: java.lang.OutOfMemoryError

Post by rpes » Wed Feb 20, 2013 10:29 am

As the issue was handled offline, here's a summary of how we resolved it:

This behavior is caused by bug PRB-3585: Memory leak in the script editor. It affects the script editor which fails to release temporary objects allocated during script execution from the memory. The bug also impacts the performance and makes the script execute slower.

Raising of the memory limit assigned to Java through the -Xmx parameter (see the Release Notes) is not an option. It only allows the process to run longer until the memory gets exhausted.

The workaround for Robot 3.3 and lower is to execute test scripts in the CLI mode using the -n CLI parameter. This way is not affected by the bug because it avoids the GUI. The scripts also run significantly faster.

The final solution is to upgrade to version 3.3.1Beta-20130131.2 or newer where the bug was fixed.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest