Skip to content

OutOfMemoryError #17

@luoos

Description

@luoos

When running iDFlakies on a project with a lot of tests, testrunner sometimes (not 100%) throws OutOfMemoryError.

Project: gradle/performance-comparisons
Branch: commons-lang (there is only one commit)
Version: testrunner-maven-plugin 1.0; idflakies 1.0.2 (I believe this issue also exists in the latest version 1.1)
Command: mvn testrunner:testplugin -Ddetector.detector_type=random-class-method -Ddt.randomize.rounds=10 -Ddt.detector.original_order.all_must_pass=false
Number of tests: 3120
Note: There are supposed to be 10 rounds, the error was thrown at the tenth round

ERROR (WRITE_ERROR_STDOUT_THROWABLE): org.apache.commons:commons-lang3:3.6-SNAPSHOT
ava.lang.OutOfMemoryError: Java heap space
	at java.util.ArrayList.<init>(ArrayList.java:183)
	at edu.illinois.cs.testrunner.runner.TestInfo.beforeInc(TestInfo.java:16)
	at edu.illinois.cs.testrunner.runner.TestInfo.updateFlakiness(TestInfo.java:50)
	at edu.illinois.cs.testrunner.runner.TestInfo.updateWith(TestInfo.java:39)
	at edu.illinois.cs.testrunner.runner.TestInfoStore.lambda$update$1(TestInfoStore.java:46)
	at edu.illinois.cs.testrunner.runner.TestInfoStore$$Lambda$77/531462687.accept(Unknown Source)
	at java.util.Map.forEach(Map.java:630)
	at edu.illinois.cs.testrunner.runner.TestInfoStore.update(TestInfoStore.java:44)
	at edu.illinois.cs.testrunner.runner.TestInfoStore.lambda$update$0(TestInfoStore.java:34)
	at edu.illinois.cs.testrunner.runner.TestInfoStore$$Lambda$76/1424610562.apply(Unknown Source)
	at scala.Option.foreach(Option.scala:257)
	at edu.illinois.cs.testrunner.runner.TestInfoStore.update(TestInfoStore.java:33)
	at edu.illinois.cs.testrunner.runner.SmartRunner.run(SmartRunner.scala:30)
	at edu.illinois.cs.testrunner.runner.Runner.runList(Runner.scala:28)
	at edu.illinois.cs.testrunner.runner.Runner.runList$(Runner.scala:27)
	at edu.illinois.cs.testrunner.runner.SmartRunner.runList(SmartRunner.scala:21)
	at edu.illinois.cs.dt.tools.detection.detectors.ExecutingDetector.runList(ExecutingDetector.java:50)
	at edu.illinois.cs.dt.tools.detection.detectors.RandomDetector.results(RandomDetector.java:42)
	at edu.illinois.cs.dt.tools.detection.detectors.ExecutingDetector$RunnerIterator.generateDetectionRound(ExecutingDetector.java:133)
	at edu.illinois.cs.dt.tools.detection.detectors.ExecutingDetector$RunnerIterator.generate(ExecutingDetector.java:150)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions