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

OutOfMemory error raised when running Junit test #418

Open
AndrewShf opened this issue Apr 7, 2023 · 0 comments
Open

OutOfMemory error raised when running Junit test #418

AndrewShf opened this issue Apr 7, 2023 · 0 comments

Comments

@AndrewShf
Copy link
Member

AndrewShf commented Apr 7, 2023

When running PICO-Infer's testsuite, some heap memory is not released, and after running a while, OOM error will be raised.
Screen Shot 2023-04-06 at 5 51 19 PM

This is caused by circular reference and thus GC cannot free this memory.
image
Noticed that the aliases field indirectly referenced to the last picoinferencechecker instantiated (last testcase).

image
Commenting out the addAliasedAnnotation use, solves the problem. Don't know why addAliasedAnnotation or addAliasedTypeAnnotation has this wrong behaviour. File an issue to keep track of this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant