Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout for Math-2 , Math-5, Math-8, Math-28 #102

Open
martinezmatias opened this issue Sep 24, 2021 · 7 comments
Open

timeout for Math-2 , Math-5, Math-8, Math-28 #102

martinezmatias opened this issue Sep 24, 2021 · 7 comments
Assignees

Comments

@martinezmatias
Copy link
Collaborator

martinezmatias commented Sep 24, 2021

Flacoco reaches the timeout for bug Math-2

See log here:
https://github.com/martinezmatias/astor/runs/3676644171?check_suite_focus=true#step:8:1199

java.lang.RuntimeException: Forked process did not finish correctly. Timeout set was 5400000 ms, process took 5400000 ms before ending.
Finishing execution for Math2: # patches: 0
	at eu.stamp_project.testrunner.EntryPoint.runGivenCommandLine(EntryPoint.java:764)
	at eu.stamp_project.testrunner.EntryPoint.runOnlineCoveredTestResultPerTestMethods(EntryPoint.java:656)
	at fr.spoonlabs.flacoco.core.coverage.framework.JUnit4Strategy.execute(JUnit4Strategy.java:27)
	at fr.spoonlabs.flacoco.core.coverage.CoverageRunner.getCoverageMatrix(CoverageRunner.java:49)
	at fr.spoonlabs.flacoco.localization.spectrum.SpectrumRunner.computeCoverageMatrix(SpectrumRunner.java:56)
	at fr.spoonlabs.flacoco.localization.spectrum.SpectrumRunner.run(SpectrumRunner.java:32)
	at fr.spoonlabs.flacoco.api.Flacoco.run(Flacoco.java:31)
	at fr.inria.astor.core.faultlocalization.flacoco.FlacocoFaultLocalization.searchSuspicious(FlacocoFaultLocalization.java:44)
	at fr.inria.astor.core.solutionsearch.AstorCoreEngine.calculateSuspicious(AstorCoreEngine.java:906)

....

Similar for Math-5

https://github.com/martinezmatias/astor/runs/3676644222?check_suite_focus=true#step:8:1589

for Math-8:

https://github.com/martinezmatias/astor/runs/3676644282?check_suite_focus=true#step:8:375

@martinezmatias martinezmatias changed the title timeout for Math-2 timeout for Math-2 , Math-5 Sep 24, 2021
@martinezmatias martinezmatias changed the title timeout for Math-2 , Math-5 timeout for Math-2 , Math-5, Math-8 Sep 24, 2021
@andre15silva andre15silva self-assigned this Sep 24, 2021
@andre15silva
Copy link
Member

andre15silva commented Oct 3, 2021

When running standalone flacoco on math-2, math-8 and math-5, and using the verbose mode of test-runner we get:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:3236)
	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
	at java.io.ObjectOutputStream$BlockDataOutputStream.write(ObjectOutputStream.java:1842)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1534)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
	at java.util.HashMap.internalWriteEntries(HashMap.java:1792)
	at java.util.HashMap.writeObject(HashMap.java:1363)
	at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1155)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
	at java.util.HashMap.internalWriteEntries(HashMap.java:1793)
	at java.util.HashMap.writeObject(HashMap.java:1363)
	at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1155)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)

Maybe if we increase memory through the option testRunnerJVMArgs with something like -Xms4G -Xmx8G we can prevent this problem?

Either way, there is definitely a need to use less memory.

@martinezmatias
Copy link
Collaborator Author

martinezmatias commented Oct 11, 2021

For Math-2: I tried with 1Gb and it fails, I will increase to 4G: https://github.com/martinezmatias/astor/runs/3851808139?check_suite_focus=true#step:8:1201

@martinezmatias
Copy link
Collaborator Author

@martinezmatias
Copy link
Collaborator Author

@andre15silva
Copy link
Member

I would jump straight to 8GB honestly, I don't think 4GB will be enough

@martinezmatias
Copy link
Collaborator Author

martinezmatias commented Oct 11, 2021

Hi @andre15silva

I tried with 8 Gb in this commit, but it continues failing .
Now I am checking if Astor correctly sets that value into Flacoco

@andre15silva
Copy link
Member

We have an issue with running this on Actions then:

Hardware specification for Windows and Linux virtual machines:

    2-core CPU
    7 GB of RAM memory
    14 GB of SSD disk space

from: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners

@martinezmatias martinezmatias changed the title timeout for Math-2 , Math-5, Math-8 timeout for Math-2 , Math-5, Math-8, Math-28 Oct 20, 2021
@andre15silva andre15silva reopened this Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants